Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Lundbøl <[email protected]>

Use minus number instead

Signed-off-by: Michael Lundbøl <[email protected]>
  • Loading branch information
morloderex committed Sep 28, 2021
1 parent 3472e69 commit 788c2b9
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 788c2b9

Please sign in to comment.