Skip to content

Commit

Permalink
Bump nikic/php-parser to 4.17 (#4781)
Browse files Browse the repository at this point in the history
* Bump nikic/php-parser to 4.17

* Fix compatibility

* [ci-review] Rector Rectify

---------

Co-authored-by: GitHub Action <actions@github.com>
  • Loading branch information
samsonasik and actions-user committed Aug 13, 2023
1 parent 2970fa1 commit 092b611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"fidry/cpu-core-counter": "^0.5.1",
"illuminate/container": "^10.13",
"nette/utils": "^3.2",
"nikic/php-parser": "^4.16.0",
"nikic/php-parser": "^4.17.0",
"ondram/ci-detector": "^4.1",
"phpstan/phpdoc-parser": "^1.23",
"phpstan/phpstan": "^1.10.26",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Expr\Error;
use PhpParser\Node\Identifier;
use PHPStan\Analyser\Scope;
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;

Expand All @@ -30,7 +30,7 @@ public function resolve(Node $node, ?Scope $scope): ?string
return null;
}

if ($node->name instanceof Error) {
if (! $node->name instanceof Identifier) {
return null;
}

Expand Down

0 comments on commit 092b611

Please sign in to comment.