Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Relax PHPStan errors with unused methods #247

Merged
merged 6 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Loading