From 8634bd6f2e88921df715d03fa4b8e5b512c8c027 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 11 Jan 2023 18:54:51 +0700 Subject: [PATCH] fix phpstan --- src/HeroFunction.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }