Skip to content

Commit

Permalink
ignore phpstan reports about superfluous code
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Sep 6, 2024
1 parent 0dbc8fd commit 4eb36d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ parameters:
message: "#^Left side of || is always false.$#"
count: 6
path: lib/Client.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true.$#"
count: 1
path: lib/Auth/Digest.php
-
message: "#^Strict comparison using !== between '' and non-empty-string will always evaluate to true.$#"
count: 1
path: lib/Auth/Digest.php
-
message: "#^Casting to string something that's already string.$#"
count: 1
Expand All @@ -22,6 +30,10 @@ parameters:
message: "#^Strict comparison using === between null and array<string, mixed> will always evaluate to false.$#"
count: 1
path: lib/functions.php
-
message: "#^Offset 'value' on array.* in isset\\(\\) always exists and is not nullable.$#"
count: 1
path: lib/functions.php
-
message: "#^.* will always evaluate to true\\.$#"
count: 4
Expand Down

0 comments on commit 4eb36d1

Please sign in to comment.