Skip to content

Commit 8634bd6

Browse files
committed
fix phpstan
1 parent e62b21c commit 8634bd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/HeroFunction.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ function isExcludedException(array $excludeExceptionsConfig, Throwable $throwabl
2727
$exceptionOrErrorClass = $throwable::class;
2828
$message = $throwable->getMessage();
2929

30-
$filter = static function (string|array $excludeExceptionConfig) use ($exceptionOrErrorClass, $message): bool {
30+
/**
31+
* @param string|array<int, string> $excludeExceptionConfig
32+
*/
33+
$filter = static function (mixed $excludeExceptionConfig) use ($exceptionOrErrorClass, $message): bool {
3134
if ($excludeExceptionConfig === $exceptionOrErrorClass) {
3235
return true;
3336
}

0 commit comments

Comments
 (0)