Skip to content

Commit

Permalink
Clean up usused filePath instance check on ApplicationFileProcessor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 29, 2023
1 parent 5d0dd48 commit 7841dc5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Application/ApplicationFileProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,9 @@ private function processFile(File $file, array $systemErrorsAndFileDiffs, Config
return $systemErrorsAndFileDiffs;
}

private function resolveSystemError(Throwable $throwable, string|File $filePath): SystemError
private function resolveSystemError(Throwable $throwable, string $filePath): SystemError
{
$errorMessage = sprintf('System error: "%s"', $throwable->getMessage()) . PHP_EOL;
$filePath = $filePath instanceof File
? $filePath->getFilePath()
: $filePath;

if ($this->symfonyStyle->isDebug()) {
return new SystemError(
Expand Down

0 comments on commit 7841dc5

Please sign in to comment.