Skip to content

Commit 3379930

Browse files
committed
generate baseline
1 parent 3437398 commit 3379930

File tree

1 file changed

+85
-23
lines changed

1 file changed

+85
-23
lines changed

phpstan-baseline.neon

+85-23
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,142 @@
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: '#^Return type \(array\<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\<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\(\)$#'
32+
identifier: method.childReturnType
33+
count: 1
34+
path: src/QueryReflection/PdoPgSqlQueryReflector.php
35+
36+
-
37+
message: '''
38+
#^Call to deprecated method resolvePreparedQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
39+
use resolvePreparedQueryStrings\(\) instead$#
40+
'''
41+
identifier: method.deprecated
3142
count: 1
3243
path: src/QueryReflection/QueryReflection.php
3344

3445
-
35-
message: "#^Casting to \\*NEVER\\* something that's already \\*NEVER\\*\\.$#"
46+
message: '#^Casting to \*NEVER\* something that''s already \*NEVER\*\.$#'
47+
identifier: cast.useless
3648
count: 1
3749
path: src/QueryReflection/QueryReflection.php
3850

3951
-
40-
message: "#^Strict comparison using \\=\\=\\= between null and null will always evaluate to true\\.$#"
52+
message: '#^Strict comparison using \=\=\= between null and null will always evaluate to true\.$#'
53+
identifier: identical.alwaysTrue
4154
count: 1
4255
path: src/QueryReflection/QueryReflection.php
4356

4457
-
45-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ConstantScalarType is error\\-prone and deprecated\\. Use Type\\:\\:isConstantScalarValue\\(\\) or Type\\:\\:getConstantScalarTypes\\(\\) or Type\\:\\:getConstantScalarValues\\(\\) instead\\.$#"
58+
message: '#^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$#'
59+
identifier: phpstanApi.instanceofType
4660
count: 1
4761
path: src/QueryReflection/QuerySimulation.php
4862

4963
-
50-
message: "#^Doing instanceof PHPStan\\\\Type\\\\IntersectionType is error\\-prone and deprecated\\.$#"
64+
message: '#^Doing instanceof PHPStan\\Type\\IntersectionType is error\-prone and deprecated\.$#'
65+
identifier: phpstanApi.instanceofType
5166
count: 1
5267
path: src/QueryReflection/QuerySimulation.php
5368

5469
-
55-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
70+
message: '#^Doing instanceof PHPStan\\Type\\ObjectType is error\-prone and deprecated\. Use Type\:\:isObject\(\) or Type\:\:getObjectClassNames\(\) instead\.$#'
71+
identifier: phpstanApi.instanceofType
5672
count: 2
5773
path: src/QueryReflection/QuerySimulation.php
5874

5975
-
60-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
76+
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantStringType is error\-prone and deprecated\. Use Type\:\:getConstantStrings\(\) instead\.$#'
77+
identifier: phpstanApi.instanceofType
6178
count: 1
6279
path: src/Rules/PdoStatementExecuteMethodRule.php
6380

6481
-
65-
message: """
66-
#^Call to deprecated method resolveQueryString\\(\\) of class staabm\\\\PHPStanDba\\\\QueryReflection\\\\QueryReflection\\:
67-
use resolveQueryStrings\\(\\) instead$#
68-
"""
82+
message: '''
83+
#^Call to deprecated method resolveQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
84+
use resolveQueryStrings\(\) instead$#
85+
'''
86+
identifier: method.deprecated
6987
count: 1
7088
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
7189

7290
-
73-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
91+
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
92+
identifier: phpstanApi.instanceofType
7493
count: 1
7594
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
7695

7796
-
78-
message: "#^Only booleans are allowed in an if condition, int given\\.$#"
97+
message: '#^Cannot call method getCondition\(\) on mixed\.$#'
98+
identifier: method.nonObject
99+
count: 2
100+
path: src/SqlAst/ParserInference.php
101+
102+
-
103+
message: '#^Cannot call method getLeft\(\) on mixed\.$#'
104+
identifier: method.nonObject
105+
count: 4
106+
path: src/SqlAst/ParserInference.php
107+
108+
-
109+
message: '#^Cannot call method getName\(\) on mixed\.$#'
110+
identifier: method.nonObject
111+
count: 1
112+
path: src/SqlAst/ParserInference.php
113+
114+
-
115+
message: '#^Cannot call method getRight\(\) on mixed\.$#'
116+
identifier: method.nonObject
117+
count: 2
118+
path: src/SqlAst/ParserInference.php
119+
120+
-
121+
message: '#^Cannot call method getTable\(\) on mixed\.$#'
122+
identifier: method.nonObject
123+
count: 1
124+
path: src/SqlAst/ParserInference.php
125+
126+
-
127+
message: '#^Parameter \#1 \$tableName of method staabm\\PHPStanDba\\SchemaReflection\\SchemaReflection\:\:getTable\(\) expects string, mixed given\.$#'
128+
identifier: argument.type
129+
count: 1
130+
path: src/SqlAst/ParserInference.php
131+
132+
-
133+
message: '#^Parameter \#3 \$joinCondition of class staabm\\PHPStanDba\\SchemaReflection\\Join constructor expects SqlFtw\\Sql\\Expression\\RootNode, mixed given\.$#'
134+
identifier: argument.type
135+
count: 1
136+
path: src/SqlAst/ParserInference.php
137+
138+
-
139+
message: '#^Only booleans are allowed in an if condition, int given\.$#'
140+
identifier: if.condNotBoolean
79141
count: 1
80142
path: src/TypeMapping/MysqliTypeMapper.php

0 commit comments

Comments
 (0)