From 9d22c3b36b89ac2c0a574553a5b08e6178d64e09 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 1 Mar 2022 22:40:29 +0100 Subject: [PATCH] refactoring --- src/Utils/Callback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/Callback.php b/src/Utils/Callback.php index 49dddfa7d..496c1e7ab 100644 --- a/src/Utils/Callback.php +++ b/src/Utils/Callback.php @@ -110,7 +110,7 @@ public static function toReflection($callable): \ReflectionMethod|\ReflectionFun */ public static function isStatic(callable $callable): bool { - return is_array($callable) ? is_string($callable[0]) : is_string($callable); + return is_string(is_array($callable) ? $callable[0] : $callable); }