You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+193-3Lines changed: 193 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,155 @@ parameters:
15
15
count:1
16
16
path:src/DbSchema/SchemaHasherMysql.php
17
17
18
+
-
19
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
113
+
count:1
114
+
path:src/PdoReflection/PdoStatementObjectType.php
115
+
116
+
-
117
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
118
+
count:1
119
+
path:src/PdoReflection/PdoStatementObjectType.php
120
+
121
+
-
122
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
123
+
count:1
124
+
path:src/PdoReflection/PdoStatementReflection.php
125
+
23
126
-
24
127
message:"#^Strict comparison using \\=\\=\\= between 'dibi' and 'dibi' will always evaluate to true\\.$#"
25
128
count:1
26
129
path:src/QueryReflection/DbaApi.php
27
130
28
131
-
29
-
message:"#^Return type \\(array\\<int, array\\{name\\: string, table\\?\\: string, native_type\\: string, len\\: int, flags\\: array\\<int, string\\>\\}\\>\\|PDOException\\|null\\) of method staabm\\\\PHPStanDba\\\\QueryReflection\\\\PdoPgSqlQueryReflector\\:\\:simulateQuery\\(\\) should be covariant with return type \\(array\\<int, array\\{name\\: string, table\\: string, native_type\\: string, len\\: int, flags\\: array\\<int, string\\>, precision\\: int\\<0, max\\>, pdo_type\\: 0\\|1\\|2\\|3\\|4\\|5\\|6\\|536870912\\|1073741824\\|2147483648\\}\\>\\|PDOException\\|null\\) of method staabm\\\\PHPStanDba\\\\QueryReflection\\\\BasePdoQueryReflector\\:\\:simulateQuery\\(\\)$#"
132
+
message:"""
133
+
#^Call to deprecated method getConstantArrays\\(\\) of class PHPStan\\\\Type\\\\TypeUtils\\:
134
+
Use PHPStan\\\\Type\\\\Type\\:\\:getConstantArrays\\(\\) instead and handle optional keys if necessary\\.$#
135
+
"""
136
+
count:1
137
+
path:src/QueryReflection/QueryReflection.php
138
+
139
+
-
140
+
message:"""
141
+
#^Call to deprecated method getConstantStrings\\(\\) of class PHPStan\\\\Type\\\\TypeUtils\\:
142
+
Use PHPStan\\\\Type\\\\Type\\:\\:getConstantStrings\\(\\) instead$#
#^Call to deprecated method resolvePreparedQueryString\\(\\) of class staabm\\\\PHPStanDba\\\\QueryReflection\\\\QueryReflection\\:
150
+
use resolvePreparedQueryStrings\\(\\) instead$#
151
+
"""
152
+
count:1
153
+
path:src/QueryReflection/QueryReflection.php
32
154
33
155
-
34
156
message:"#^Casting to \\*NEVER\\* something that's already \\*NEVER\\*\\.$#"
35
157
count:1
36
158
path:src/QueryReflection/QueryReflection.php
37
159
38
160
-
39
-
message:"#^Instanceof between PHPStan\\\\Type\\\\Constant\\\\ConstantIntegerType and PHPStan\\\\Type\\\\Constant\\\\ConstantIntegerType will always evaluate to true\\.$#"
161
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
162
+
count:3
163
+
path:src/QueryReflection/QueryReflection.php
164
+
165
+
-
166
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
40
167
count:1
41
168
path:src/QueryReflection/QueryReflection.php
42
169
@@ -45,6 +172,69 @@ parameters:
45
172
count:1
46
173
path:src/QueryReflection/QueryReflection.php
47
174
175
+
-
176
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Accessory\\\\AccessoryType is error\\-prone and deprecated\\. Use methods on PHPStan\\\\Type\\\\Type instead\\.$#"
177
+
count:1
178
+
path:src/QueryReflection/QuerySimulation.php
179
+
180
+
-
181
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\ArrayType is error\\-prone and deprecated\\. Use Type\\:\\:isArray\\(\\) or Type\\:\\:getArrays\\(\\) instead\\.$#"
182
+
count:1
183
+
path:src/QueryReflection/QuerySimulation.php
184
+
185
+
-
186
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\ConstantScalarType is error\\-prone and deprecated\\. Use Type\\:\\:isConstantScalarValue\\(\\) or Type\\:\\:getConstantScalarTypes\\(\\) or Type\\:\\:getConstantScalarValues\\(\\) instead\\.$#"
187
+
count:1
188
+
path:src/QueryReflection/QuerySimulation.php
189
+
190
+
-
191
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\IntersectionType is error\\-prone and deprecated\\.$#"
192
+
count:2
193
+
path:src/QueryReflection/QuerySimulation.php
194
+
195
+
-
196
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
197
+
count:2
198
+
path:src/QueryReflection/QuerySimulation.php
199
+
200
+
-
201
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
202
+
count:1
203
+
path:src/Rules/DoctrineKeyValueStyleRule.php
204
+
205
+
-
206
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
207
+
count:2
208
+
path:src/Rules/DoctrineKeyValueStyleRule.php
209
+
210
+
-
211
+
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
212
+
count:1
213
+
path:src/Rules/PdoStatementExecuteMethodRule.php
214
+
215
+
-
216
+
message:"""
217
+
#^Call to deprecated method resolveQueryString\\(\\) of class staabm\\\\PHPStanDba\\\\QueryReflection\\\\QueryReflection\\:
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
message:"#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
235
+
count:1
236
+
path:src/SchemaReflection/SchemaReflection.php
237
+
48
238
-
49
239
message:"#^Call to function is_string\\(\\) with string will always evaluate to true\\.$#"
0 commit comments