-
Notifications
You must be signed in to change notification settings - Fork 7
/
phpstan.neon
72 lines (57 loc) · 1.96 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
includes:
- vendor/contributte/phpstan/phpstan.neon
parameters:
level: 9
phpVersion: 80100
scanDirectories:
- src
fileExtensions:
- php
paths:
- src
- .docs
ignoreErrors:
-
message: "#^Method Contributte\\\\Elastica\\\\Client\\:\\:request\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
count: 1
path: src/Client.php
-
message: "#^Method Contributte\\\\Elastica\\\\Client\\:\\:request\\(\\) has parameter \\$query with no value type specified in iterable type array\\.$#"
count: 1
path: src/Client.php
-
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/Diagnostics/Panel.php
-
message: "#^Cannot access an offset on mixed\\.$#"
count: 2
path: src/Diagnostics/Panel.php
-
message: "#^Casting to string something that's already string\\.$#"
count: 1
path: src/Diagnostics/Panel.php
-
message: "#^Only booleans are allowed in a negated boolean, array given\\.$#"
count: 1
path: src/Diagnostics/Panel.php
-
message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#"
count: 1
path: src/Diagnostics/Panel.php
-
message: "#^Only booleans are allowed in an if condition, Elastica\\\\Response\\|null given\\.$#"
count: 1
path: src/Diagnostics/Panel.php
-
message: "#^Only booleans are allowed in an if condition, int given\\.$#"
count: 1
path: src/Diagnostics/Panel.php
-
message: "#^Return type \\(string\\|null\\) of method Contributte\\\\Elastica\\\\Diagnostics\\\\Panel\\:\\:getPanel\\(\\) should be covariant with return type \\(string\\) of method Tracy\\\\IBarPanel\\:\\:getPanel\\(\\)$#"
count: 1
path: src/Diagnostics/Panel.php
-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Diagnostics/Panel.php