Skip to content

Commit ff8270f

Browse files
committed
Add phpstan baseline for 3.x-dev
1 parent b4ad75b commit ff8270f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

phpstan-baseline.neon

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Negated boolean expression is always false\\.$#"
5+
count: 1
6+
path: src/Registry.php
7+
8+
-
9+
message: "#^Parameter \\#1 \\$array of class ArrayIterator constructor expects array\\<TKey of \\(int\\|string\\), TValue\\>, stdClass given\\.$#"
10+
count: 1
11+
path: src/Registry.php
12+
13+
-
14+
message: "#^Parameter \\#2 \\$callback of function array_filter expects \\(callable\\(string\\)\\: bool\\)\\|null, 'strlen' given\\.$#"
15+
count: 3
16+
path: src/Registry.php
17+
18+
-
19+
message: "#^Result of \\|\\| is always false\\.$#"
20+
count: 1
21+
path: src/Registry.php
22+
23+
-
24+
message: "#^Strict comparison using \\=\\=\\= between mixed and null will always evaluate to false\\.$#"
25+
count: 1
26+
path: src/Registry.php
27+
28+
-
29+
message: "#^Strict comparison using \\=\\=\\= between string and null will always evaluate to false\\.$#"
30+
count: 1
31+
path: src/Registry.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)