Skip to content

Commit

Permalink
Merge pull request #14 from doctrine/unused-code
Browse files Browse the repository at this point in the history
Remove unsed code from exception path
  • Loading branch information
SenseException authored Jul 17, 2023
2 parents cec23f8 + f605e5b commit 631ae3f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/SourceFile/SourceFilesBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public function buildSourceFiles(SourceFiles $sourceFiles): void
try {
$this->sourceFileBuilder->buildFile($sourceFile);
} catch (SyntaxError $e) {
$source = $e->getSourceContext();

throw new RuntimeException(message: sprintf(
<<<'EXCEPTION'
Failed building file "%s" from "%s", error on line %d:
Expand Down

0 comments on commit 631ae3f

Please sign in to comment.