Skip to content

Commit

Permalink
Store the whole Throwable object
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Oct 3, 2024
1 parent 345e695 commit 2ef0b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Schema/ViewHelperFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class ViewHelperFinder

private ViewHelperMetadataFactory $viewHelperMetadataFactory;
/**
* @var string[] $lastErrors
* @var \Throwable[] $lastErrors
*/
private array $lastErrors = [];

Expand Down Expand Up @@ -93,7 +93,7 @@ private function findViewHelperFilesInPath(string $namespace, string $path): arr
} catch (\Throwable $t) {
// Catch all Throwables to mitigate technical debt of a ViewHelper
// and avoid aborting the whole generation
$this->lastErrors[] = $t->getMessage();
$this->lastErrors[] = $t;
}
}
return $viewHelpers;
Expand Down

0 comments on commit 2ef0b80

Please sign in to comment.