|
1 | 1 | parameters:
|
2 | 2 | ignoreErrors:
|
3 | 3 | -
|
4 |
| - message: "#^Method Elastica\\\\QueryBuilder\\:\\:aggregation\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Aggregation but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#" |
| 4 | + message: '#^Method Elastica\\QueryBuilder\:\:aggregation\(\) should return Elastica\\QueryBuilder\\DSL\\Aggregation but returns Elastica\\QueryBuilder\\Facade\.$#' |
| 5 | + identifier: return.type |
5 | 6 | count: 1
|
6 | 7 | path: src/QueryBuilder.php
|
7 | 8 |
|
8 | 9 | -
|
9 |
| - message: "#^Method Elastica\\\\QueryBuilder\\:\\:collapse\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Collapse but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#" |
| 10 | + message: '#^Method Elastica\\QueryBuilder\:\:collapse\(\) should return Elastica\\QueryBuilder\\DSL\\Collapse but returns Elastica\\QueryBuilder\\Facade\.$#' |
| 11 | + identifier: return.type |
10 | 12 | count: 1
|
11 | 13 | path: src/QueryBuilder.php
|
12 | 14 |
|
13 | 15 | -
|
14 |
| - message: "#^Method Elastica\\\\QueryBuilder\\:\\:query\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Query but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#" |
| 16 | + message: '#^Method Elastica\\QueryBuilder\:\:query\(\) should return Elastica\\QueryBuilder\\DSL\\Query but returns Elastica\\QueryBuilder\\Facade\.$#' |
| 17 | + identifier: return.type |
15 | 18 | count: 1
|
16 | 19 | path: src/QueryBuilder.php
|
17 | 20 |
|
18 | 21 | -
|
19 |
| - message: "#^Method Elastica\\\\QueryBuilder\\:\\:suggest\\(\\) should return Elastica\\\\QueryBuilder\\\\DSL\\\\Suggest but returns Elastica\\\\QueryBuilder\\\\Facade\\.$#" |
| 22 | + message: '#^Method Elastica\\QueryBuilder\:\:suggest\(\) should return Elastica\\QueryBuilder\\DSL\\Suggest but returns Elastica\\QueryBuilder\\Facade\.$#' |
| 23 | + identifier: return.type |
20 | 24 | count: 1
|
21 | 25 | path: src/QueryBuilder.php
|
22 | 26 |
|
23 | 27 | -
|
24 |
| - message: "#^Parameter \\#1 \\$precision of method Elastica\\\\Aggregation\\\\GeohashGrid\\:\\:setPrecision\\(\\) expects int\\|string, float given\\.$#" |
| 28 | + message: '#^Parameter \#1 \$precision of method Elastica\\Aggregation\\GeohashGrid\:\:setPrecision\(\) expects int\|string, float given\.$#' |
| 29 | + identifier: argument.type |
25 | 30 | count: 1
|
26 | 31 | path: tests/Aggregation/GeohashGridTest.php
|
27 | 32 |
|
28 | 33 | -
|
29 |
| - message: "#^Parameter \\#1 \\$data of static method Elastica\\\\Bulk\\\\Action\\\\AbstractDocument\\:\\:create\\(\\) expects Elastica\\\\Document\\|Elastica\\\\Script\\\\AbstractScript, stdClass given\\.$#" |
| 34 | + message: '#^Parameter \#1 \$data of static method Elastica\\Bulk\\Action\\AbstractDocument\:\:create\(\) expects Elastica\\Document\|Elastica\\Script\\AbstractScript, stdClass given\.$#' |
| 35 | + identifier: argument.type |
30 | 36 | count: 1
|
31 | 37 | path: tests/Bulk/Action/AbstractDocumentTest.php
|
32 | 38 |
|
33 | 39 | -
|
34 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$counter\\.$#" |
| 40 | + message: '#^Parameter \#1 \$expected of method PHPUnit\\Framework\\Assert\:\:assertSame\(\) contains unresolvable type\.$#' |
| 41 | + identifier: argument.unresolvableType |
| 42 | + count: 1 |
| 43 | + path: tests/Bulk/Action/UpdateDocumentTest.php |
| 44 | + |
| 45 | + - |
| 46 | + message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Bulk\\\\Response'' and Elastica\\Bulk\\Response will always evaluate to true\.$#' |
| 47 | + identifier: method.alreadyNarrowedType |
| 48 | + count: 1 |
| 49 | + path: tests/Bulk/ResponseSetTest.php |
| 50 | + |
| 51 | + - |
| 52 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$counter\.$#' |
| 53 | + identifier: property.notFound |
35 | 54 | count: 1
|
36 | 55 | path: tests/BulkTest.php
|
37 | 56 |
|
38 | 57 | -
|
39 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$name\\.$#" |
| 58 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$name\.$#' |
| 59 | + identifier: property.notFound |
40 | 60 | count: 1
|
41 | 61 | path: tests/BulkTest.php
|
42 | 62 |
|
43 | 63 | -
|
44 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$test\\.$#" |
| 64 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$test\.$#' |
| 65 | + identifier: property.notFound |
45 | 66 | count: 3
|
46 | 67 | path: tests/BulkTest.php
|
47 | 68 |
|
48 | 69 | -
|
49 |
| - message: "#^Call to an undefined method Elastica\\\\Bulk\\\\Action\\:\\:getDocument\\(\\)\\.$#" |
| 70 | + message: '#^Call to an undefined method Elastica\\Bulk\\Action\:\:getDocument\(\)\.$#' |
| 71 | + identifier: method.notFound |
50 | 72 | count: 3
|
51 | 73 | path: tests/BulkTest.php
|
52 | 74 |
|
53 | 75 | -
|
54 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$age\\.$#" |
| 76 | + message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Bulk\\\\Response'' and Elastica\\Bulk\\Response will always evaluate to true\.$#' |
| 77 | + identifier: method.alreadyNarrowedType |
| 78 | + count: 1 |
| 79 | + path: tests/BulkTest.php |
| 80 | + |
| 81 | + - |
| 82 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$age\.$#' |
| 83 | + identifier: property.notFound |
55 | 84 | count: 1
|
56 | 85 | path: tests/ClientFunctionalTest.php
|
57 | 86 |
|
58 | 87 | -
|
59 |
| - message: "#^Parameter \\#2 \\$data of method Elastica\\\\Client\\:\\:updateDocument\\(\\) expects array\\|Elastica\\\\Document\\|Elastica\\\\Script\\\\AbstractScript, stdClass given\\.$#" |
| 88 | + message: '#^Parameter \#2 \$data of method Elastica\\Client\:\:updateDocument\(\) expects array\|Elastica\\Document\|Elastica\\Script\\AbstractScript, stdClass given\.$#' |
| 89 | + identifier: argument.type |
60 | 90 | count: 1
|
61 | 91 | path: tests/ClientFunctionalTest.php
|
62 | 92 |
|
63 | 93 | -
|
64 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field1\\.$#" |
| 94 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$field1\.$#' |
| 95 | + identifier: property.notFound |
65 | 96 | count: 1
|
66 | 97 | path: tests/DocumentTest.php
|
67 | 98 |
|
68 | 99 | -
|
69 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field2\\.$#" |
| 100 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$field2\.$#' |
| 101 | + identifier: property.notFound |
70 | 102 | count: 1
|
71 | 103 | path: tests/DocumentTest.php
|
72 | 104 |
|
73 | 105 | -
|
74 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field3\\.$#" |
| 106 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$field3\.$#' |
| 107 | + identifier: property.notFound |
75 | 108 | count: 1
|
76 | 109 | path: tests/DocumentTest.php
|
77 | 110 |
|
78 | 111 | -
|
79 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field4\\.$#" |
| 112 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$field4\.$#' |
| 113 | + identifier: property.notFound |
80 | 114 | count: 1
|
81 | 115 | path: tests/DocumentTest.php
|
82 | 116 |
|
83 | 117 | -
|
84 |
| - message: "#^Access to an undefined property Elastica\\\\Document\\:\\:\\$field5\\.$#" |
| 118 | + message: '#^Access to an undefined property Elastica\\Document\:\:\$field5\.$#' |
| 119 | + identifier: property.notFound |
85 | 120 | count: 1
|
86 | 121 | path: tests/DocumentTest.php
|
87 | 122 |
|
88 | 123 | -
|
89 |
| - message: "#^Dead catch \\- Elastica\\\\Exception\\\\InvalidException is never thrown in the try block\\.$#" |
| 124 | + message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Document'' and Elastica\\Document will always evaluate to true\.$#' |
| 125 | + identifier: method.alreadyNarrowedType |
| 126 | + count: 2 |
| 127 | + path: tests/DocumentTest.php |
| 128 | + |
| 129 | + - |
| 130 | + message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#' |
| 131 | + identifier: method.alreadyNarrowedType |
| 132 | + count: 6 |
| 133 | + path: tests/DocumentTest.php |
| 134 | + |
| 135 | + - |
| 136 | + message: '#^Dead catch \- Elastica\\Exception\\InvalidException is never thrown in the try block\.$#' |
| 137 | + identifier: catch.neverThrown |
90 | 138 | count: 1
|
91 | 139 | path: tests/DocumentTest.php
|
92 | 140 |
|
93 | 141 | -
|
94 |
| - message: "#^Expression \"\\$document\\-\\>field5\" on a separate line does not do anything\\.$#" |
| 142 | + message: '#^Expression "\$document\-\>field5" on a separate line does not do anything\.$#' |
| 143 | + identifier: expr.resultUnused |
95 | 144 | count: 1
|
96 | 145 | path: tests/DocumentTest.php
|
97 | 146 |
|
98 | 147 | -
|
99 |
| - message: "#^Unreachable statement \\- code above always terminates\\.$#" |
| 148 | + message: '#^Unreachable statement \- code above always terminates\.$#' |
| 149 | + identifier: deadCode.unreachable |
100 | 150 | count: 1
|
101 | 151 | path: tests/DocumentTest.php
|
102 | 152 |
|
103 | 153 | -
|
104 |
| - message: "#^Parameter \\#2 \\$name of class Elastica\\\\IndexTemplate constructor expects string, null given\\.$#" |
| 154 | + message: '#^Parameter \#2 \$name of class Elastica\\IndexTemplate constructor expects string, null given\.$#' |
| 155 | + identifier: argument.type |
105 | 156 | count: 1
|
106 | 157 | path: tests/IndexTemplateTest.php
|
107 | 158 |
|
108 | 159 | -
|
109 |
| - message: "#^Unreachable statement \\- code above always terminates\\.$#" |
| 160 | + message: '#^Unreachable statement \- code above always terminates\.$#' |
| 161 | + identifier: deadCode.unreachable |
110 | 162 | count: 1
|
111 | 163 | path: tests/IndexTest.php
|
112 | 164 |
|
113 | 165 | -
|
114 |
| - message: "#^Unreachable statement \\- code above always terminates\\.$#" |
| 166 | + message: '#^Unreachable statement \- code above always terminates\.$#' |
| 167 | + identifier: deadCode.unreachable |
115 | 168 | count: 2
|
116 | 169 | path: tests/Multi/SearchTest.php
|
117 | 170 |
|
118 | 171 | -
|
119 |
| - message: "#^Parameter \\#1 \\$clauses of class Elastica\\\\Query\\\\SpanNear constructor expects array\\<Elastica\\\\Query\\\\AbstractSpanQuery\\>, array\\<int, Elastica\\\\Query\\\\Term\\> given\\.$#" |
| 172 | + message: '#^Parameter \#1 \$clauses of class Elastica\\Query\\SpanNear constructor expects array\<Elastica\\Query\\AbstractSpanQuery\>, array\<int, Elastica\\Query\\Term\> given\.$#' |
| 173 | + identifier: argument.type |
120 | 174 | count: 1
|
121 | 175 | path: tests/Query/SpanNearTest.php
|
122 | 176 |
|
123 | 177 | -
|
124 |
| - message: "#^Parameter \\#1 \\$clauses of class Elastica\\\\Query\\\\SpanOr constructor expects array\\<Elastica\\\\Query\\\\AbstractSpanQuery\\>, array\\<int, Elastica\\\\Query\\\\Term\\> given\\.$#" |
| 178 | + message: '#^Parameter \#1 \$clauses of class Elastica\\Query\\SpanOr constructor expects array\<Elastica\\Query\\AbstractSpanQuery\>, array\<int, Elastica\\Query\\Term\> given\.$#' |
| 179 | + identifier: argument.type |
125 | 180 | count: 1
|
126 | 181 | path: tests/Query/SpanOrTest.php
|
127 | 182 |
|
128 | 183 | -
|
129 |
| - message: "#^Parameter \\#1 \\$term of method Elastica\\\\Query\\\\Terms\\:\\:addTerm\\(\\) expects bool\\|float\\|int\\|string, stdClass given\\.$#" |
| 184 | + message: '#^Parameter \#1 \$term of method Elastica\\Query\\Terms\:\:addTerm\(\) expects bool\|float\|int\|string, stdClass given\.$#' |
| 185 | + identifier: argument.type |
130 | 186 | count: 1
|
131 | 187 | path: tests/Query/TermsTest.php
|
132 | 188 |
|
133 | 189 | -
|
134 |
| - message: "#^Call to an undefined method ReflectionType\\:\\:getName\\(\\)\\.$#" |
| 190 | + message: '#^Call to an undefined method ReflectionType\:\:getName\(\)\.$#' |
| 191 | + identifier: method.notFound |
135 | 192 | count: 2
|
136 | 193 | path: tests/QueryBuilder/DSL/AbstractDSLTestCase.php
|
137 | 194 |
|
138 | 195 | -
|
139 |
| - message: "#^Call to an undefined method ReflectionType\\:\\:isBuiltin\\(\\)\\.$#" |
| 196 | + message: '#^Call to an undefined method ReflectionType\:\:isBuiltin\(\)\.$#' |
| 197 | + identifier: method.notFound |
140 | 198 | count: 1
|
141 | 199 | path: tests/QueryBuilder/DSL/AbstractDSLTestCase.php
|
142 | 200 |
|
143 | 201 | -
|
144 |
| - message: "#^Call to an undefined method Elastica\\\\QueryBuilder\\:\\:custom\\(\\)\\.$#" |
| 202 | + message: '#^Call to an undefined method Elastica\\QueryBuilder\:\:custom\(\)\.$#' |
| 203 | + identifier: method.notFound |
145 | 204 | count: 1
|
146 | 205 | path: tests/QueryBuilderTest.php
|
147 | 206 |
|
148 | 207 | -
|
149 |
| - message: "#^Call to an undefined method Elastica\\\\QueryBuilder\\:\\:invalid\\(\\)\\.$#" |
| 208 | + message: '#^Call to an undefined method Elastica\\QueryBuilder\:\:invalid\(\)\.$#' |
| 209 | + identifier: method.notFound |
150 | 210 | count: 1
|
151 | 211 | path: tests/QueryBuilderTest.php
|
152 | 212 |
|
153 | 213 | -
|
154 |
| - message: "#^Expression \"\\$index\\-\\>search\\('elastica search'\\)\\[3\\]\" on a separate line does not do anything\\.$#" |
| 214 | + message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#' |
| 215 | + identifier: method.alreadyNarrowedType |
155 | 216 | count: 1
|
156 |
| - path: tests/ResultSetTest.php |
| 217 | + path: tests/QueryTest.php |
157 | 218 |
|
158 | 219 | -
|
159 |
| - message: "#^Parameter \\#1 \\$indices of method Elastica\\\\Search\\:\\:addIndices\\(\\) expects array\\<Elastica\\\\Index\\>, array\\<int, stdClass\\> given\\.$#" |
| 220 | + message: '#^Parameter \#1 \$indices of method Elastica\\Search\:\:addIndices\(\) expects array\<Elastica\\Index\>, array\<int, stdClass\> given\.$#' |
| 221 | + identifier: argument.type |
160 | 222 | count: 1
|
161 | 223 | path: tests/SearchTest.php
|
162 | 224 |
|
163 | 225 | -
|
164 |
| - message: "#^Parameter \\#1 \\$indices of method Elastica\\\\Search\\:\\:addIndicesByName\\(\\) expects array\\<string\\>, array\\<int, stdClass\\> given\\.$#" |
| 226 | + message: '#^Parameter \#1 \$indices of method Elastica\\Search\:\:addIndicesByName\(\) expects array\<string\>, array\<int, stdClass\> given\.$#' |
| 227 | + identifier: argument.type |
165 | 228 | count: 1
|
166 | 229 | path: tests/SearchTest.php
|
167 | 230 |
|
168 | 231 | -
|
169 |
| - message: "#^Parameter \\#1 \\$suggestion of static method Elastica\\\\Suggest\\:\\:create\\(\\) expects Elastica\\\\Suggest\\|Elastica\\\\Suggest\\\\AbstractSuggest, Elastica\\\\Query\\\\BoolQuery given\\.$#" |
| 232 | + message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Elastica\\\\Response'' and Elastica\\Response will always evaluate to true\.$#' |
| 233 | + identifier: method.alreadyNarrowedType |
| 234 | + count: 1 |
| 235 | + path: tests/StatusTest.php |
| 236 | + |
| 237 | + - |
| 238 | + message: '#^Parameter \#1 \$suggestion of static method Elastica\\Suggest\:\:create\(\) expects Elastica\\Suggest\|Elastica\\Suggest\\AbstractSuggest, Elastica\\Query\\BoolQuery given\.$#' |
| 239 | + identifier: argument.type |
170 | 240 | count: 1
|
171 | 241 | path: tests/SuggestTest.php
|
172 | 242 |
|
0 commit comments