Skip to content

Commit 22e79a7

Browse files
authored
Merge pull request #76 from vladsolntsev/chore/update-php-parser
chore(dependencies): update nikic/php-parser to 5.4
2 parents 802ee74 + cc81bd1 commit 22e79a7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ master
88

99
* Replace `fabpot/local-php-security-checker` by `composer audit` for the security check
1010
* Move code snippets into tests directory
11+
* Updated nikic/php-parser to 5.4
1112

1213
------
1314

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require-dev": {
2424
"ergebnis/composer-normalize": "^2.6",
2525
"friendsofphp/php-cs-fixer": "^3.0",
26-
"nikic/php-parser": "^4.3",
26+
"nikic/php-parser": "^5.4",
2727
"phpstan/phpstan-phpunit": "^2.0",
2828
"phpunit/phpunit": "^9.5",
2929
"symfony/var-dumper": "^5.0"

tests/Unit/Rules/BannedNodesRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use PhpParser\Node\Name;
2828
use PhpParser\Node\Name\FullyQualified;
2929
use PhpParser\Node\Scalar\LNumber;
30+
use PhpParser\Node\Scalar\String_;
3031
use PHPStan\Analyser\Scope;
3132
use PHPStan\Rules\IdentifierRuleError;
3233
use PHPStan\Rules\NonIgnorableRuleError;
@@ -195,6 +196,6 @@ public function getHandledNodes(): \Generator
195196
yield [new Eval_($this->createMock(Expr::class))];
196197
yield [new Exit_()];
197198
yield [new Print_($this->createMock(Expr::class))];
198-
yield [new ShellExec([''])];
199+
yield [new ShellExec([new String_('')])];
199200
}
200201
}

0 commit comments

Comments
 (0)