Skip to content

Commit

Permalink
Relax PHPStan errors with unused methods (#247)
Browse files Browse the repository at this point in the history
* Ignore unused method errors for now
* Bump phpstan/phpstan to 1.10
  • Loading branch information
tuupola committed Oct 20, 2023
1 parent 26ed072 commit 0b184a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -31,7 +31,7 @@
"require-dev": {
"squizlabs/php_codesniffer": "^3.7",
"overtrue/phplint": "^1.0",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^7.0|^8.5.30|^9.0",
"equip/dispatch": "^2.0",
"laminas/laminas-diactoros": "^2.0"
Expand Down
2 changes: 2 additions & 0 deletions phpstan-baseline.neon
@@ -1,5 +1,7 @@
parameters:
ignoreErrors:
-
message: '#^Method .* is unused.$#'
-
message: "#^Offset 'secret' does not exist on array\\{secret\\?\\: array\\<string\\>\\|string, secure\\: bool, relaxed\\: array\\<string\\>, algorithm\\: array\\<string\\>, header\\: string, regexp\\: string, cookie\\: string, attribute\\: string, \\.\\.\\.\\}\\.$#"
count: 1
Expand Down

0 comments on commit 0b184a8

Please sign in to comment.