Skip to content

Commit

Permalink
chore: adjust for new phpstan 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Aug 27, 2024
1 parent 68b2dc5 commit 3d93b87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.59",
"phpstan/phpstan": "^1.11",
"friendsofphp/php-cs-fixer": "^3.63",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-strict-rules": "^1.6",
"phpstan/extension-installer": "^1.4",
Expand Down
12 changes: 12 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,15 @@ parameters:
message: "#^.* will always evaluate to true\\.$#"
path: tests/*
count: 1
-
message: "#^Offset .* in isset\\(\\) always exists and is not nullable\\.$#"
path: lib/functions.php
count: 3
-
message: "#^Result of && is always true\\.$#"
path: lib/functions.php
count: 1
-
message: "#^Strict comparison using !== between '' and non-falsy-string will always evaluate to true\\.$#"
path: lib/functions.php
count: 1

0 comments on commit 3d93b87

Please sign in to comment.