Skip to content

Commit a91a1f6

Browse files
committed
QA: update phpstan
1 parent a8a269d commit a91a1f6

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

phpstan.neon

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,57 @@ parameters:
1616
- .docs
1717

1818
ignoreErrors:
19+
-
20+
message: "#^Method Contributte\\\\Elastica\\\\Client\\:\\:request\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
21+
count: 1
22+
path: src/Client.php
23+
24+
-
25+
message: "#^Method Contributte\\\\Elastica\\\\Client\\:\\:request\\(\\) has parameter \\$query with no value type specified in iterable type array\\.$#"
26+
count: 1
27+
path: src/Client.php
28+
29+
-
30+
message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#"
31+
count: 1
32+
path: src/Diagnostics/Panel.php
33+
34+
-
35+
message: "#^Cannot access an offset on mixed\\.$#"
36+
count: 2
37+
path: src/Diagnostics/Panel.php
38+
39+
-
40+
message: "#^Casting to string something that's already string\\.$#"
41+
count: 1
42+
path: src/Diagnostics/Panel.php
43+
44+
-
45+
message: "#^Only booleans are allowed in a negated boolean, array given\\.$#"
46+
count: 1
47+
path: src/Diagnostics/Panel.php
48+
49+
-
50+
message: "#^Only booleans are allowed in a ternary operator condition, string\\|null given\\.$#"
51+
count: 1
52+
path: src/Diagnostics/Panel.php
53+
54+
-
55+
message: "#^Only booleans are allowed in an if condition, Elastica\\\\Response\\|null given\\.$#"
56+
count: 1
57+
path: src/Diagnostics/Panel.php
58+
59+
-
60+
message: "#^Only booleans are allowed in an if condition, int given\\.$#"
61+
count: 1
62+
path: src/Diagnostics/Panel.php
63+
64+
-
65+
message: "#^Return type \\(string\\|null\\) of method Contributte\\\\Elastica\\\\Diagnostics\\\\Panel\\:\\:getPanel\\(\\) should be covariant with return type \\(string\\) of method Tracy\\\\IBarPanel\\:\\:getPanel\\(\\)$#"
66+
count: 1
67+
path: src/Diagnostics/Panel.php
68+
69+
-
70+
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
71+
count: 1
72+
path: src/Diagnostics/Panel.php

0 commit comments

Comments
 (0)