Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 11, 2023
1 parent e62b21c commit 8634bd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/HeroFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ function isExcludedException(array $excludeExceptionsConfig, Throwable $throwabl
$exceptionOrErrorClass = $throwable::class;
$message = $throwable->getMessage();

$filter = static function (string|array $excludeExceptionConfig) use ($exceptionOrErrorClass, $message): bool {
/**
* @param string|array<int, string> $excludeExceptionConfig
*/
$filter = static function (mixed $excludeExceptionConfig) use ($exceptionOrErrorClass, $message): bool {
if ($excludeExceptionConfig === $exceptionOrErrorClass) {
return true;
}
Expand Down

0 comments on commit 8634bd6

Please sign in to comment.