Skip to content

Commit 9d22c3b

Browse files
committed
refactoring
1 parent 9f61234 commit 9d22c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Callback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function toReflection($callable): \ReflectionMethod|\ReflectionFun
110110
*/
111111
public static function isStatic(callable $callable): bool
112112
{
113-
return is_array($callable) ? is_string($callable[0]) : is_string($callable);
113+
return is_string(is_array($callable) ? $callable[0] : $callable);
114114
}
115115

116116

0 commit comments

Comments
 (0)