Skip to content

Commit 1d0fbe0

Browse files
committed
regenerate baseline
1 parent 33ac069 commit 1d0fbe0

File tree

2 files changed

+116
-24
lines changed

2 files changed

+116
-24
lines changed

phpstan-baseline.neon

Lines changed: 115 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,172 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Unresolvable Query\\: Cannot resolve query with variable type\\: non\\-empty\\-string\\.$#"
4+
message: '#^Unresolvable Query\: Cannot resolve query with variable type\: non\-empty\-string\.$#'
5+
identifier: dba.unresolvableQuery
56
count: 2
67
path: src/Analyzer/QueryPlanAnalyzerMysql.php
78

89
-
9-
message: """
10-
#^Call to deprecated method resolveQueryString\\(\\) of class staabm\\\\PHPStanDba\\\\QueryReflection\\\\QueryReflection\\:
11-
use resolveQueryStrings\\(\\) instead$#
12-
"""
10+
message: '''
11+
#^Call to deprecated method resolveQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
12+
use resolveQueryStrings\(\) instead$#
13+
'''
14+
identifier: method.deprecated
1315
count: 1
1416
path: src/Extensions/DeployerRunMysqlQueryDynamicReturnTypeExtension.php
1517

1618
-
17-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
19+
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
20+
identifier: phpstanApi.instanceofType
1821
count: 2
1922
path: src/Extensions/DibiConnectionFetchDynamicReturnTypeExtension.php
2023

2124
-
22-
message: "#^Strict comparison using \\=\\=\\= between 'dibi' and 'dibi' will always evaluate to true\\.$#"
25+
message: '#^Strict comparison using \=\=\= between ''dibi'' and ''dibi'' will always evaluate to true\.$#'
26+
identifier: identical.alwaysTrue
2327
count: 1
2428
path: src/QueryReflection/DbaApi.php
2529

2630
-
27-
message: """
28-
#^Call to deprecated method resolvePreparedQueryString\\(\\) of class staabm\\\\PHPStanDba\\\\QueryReflection\\\\QueryReflection\\:
29-
use resolvePreparedQueryStrings\\(\\) instead$#
30-
"""
31+
message: '#^Method staabm\\PHPStanDba\\QueryReflection\\PdoMysqlQueryReflector\:\:simulateQuery\(\) should return list\<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 but returns array\<int\<0, max\>, 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\.$#'
32+
identifier: return.type
33+
count: 1
34+
path: src/QueryReflection/PdoMysqlQueryReflector.php
35+
36+
-
37+
message: '#^Property staabm\\PHPStanDba\\QueryReflection\\BasePdoQueryReflector\:\:\$cache \(array\<string, list\<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\>\) does not accept non\-empty\-array\<string, array\<int\<0, max\>, array\{name\: string, table\: string, len\: int, flags\: array\<int, string\>, precision\: int\<0, max\>, pdo_type\: 0\|1\|2\|3\|4\|5\|6\|536870912\|1073741824\|2147483648, native_type\: string\}\>\|PDOException\|null\>\.$#'
38+
identifier: assign.propertyType
39+
count: 1
40+
path: src/QueryReflection/PdoMysqlQueryReflector.php
41+
42+
-
43+
message: '#^Method staabm\\PHPStanDba\\QueryReflection\\PdoPgSqlQueryReflector\:\:simulateQuery\(\) should return list\<array\{name\: string, table\?\: string, native_type\: string, len\: int, flags\: list\<string\>\}\>\|PDOException\|null but returns array\<int\<0, max\>, 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\.$#'
44+
identifier: return.type
45+
count: 1
46+
path: src/QueryReflection/PdoPgSqlQueryReflector.php
47+
48+
-
49+
message: '#^Method staabm\\PHPStanDba\\QueryReflection\\PdoPgSqlQueryReflector\:\:simulateQuery\(\) should return list\<array\{name\: string, table\?\: string, native_type\: string, len\: int, flags\: list\<string\>\}\>\|PDOException\|null but returns list\<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\.$#'
50+
identifier: return.type
51+
count: 1
52+
path: src/QueryReflection/PdoPgSqlQueryReflector.php
53+
54+
-
55+
message: '''
56+
#^Call to deprecated method resolvePreparedQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
57+
use resolvePreparedQueryStrings\(\) instead$#
58+
'''
59+
identifier: method.deprecated
3160
count: 1
3261
path: src/QueryReflection/QueryReflection.php
3362

3463
-
35-
message: "#^Casting to \\*NEVER\\* something that's already \\*NEVER\\*\\.$#"
64+
message: '#^Casting to \*NEVER\* something that''s already \*NEVER\*\.$#'
65+
identifier: cast.useless
3666
count: 1
3767
path: src/QueryReflection/QueryReflection.php
3868

3969
-
40-
message: "#^Strict comparison using \\=\\=\\= between null and null will always evaluate to true\\.$#"
70+
message: '#^Strict comparison using \=\=\= between null and null will always evaluate to true\.$#'
71+
identifier: identical.alwaysTrue
4172
count: 1
4273
path: src/QueryReflection/QueryReflection.php
4374

