Skip to content

Commit 1f1ecc9

Browse files
committed
PHPStan: added baseline
1 parent ad89689 commit 1f1ecc9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

phpstan-baseline.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Call to function is_array\(\) with array\<0\|1\|2, resource\> will always evaluate to true\.$#'
5+
identifier: function.alreadyNarrowedType
6+
count: 1
7+
path: src/Runners/CliRunner.php

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
25
level: max
36
treatPhpDocTypesAsCertain: false

0 commit comments

Comments
 (0)