Skip to content

Commit

Permalink
Fix: Remove dependency on nikic/php-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 1, 2024
1 parent bf6bddc commit bbe730b
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 60 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ For a full diff see [`2.4.0...main`][2.4.0...main].

- Added rule error identifiers ([#875]), by [@localheinz]

### Changed

- Removed dependency on `nikic/php-parser` ([#878]), by [@localheinz]

## [`2.4.0`][2.4.0]

For a full diff see [`2.3.0...2.4.0`][2.3.0...2.4.0].
Expand Down Expand Up @@ -528,6 +532,7 @@ For a full diff see [`362c7ea...0.1.0`][362c7ea...0.1.0].
[#862]: https://github.com/ergebnis/phpstan-rules/pull/862
[#872]: https://github.com/ergebnis/phpstan-rules/pull/872
[#875]: https://github.com/ergebnis/phpstan-rules/pull/875
[#878]: https://github.com/ergebnis/phpstan-rules/pull/878

[@enumag]: https://github.com/enumag
[@ergebnis]: https://github.com/ergebnis
Expand Down
20 changes: 20 additions & 0 deletions composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
{
"symbol-whitelist": [
"PhpParser\\Comment\\Doc",
"PhpParser\\Node",
"PhpParser\\Node\\Expr\\Closure",
"PhpParser\\Node\\Expr\\ConstFetch",
"PhpParser\\Node\\Expr\\ErrorSuppress",
"PhpParser\\Node\\Expr\\Eval_",
"PhpParser\\Node\\Expr\\FuncCall",
"PhpParser\\Node\\Expr\\Isset_",
"PhpParser\\Node\\Identifier",
"PhpParser\\Node\\Name",
"PhpParser\\Node\\NullableType",
"PhpParser\\Node\\Param",
"PhpParser\\Node\\Scalar\\LNumber",
"PhpParser\\Node\\Stmt\\Class_",
"PhpParser\\Node\\Stmt\\ClassMethod",
"PhpParser\\Node\\Stmt\\Declare_",
"PhpParser\\Node\\Stmt\\Function_",
"PhpParser\\Node\\Stmt\\InlineHTML",
"PhpParser\\Node\\Stmt\\Switch_",
"PhpParser\\Node\\UnionType",
"PHPStan\\Analyser\\Scope",
"PHPStan\\Node\\FileNode",
"PHPStan\\Reflection\\ClassReflection",
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-mbstring": "*",
"nikic/php-parser": "^4.2.3 || ^5.0.0",
"phpstan/phpstan": "^1.10.21"
},
"require-dev": {
Expand Down
120 changes: 61 additions & 59 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bbe730b

Please sign in to comment.