Skip to content

Commit 2637a9c

Browse files
committed
generate baseline
1 parent 3437398 commit 2637a9c

File tree

1 file changed

+91
-23
lines changed

1 file changed

+91
-23
lines changed

phpstan-baseline.neon

Lines changed: 91 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,148 @@
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: '#^PHPDoc tag @var with type array\{column_default\?\: string, column_name\: string, is_nullable\: string\} is not subtype of type array\{COLUMN_NAME\: string, COLUMN_DEFAULT\: string\|null, IS_NULLABLE\: string\}\.$#'
32+
identifier: varTag.type
33+
count: 1
34+
path: src/QueryReflection/PdoPgSqlQueryReflector.php
35+
36+
-
37+
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\: \-2147483648\|0\|1\|2\|3\|4\|5\|6\|536870912\|1073741824\}\>\|PDOException\|null\) of method staabm\\PHPStanDba\\QueryReflection\\BasePdoQueryReflector\:\:simulateQuery\(\)$#'
38+
identifier: method.childReturnType
39+
count: 1
40+
path: src/QueryReflection/PdoPgSqlQueryReflector.php
41+
42+
-
43+
message: '''
44+
#^Call to deprecated method resolvePreparedQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
45+
use resolvePreparedQueryStrings\(\) instead$#
46+
'''
47+
identifier: method.deprecated
3148
count: 1
3249
path: src/QueryReflection/QueryReflection.php
3350

3451
-
35-
message: "#^Casting to \\*NEVER\\* something that's already \\*NEVER\\*\\.$#"
52+
message: '#^Casting to \*NEVER\* something that''s already \*NEVER\*\.$#'
53+
identifier: cast.useless
3654
count: 1
3755
path: src/QueryReflection/QueryReflection.php
3856

3957
-
40-
message: "#^Strict comparison using \\=\\=\\= between null and null will always evaluate to true\\.$#"
58+
message: '#^Strict comparison using \=\=\= between null and null will always evaluate to true\.$#'
59+
identifier: identical.alwaysTrue
4160
count: 1
4261
path: src/QueryReflection/QueryReflection.php
4362

4463
-
45-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ConstantScalarType is error\\-prone and deprecated\\. Use Type\\:\\:isConstantScalarValue\\(\\) or Type\\:\\:getConstantScalarTypes\\(\\) or Type\\:\\:getConstantScalarValues\\(\\) instead\\.$#"
64+
message: '#^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$#'
65+
identifier: phpstanApi.instanceofType
4666
count: 1
4767
path: src/QueryReflection/QuerySimulation.php
4868

4969
-
50-
message: "#^Doing instanceof PHPStan\\\\Type\\\\IntersectionType is error\\-prone and deprecated\\.$#"
70+
message: '#^Doing instanceof PHPStan\\Type\\IntersectionType is error\-prone and deprecated\.$#'
71+
identifier: phpstanApi.instanceofType
5172
count: 1
5273
path: src/QueryReflection/QuerySimulation.php
5374

5475
-
55-
message: "#^Doing instanceof PHPStan\\\\Type\\\\ObjectType is error\\-prone and deprecated\\. Use Type\\:\\:isObject\\(\\) or Type\\:\\:getObjectClassNames\\(\\) instead\\.$#"
76+
message: '#^Doing instanceof PHPStan\\Type\\ObjectType is error\-prone and deprecated\. Use Type\:\:isObject\(\) or Type\:\:getObjectClassNames\(\) instead\.$#'
77+
identifier: phpstanApi.instanceofType
5678
count: 2
5779
path: src/QueryReflection/QuerySimulation.php
5880

5981
-
60-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantStringType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantStrings\\(\\) instead\\.$#"
82+
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantStringType is error\-prone and deprecated\. Use Type\:\:getConstantStrings\(\) instead\.$#'
83+
identifier: phpstanApi.instanceofType
6184
count: 1
6285
path: src/Rules/PdoStatementExecuteMethodRule.php
6386

6487
-
65-
message: """
66-
#^Call to deprecated method resolveQueryString\\(\\) of class staabm\\\\PHPStanDba\\\\QueryReflection\\\\QueryReflection\\:
67-
use resolveQueryStrings\\(\\) instead$#
68-
"""
88+
message: '''
89+
#^Call to deprecated method resolveQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
90+
use resolveQueryStrings\(\) instead$#
91+
'''
92+
identifier: method.deprecated
6993
count: 1
7094
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
7195

7296
-
73-
message: "#^Doing instanceof PHPStan\\\\Type\\\\Constant\\\\ConstantArrayType is error\\-prone and deprecated\\. Use Type\\:\\:getConstantArrays\\(\\) instead\\.$#"
97+
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
98+
identifier: phpstanApi.instanceofType
7499
count: 1
75100
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
76101

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

0 commit comments

Comments
 (0)