Skip to content

Commit

Permalink
Merge pull request #17 from morloderex/fix/null-safe-operator-with-pr…
Browse files Browse the repository at this point in the history
…operties

Fix use of nullsafe operator failing test
  • Loading branch information
taylorotwell authored Sep 28, 2021
2 parents 3472e69 + 788c2b9 commit f347507
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Support/ReflectionClosure.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
defined('T_NAME_QUALIFIED') || define('T_NAME_QUALIFIED', -4);
defined('T_NAME_FULLY_QUALIFIED') || define('T_NAME_FULLY_QUALIFIED', -5);
defined('T_FN') || define('T_FN', -6);
defined('T_NULLSAFE_OBJECT_OPERATOR') || define('T_NULLSAFE_OBJECT_OPERATOR', -7);

use Closure;
use ReflectionFunction;
Expand Down Expand Up @@ -389,6 +390,7 @@ public function getCode()
$lastState = 'closure';
break;
case T_OBJECT_OPERATOR:
case T_NULLSAFE_OBJECT_OPERATOR:
case T_DOUBLE_COLON:
$code .= $token[1];
$lastState = 'closure';
Expand Down

0 comments on commit f347507

Please sign in to comment.