Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 23, 2022
1 parent 6b4eac6 commit d9a5ce7
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 @@ -157,7 +157,7 @@ public static function toReflection($callable): \ReflectionFunctionAbstract
*/
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 d9a5ce7

Please sign in to comment.