Skip to content

Commit 1e4c2b6

Browse files
alamiraultnicolas-grekas
authored andcommitted
Remove unused local variable
1 parent 599f9df commit 1e4c2b6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ private function darwinRealpath(string $real): string
758758
if ('.' !== $f[0]) {
759759
$dirFiles[$f] = $f;
760760
if ($f === $file) {
761-
$kFile = $k = $file;
761+
$kFile = $file;
762762
} elseif ($f !== $k = strtolower($f)) {
763763
$dirFiles[$k] = $f;
764764
}

ErrorHandler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,10 @@ public function handleError(int $type, string $message, string $file, int $line)
452452

453453
if ($throw || $this->tracedErrors & $type) {
454454
$backtrace = $errorAsException->getTrace();
455-
$lightTrace = $this->cleanTrace($backtrace, $type, $file, $line, $throw);
456-
($this->configureException)($errorAsException, $lightTrace, $file, $line);
455+
$backtrace = $this->cleanTrace($backtrace, $type, $file, $line, $throw);
456+
($this->configureException)($errorAsException, $backtrace, $file, $line);
457457
} else {
458458
($this->configureException)($errorAsException, []);
459-
$backtrace = [];
460459
}
461460
}
462461

0 commit comments

Comments
 (0)