Skip to content

Commit 389ac3a

Browse files
authored
composer.json: move nikic/php-parser into dev dependencies (#60)
* composer.json: move `nikic/php-parser` into dev dependencies * composer-require-checker.json: ignore PhpParser classes * composer-require-checker.json: ignore PhpParser classes v2
1 parent 3cafd8c commit 389ac3a

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

composer-require-checker.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
"PHPStan\\Rules\\RuleErrorBuilder",
1111
"PHPStan\\Type\\ConstantScalarType",
1212
"PHPStan\\Type\\ObjectType",
13-
"PHPStan\\Type\\TypeWithClassName"
13+
"PHPStan\\Type\\TypeWithClassName",
14+
"PhpParser\\Node",
15+
"PhpParser\\Node\\Expr\\ArrowFunction",
16+
"PhpParser\\Node\\Expr\\Assign",
17+
"PhpParser\\Node\\Expr\\Closure",
18+
"PhpParser\\Node\\Expr\\FuncCall",
19+
"PhpParser\\Node\\Expr\\New_",
20+
"PhpParser\\Node\\Expr\\StaticPropertyFetch",
21+
"PhpParser\\Node\\Expr\\Variable",
22+
"PhpParser\\Node\\FunctionLike",
23+
"PhpParser\\Node\\Name",
24+
"PhpParser\\Node\\Scalar\\String_",
25+
"PhpParser\\Node\\Stmt\\ClassLike",
26+
"PhpParser\\Node\\Stmt\\Goto_",
27+
"PhpParser\\Node\\Stmt\\Interface_",
28+
"PhpParser\\Node\\Stmt\\Trait_",
29+
"PhpParser\\Node\\VarLikeIdentifier"
1430
]
1531
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
],
1313
"require": {
1414
"php": "~8.2.0 || ~8.3.0",
15-
"nikic/php-parser": "^4.19.1 || ^5.0.2",
1615
"phpstan/phpstan": "^1.11.8"
1716
},
1817
"require-dev": {
1918
"nette/di": "^3.2.2",
2019
"nette/neon": "^3.4.3",
20+
"nikic/php-parser": "^4.19.1 || ^5.0.2",
2121
"phpstan/phpstan-phpunit": "^1.4.0",
2222
"phpunit/phpunit": "^11.2.9",
2323
"slam/php-cs-fixer-extensions": "^3.11.1"

0 commit comments

Comments
 (0)