Skip to content

Commit

Permalink
Re-implement TokenScanner using nikic/php-parser (zircote#1597)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Jun 4, 2024
1 parent 6d825ea commit b33a23b
Show file tree
Hide file tree
Showing 13 changed files with 146 additions and 317 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"require": {
"php": ">=7.4",
"ext-json": "*",
"nikic/php-parser": "^4.19",
"psr/log": "^1.1 || ^2.0 || ^3.0",
"symfony/deprecation-contracts": "^2 || ^3",
"symfony/finder": "^5.0 || ^6.0 || ^7.0",
Expand Down
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ parameters:
path: Examples/using-links-php81/User.php

-
message: "#^Strict comparison using \\=\\=\\= between array\\|string and false will always evaluate to false\\.$#"
message: "#^Call to function array_key_exists\\(\\) with string and array\\{\\} will always evaluate to false\\.$#"
count: 1
path: src/Analysers/TokenScanner.php

Expand Down
Loading

0 comments on commit b33a23b

Please sign in to comment.