Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 27, 2020
1 parent c7f4143 commit 31917ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Support/Reflector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public static function isCallable($var, $syntaxOnly = false)
return is_callable($var, $syntaxOnly);
}

if (! isset($var[0]) && ! isset($var[1]) ||
! is_string($var[1])) {
if ((! isset($var[0]) || ! isset($var[1])) ||
! is_string($var[1] ?? null)) {
return false;
}

Expand Down

0 comments on commit 31917ab

Please sign in to comment.