Skip to content

Commit 16007fd

Browse files
committed
Adding phpstan baseline
1 parent 1c6cf95 commit 16007fd

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Tests/ export-ignore
55
.gitattributes export-ignore
66
.gitignore export-ignore
77
phpstan.neon export-ignore
8+
phpstan-baseline.neon export-ignore
89
phpunit.xml.dist export-ignore
910
ruleset.xml export-ignore

phpstan-baseline.neon

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#'
5+
identifier: function.alreadyNarrowedType
6+
count: 1
7+
path: src/InputFilter.php
8+
9+
-
10+
message: '#^Call to function is_null\(\) with int will always evaluate to false\.$#'
11+
identifier: function.impossibleType
12+
count: 1
13+
path: src/OutputFilter.php
14+
15+
-
16+
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
17+
identifier: function.alreadyNarrowedType
18+
count: 1
19+
path: src/OutputFilter.php

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
includes:
33
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
4+
- phpstan-baseline.neon
45

56
parameters:
67
level: 5

0 commit comments

Comments
 (0)