-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
phpstan-baseline.neon
100 lines (86 loc) · 3.71 KB
/
phpstan-baseline.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
parameters:
ignoreErrors:
-
message: '#^Unresolvable Query\: Cannot resolve query with variable type\: non\-empty\-string\.$#'
identifier: dba.unresolvableQuery
count: 2
path: src/Analyzer/QueryPlanAnalyzerMysql.php
-
message: '''
#^Call to deprecated method resolveQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
use resolveQueryStrings\(\) instead$#
'''
identifier: method.deprecated
count: 1
path: src/Extensions/DeployerRunMysqlQueryDynamicReturnTypeExtension.php
-
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 2
path: src/Extensions/DibiConnectionFetchDynamicReturnTypeExtension.php
-
message: '#^Strict comparison using \=\=\= between ''dibi'' and ''dibi'' will always evaluate to true\.$#'
identifier: identical.alwaysTrue
count: 1
path: src/QueryReflection/DbaApi.php
-
message: '''
#^Call to deprecated method resolvePreparedQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
use resolvePreparedQueryStrings\(\) instead$#
'''
identifier: method.deprecated
count: 1
path: src/QueryReflection/QueryReflection.php
-
message: '#^Casting to \*NEVER\* something that''s already \*NEVER\*\.$#'
identifier: cast.useless
count: 1
path: src/QueryReflection/QueryReflection.php
-
message: '#^Strict comparison using \=\=\= between null and null will always evaluate to true\.$#'
identifier: identical.alwaysTrue
count: 1
path: src/QueryReflection/QueryReflection.php
-
message: '#^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/QueryReflection/QuerySimulation.php
-
message: '#^Doing instanceof PHPStan\\Type\\IntersectionType is error\-prone and deprecated\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/QueryReflection/QuerySimulation.php
-
message: '#^Doing instanceof PHPStan\\Type\\ObjectType is error\-prone and deprecated\. Use Type\:\:isObject\(\) or Type\:\:getObjectClassNames\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 2
path: src/QueryReflection/QuerySimulation.php
-
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantStringType is error\-prone and deprecated\. Use Type\:\:getConstantStrings\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/Rules/PdoStatementExecuteMethodRule.php
-
message: '''
#^Call to deprecated method resolveQueryString\(\) of class staabm\\PHPStanDba\\QueryReflection\\QueryReflection\:
use resolveQueryStrings\(\) instead$#
'''
identifier: method.deprecated
count: 1
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
-
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
-
message: '#^Parameter \#3 \$joinCondition of class staabm\\PHPStanDba\\SchemaReflection\\Join constructor expects SqlFtw\\Sql\\Expression\\RootNode, mixed given\.$#'
identifier: argument.type
count: 1
path: src/SqlAst/ParserInference.php
-
message: '#^Only booleans are allowed in an if condition, int given\.$#'
identifier: if.condNotBoolean
count: 1
path: src/TypeMapping/MysqliTypeMapper.php