4475
-
45-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ConstantScalarType is error\\-prone and deprecated\\. Use Type\\:\\:isConstantScalarValue\\(\\) or Type\\:\\:getConstantScalarTypes\\(\\) or Type\\:\\:getConstantScalarValues\\(\\) instead\\.$#"
76+
message: '#^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$#'
77+
identifier: phpstanApi.instanceofType
4678
count: 1
4779
path: src/QueryReflection/QuerySimulation.php
4880

4981
-
50-
message: "#^Doing instanceof PHPStan\\\\Type\\\\IntersectionType is error\\-prone and deprecated\\.$#"
82+
message: '#^Doing instanceof PHPStan\\Type\\IntersectionType is error\-prone and deprecated\.$#'
83+
identifier: phpstanApi.instanceofType
5184
count: 1
5285
path: src/QueryReflection/QuerySimulation.php
5386

5487
-
55-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
88+
message: '#^Doing instanceof PHPStan\\Type\\ObjectType is error\-prone and deprecated\. Use Type\:\:isObject\(\) or Type\:\:getObjectClassNames\(\) instead\.$#'
89+
identifier: phpstanApi.instanceofType
5690
count: 2
5791
path: src/QueryReflection/QuerySimulation.php
5892

5993
-
60-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
94+
message: '#^Method staabm\\PHPStanDba\\QueryReflection\\ReflectionCache\:\:readCachedRecords\(\) should return array\<string, array\{error\?\: staabm\\PHPStanDba\\Error\|null, result\?\: array\<1\|2\|3\|4\|5\|6\|7\|8, PHPStan\\Type\\Type\|null\>\}\>\|null but returns array\<mixed, mixed\>\.$#'
95+
identifier: return.type
96+
count: 1
97+
path: src/QueryReflection/ReflectionCache.php
98+
99+
-
100+
message: '#^Property staabm\\PHPStanDba\\QueryReflection\\ReflectionCache\:\:\$schemaHash \(string\|null\) does not accept mixed\.$#'
101+
identifier: assign.propertyType
102+
count: 1
103+
path: src/QueryReflection/ReflectionCache.php
104+
105+
-
106+
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantStringType is error\-prone and deprecated\. Use Type\:\:getConstantStrings\(\) instead\.$#'
107+
identifier: phpstanApi.instanceofType
61108
count: 1
62109
path: src/Rules/PdoStatementExecuteMethodRule.php
63110

64111
-
65-
message: """
66-
#^Call to deprecated method resolveQueryString\\(\\) of class staabm\\\\PHPStanDba\\\\QueryReflection\\\\QueryReflection\\:
67-
use resolveQueryStrings\\(\\) instead$#
68-
"""
112+
message: '''
113+
#^Call to deprecated method resolveQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
114+
use resolveQueryStrings\(\) instead$#
115+
'''
116+
identifier: method.deprecated
69117
count: 1
70118
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
71119

72120
-
73-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
121+
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
122+
identifier: phpstanApi.instanceofType
74123
count: 1
75124
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
76125

77126
-
78-
message: "#^Only booleans are allowed in an if condition, int given\\.$#"
127+
message: '#^Cannot call method getCondition\(\) on mixed\.$#'
128+
identifier: method.nonObject
129+
count: 2
130+
path: src/SqlAst/ParserInference.php
131+
132+
-
133+
message: '#^Cannot call method getLeft\(\) on mixed\.$#'
134+
identifier: method.nonObject
135+
count: 4
136+
path: src/SqlAst/ParserInference.php
137+
138+
-
139+
message: '#^Cannot call method getName\(\) on mixed\.$#'
140+
identifier: method.nonObject
141+
count: 1
142+
path: src/SqlAst/ParserInference.php
143+
144+
-
145+
message: '#^Cannot call method getRight\(\) on mixed\.$#'
146+
identifier: method.nonObject
147+
count: 2
148+
path: src/SqlAst/ParserInference.php
149+
150+
-
151+
message: '#^Cannot call method getTable\(\) on mixed\.$#'
152+
identifier: method.nonObject
153+
count: 1
154+
path: src/SqlAst/ParserInference.php
155+
156+
-
157+
message: '#^Parameter \#1 \$tableName of method staabm\\PHPStanDba\\SchemaReflection\\SchemaReflection\:\:getTable\(\) expects string, mixed given\.$#'
158+
identifier: argument.type
159+
count: 1
160+
path: src/SqlAst/ParserInference.php
161+
162+
-
163+
message: '#^Parameter \#3 \$joinCondition of class staabm\\PHPStanDba\\SchemaReflection\\Join constructor expects SqlFtw\\Sql\\Expression\\RootNode, mixed given\.$#'
164+
identifier: argument.type
165+
count: 1
166+
path: src/SqlAst/ParserInference.php
167+
168+
-
169+
message: '#^Only booleans are allowed in an if condition, int given\.$#'
170+
identifier: if.condNotBoolean
79171
count: 1
80172
path: src/TypeMapping/MysqliTypeMapper.php

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ parameters:
1818

1919
ignoreErrors:
2020
-
21-
message: '#.*so it can be removed from the return type#'
21+
message: '#.*so it can be removed from the return type.*#' # requires https://github.com/phpstan/phpstan/issues/10312
2222
-
2323
message: '#^Method staabm\\PHPStanDba\\DbSchema\\SchemaHasherMysql\:\:hashDb\(\) should return string but returns float\|int\|string\.$#'
2424
path: src/DbSchema/SchemaHasherMysql.php

0 commit comments

Comments
 (0)