Skip to content

Commit

Permalink
Add comment about using Throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Oct 3, 2024
1 parent 1be0827 commit 345e695
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Schema/ViewHelperFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ private function findViewHelperFilesInPath(string $namespace, string $path): arr
} catch (\InvalidArgumentException) {
// Just ignore this class
} catch (\Throwable $t) {
// Catch all Throwables to mitigate technical debt of a ViewHelper
// and avoid aborting the whole generation
$this->lastErrors[] = $t->getMessage();
}
}
Expand Down

0 comments on commit 345e695

Please sign in to comment.