We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f61234 commit 9d22c3bCopy full SHA for 9d22c3b
src/Utils/Callback.php
@@ -110,7 +110,7 @@ public static function toReflection($callable): \ReflectionMethod|\ReflectionFun
110
*/
111
public static function isStatic(callable $callable): bool
112
{
113
- return is_array($callable) ? is_string($callable[0]) : is_string($callable);
+ return is_string(is_array($callable) ? $callable[0] : $callable);
114
}
115
116
0 commit comments