Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 7, 2022
1 parent 9f61234 commit 9d22c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 9d22c3b

Please sign in to comment.