diff --git a/src/HeroFunction.php b/src/HeroFunction.php index 0806e9cf..eac4c3a5 100644 --- a/src/HeroFunction.php +++ b/src/HeroFunction.php @@ -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 $excludeExceptionConfig + */ + $filter = static function (mixed $excludeExceptionConfig) use ($exceptionOrErrorClass, $message): bool { if ($excludeExceptionConfig === $exceptionOrErrorClass) { return true; }