|
1 | 1 | parameters:
|
2 | 2 | ignoreErrors:
|
3 | 3 | -
|
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 |
5 | 6 | count: 2
|
6 | 7 | path: src/Analyzer/QueryPlanAnalyzerMysql.php
|
7 | 8 |
|
8 | 9 | -
|
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 |
13 | 15 | count: 1
|
14 | 16 | path: src/Extensions/DeployerRunMysqlQueryDynamicReturnTypeExtension.php
|
15 | 17 |
|
16 | 18 | -
|
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 |
18 | 21 | count: 2
|
19 | 22 | path: src/Extensions/DibiConnectionFetchDynamicReturnTypeExtension.php
|
20 | 23 |
|
21 | 24 | -
|
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 |
23 | 27 | count: 1
|
24 | 28 | path: src/QueryReflection/DbaApi.php
|
25 | 29 |
|
26 | 30 | -
|
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 |
31 | 42 | count: 1
|
32 | 43 | path: src/QueryReflection/QueryReflection.php
|
33 | 44 |
|
34 | 45 | -
|
35 |
| - message: "#^Casting to \\*NEVER\\* something that's already \\*NEVER\\*\\.$#" |
| 46 | + message: '#^Casting to \*NEVER\* something that''s already \*NEVER\*\.$#' |
| 47 | + identifier: cast.useless |
36 | 48 | count: 1
|
37 | 49 | path: src/QueryReflection/QueryReflection.php
|
38 | 50 |
|
39 | 51 | -
|
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 |
41 | 54 | count: 1
|
42 | 55 | path: src/QueryReflection/QueryReflection.php
|
43 | 56 |
|
44 | 57 | -
|
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 |
46 | 60 | count: 1
|
47 | 61 | path: src/QueryReflection/QuerySimulation.php
|
48 | 62 |
|
49 | 63 | -
|
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 |
51 | 66 | count: 1
|
52 | 67 | path: src/QueryReflection/QuerySimulation.php
|
53 | 68 |
|
54 | 69 | -
|
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 |
56 | 72 | count: 2
|
57 | 73 | path: src/QueryReflection/QuerySimulation.php
|
58 | 74 |
|
59 | 75 | -
|
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 |
61 | 78 | count: 1
|
62 | 79 | path: src/Rules/PdoStatementExecuteMethodRule.php
|
63 | 80 |
|
64 | 81 | -
|
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 |
69 | 87 | count: 1
|
70 | 88 | path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
|
71 | 89 |
|
72 | 90 | -
|
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 |
74 | 93 | count: 1
|
75 | 94 | path: src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php
|
76 | 95 |
|
77 | 96 | -
|
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 |
79 | 141 | count: 1
|
80 | 142 | path: src/TypeMapping/MysqliTypeMapper.php
|
0 commit comments