Skip to content

Commit

Permalink
Require phpstan/phpstan:^2
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Dec 29, 2024
1 parent 81ce672 commit 1456d09
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"orisai/coding-standard": "^3.0.0",
"orisai/vfs": "^1.0.0",
"phpstan/extension-installer": "^1.0.0",
"phpstan/phpstan": "^1.0.0",
"phpstan/phpstan-deprecation-rules": "^1.0.0",
"phpstan/phpstan-nette": "^1.0.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpstan/phpstan-strict-rules": "^1.0.0",
"phpstan/phpstan": "^2.0.0",
"phpstan/phpstan-deprecation-rules": "^2.0.0",
"phpstan/phpstan-nette": "^2.0.0",
"phpstan/phpstan-phpunit": "^2.0.0",
"phpstan/phpstan-strict-rules": "^2.0.0",
"phpunit/phpunit": "^9.5.0",
"staabm/annotate-pull-request-from-checkstyle": "^1.7.0"
},
Expand Down
12 changes: 8 additions & 4 deletions tools/phpstan.baseline.neon
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#3 \\$subject of function str_replace expects array\\|string, string\\|false given\\.$#"
message: '#^Parameter \#3 \$subject of function str_replace expects array\<string\>\|string, string\|false given\.$#'
identifier: argument.type
count: 2
path: ../tests/Unit/Loader/LoaderGeneratorTest.php

-
message: "#^Call to method Orisai\\\\Installer\\\\Modules\\\\Module\\:\\:getDependents\\(\\) on a separate line has no effect\\.$#"
message: '#^Call to method Orisai\\Installer\\Modules\\Module\:\:getDependents\(\) on a separate line has no effect\.$#'
identifier: method.resultUnused
count: 1
path: ../tests/Unit/Modules/ModuleTest.php

-
message: "#^Cannot call method getClass\\(\\) on Orisai\\\\Installer\\\\Schema\\\\LoaderSchema\\|null\\.$#"
message: '#^Cannot call method getClass\(\) on Orisai\\Installer\\Schema\\LoaderSchema\|null\.$#'
identifier: method.nonObject
count: 1
path: ../tests/Unit/Schema/ModuleSchemaTest.php

-
message: "#^Cannot call method getFile\\(\\) on Orisai\\\\Installer\\\\Schema\\\\LoaderSchema\\|null\\.$#"
message: '#^Cannot call method getFile\(\) on Orisai\\Installer\\Schema\\LoaderSchema\|null\.$#'
identifier: method.nonObject
count: 1
path: ../tests/Unit/Schema/ModuleSchemaTest.php

0 comments on commit 1456d09

Please sign in to comment.