|
1 | 1 | parameters: |
2 | 2 | ignoreErrors: |
3 | 3 | - |
4 | | - message: "#^Foreach overwrites \\$i with its key variable\\.$#" |
| 4 | + message: '#^Foreach overwrites \$i with its key variable\.$#' |
| 5 | + identifier: foreach.keyOverwrite |
5 | 6 | count: 1 |
6 | 7 | path: examples/read.php |
7 | 8 |
|
8 | 9 | - |
9 | | - message: "#^Cannot cast mixed to int\\.$#" |
| 10 | + message: '#^Cannot cast mixed to int\.$#' |
| 11 | + identifier: cast.int |
10 | 12 | count: 1 |
11 | 13 | path: src/ShapeFile.php |
12 | 14 |
|
13 | 15 | - |
14 | | - message: "#^Casting to int something that's already int\\.$#" |
| 16 | + message: '#^Casting to int something that''s already int\.$#' |
| 17 | + identifier: cast.useless |
15 | 18 | count: 1 |
16 | 19 | path: src/ShapeFile.php |
17 | 20 |
|
18 | 21 | - |
19 | | - message: "#^Only booleans are allowed in a negated boolean, resource\\|false given\\.$#" |
| 22 | + message: '#^Loose comparison via "\!\=" is not allowed\.$#' |
| 23 | + identifier: notEqual.notAllowed |
| 24 | + count: 3 |
| 25 | + path: src/ShapeFile.php |
| 26 | + |
| 27 | + - |
| 28 | + message: '#^Loose comparison via "\=\=" is not allowed\.$#' |
| 29 | + identifier: equal.notAllowed |
| 30 | + count: 1 |
| 31 | + path: src/ShapeFile.php |
| 32 | + |
| 33 | + - |
| 34 | + message: '#^Only booleans are allowed in a negated boolean, resource\|false given\.$#' |
| 35 | + identifier: booleanNot.exprNotBoolean |
20 | 36 | count: 1 |
21 | 37 | path: src/ShapeFile.php |
22 | 38 |
|
23 | 39 | - |
24 | | - message: "#^Only numeric types are allowed in \\+, int\\|null given on the left side\\.$#" |
| 40 | + message: '#^Only numeric types are allowed in \+, int\|null given on the left side\.$#' |
| 41 | + identifier: plus.leftNonNumeric |
25 | 42 | count: 2 |
26 | 43 | path: src/ShapeFile.php |
27 | 44 |
|
28 | 45 | - |
29 | | - message: "#^Only numeric types are allowed in \\+, int\\|null given on the right side\\.$#" |
| 46 | + message: '#^Only numeric types are allowed in \+, int\|null given on the right side\.$#' |
| 47 | + identifier: plus.rightNonNumeric |
30 | 48 | count: 1 |
31 | 49 | path: src/ShapeFile.php |
32 | 50 |
|
33 | 51 | - |
34 | | - message: "#^Parameter \\#1 \\$stream of function feof expects resource, resource\\|false given\\.$#" |
| 52 | + message: '#^Parameter \#1 \$stream of function feof expects resource, resource\|false given\.$#' |
| 53 | + identifier: argument.type |
35 | 54 | count: 1 |
36 | 55 | path: src/ShapeFile.php |
37 | 56 |
|
38 | 57 | - |
39 | | - message: "#^Parameter \\#1 \\$string of function strtoupper expects string, mixed given\\.$#" |
| 58 | + message: '#^Parameter \#1 \$string of function strtoupper expects string, mixed given\.$#' |
| 59 | + identifier: argument.type |
40 | 60 | count: 1 |
41 | 61 | path: src/ShapeFile.php |
42 | 62 |
|
43 | 63 | - |
44 | | - message: "#^Parameter \\#1 \\$string of function substr expects string, string\\|false given\\.$#" |
| 64 | + message: '#^Parameter \#1 \$string of function substr expects string, string\|false given\.$#' |
| 65 | + identifier: argument.type |
45 | 66 | count: 6 |
46 | 67 | path: src/ShapeFile.php |
47 | 68 |
|
48 | 69 | - |
49 | | - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\ShapeFile\\\\Util\\:\\:packDouble\\(\\) expects float, mixed given\\.$#" |
| 70 | + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\ShapeFile\\Util\:\:packDouble\(\) expects float, mixed given\.$#' |
| 71 | + identifier: argument.type |
50 | 72 | count: 1 |
51 | 73 | path: src/ShapeFile.php |
52 | 74 |
|
53 | 75 | - |
54 | | - message: "#^Parameter \\#2 \\$length of function fread expects int\\<1, max\\>, int\\<0, max\\> given\\.$#" |
| 76 | + message: '#^Parameter \#2 \$length of function fread expects int\<1, max\>, int\<0, max\> given\.$#' |
| 77 | + identifier: argument.type |
55 | 78 | count: 1 |
56 | 79 | path: src/ShapeFile.php |
57 | 80 |
|
58 | 81 | - |
59 | | - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" |
| 82 | + message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#' |
| 83 | + identifier: foreach.nonIterable |
60 | 84 | count: 4 |
61 | 85 | path: src/ShapeRecord.php |
62 | 86 |
|
63 | 87 | - |
64 | | - message: "#^Cannot access an offset on mixed\\.$#" |
| 88 | + message: '#^Binary operation "\*" between mixed and 2 results in an error\.$#' |
| 89 | + identifier: binaryOp.invalid |
| 90 | + count: 1 |
| 91 | + path: src/ShapeRecord.php |
| 92 | + |
| 93 | + - |
| 94 | + message: '#^Binary operation "\+" between 1 and mixed results in an error\.$#' |
| 95 | + identifier: binaryOp.invalid |
| 96 | + count: 2 |
| 97 | + path: src/ShapeRecord.php |
| 98 | + |
| 99 | + - |
| 100 | + message: '#^Cannot access an offset on mixed\.$#' |
| 101 | + identifier: offsetAccess.nonOffsetAccessible |
65 | 102 | count: 4 |
66 | 103 | path: src/ShapeRecord.php |
67 | 104 |
|
68 | 105 | - |
69 | | - message: "#^Cannot access offset 'points' on mixed\\.$#" |
70 | | - count: 15 |
| 106 | + message: '#^Cannot access offset ''points'' on mixed\.$#' |
| 107 | + identifier: offsetAccess.nonOffsetAccessible |
| 108 | + count: 11 |
71 | 109 | path: src/ShapeRecord.php |
72 | 110 |
|
73 | 111 | - |
74 | | - message: "#^Cannot access offset int on mixed\\.$#" |
75 | | - count: 12 |
| 112 | + message: '#^Cannot access offset int on mixed\.$#' |
| 113 | + identifier: offsetAccess.nonOffsetAccessible |
| 114 | + count: 8 |
76 | 115 | path: src/ShapeRecord.php |
77 | 116 |
|
78 | 117 | - |
79 | | - message: "#^Cannot access offset int\\<\\-1, max\\> on mixed\\.$#" |
| 118 | + message: '#^Cannot access offset int\<\-1, max\> on mixed\.$#' |
| 119 | + identifier: offsetAccess.nonOffsetAccessible |
80 | 120 | count: 2 |
81 | 121 | path: src/ShapeRecord.php |
82 | 122 |
|
83 | 123 | - |
84 | | - message: "#^Cannot access offset int\\<0, max\\> on mixed\\.$#" |
| 124 | + message: '#^Cannot access offset int\<0, max\> on mixed\.$#' |
| 125 | + identifier: offsetAccess.nonOffsetAccessible |
85 | 126 | count: 12 |
86 | 127 | path: src/ShapeRecord.php |
87 | 128 |
|
88 | 129 | - |
89 | | - message: "#^Cannot access offset int\\<1, max\\> on mixed\\.$#" |
| 130 | + message: '#^Cannot access offset int\<1, max\> on mixed\.$#' |
| 131 | + identifier: offsetAccess.nonOffsetAccessible |
90 | 132 | count: 2 |
91 | 133 | path: src/ShapeRecord.php |
92 | 134 |
|
93 | 135 | - |
94 | | - message: "#^Cannot access offset string on mixed\\.$#" |
| 136 | + message: '#^Cannot access offset string on mixed\.$#' |
| 137 | + identifier: offsetAccess.nonOffsetAccessible |
95 | 138 | count: 4 |
96 | 139 | path: src/ShapeRecord.php |
97 | 140 |
|
98 | 141 | - |
99 | | - message: "#^Cannot call method hasMeasure\\(\\) on PhpMyAdmin\\\\ShapeFile\\\\ShapeFile\\|null\\.$#" |
| 142 | + message: '#^Cannot call method hasMeasure\(\) on PhpMyAdmin\\ShapeFile\\ShapeFile\|null\.$#' |
| 143 | + identifier: method.nonObject |
100 | 144 | count: 2 |
101 | 145 | path: src/ShapeRecord.php |
102 | 146 |
|
103 | 147 | - |
104 | | - message: "#^Cannot call method readSHP\\(\\) on PhpMyAdmin\\\\ShapeFile\\\\ShapeFile\\|null\\.$#" |
| 148 | + message: '#^Cannot call method readSHP\(\) on PhpMyAdmin\\ShapeFile\\ShapeFile\|null\.$#' |
| 149 | + identifier: method.nonObject |
105 | 150 | count: 1 |
106 | 151 | path: src/ShapeRecord.php |
107 | 152 |
|
108 | 153 | - |
109 | | - message: "#^Cannot cast mixed to int\\.$#" |
| 154 | + message: '#^Cannot cast mixed to int\.$#' |
| 155 | + identifier: cast.int |
| 156 | + count: 2 |
| 157 | + path: src/ShapeRecord.php |
| 158 | + |
| 159 | + - |
| 160 | + message: '#^Cannot use \-\- on mixed\.$#' |
| 161 | + identifier: preDec.type |
110 | 162 | count: 2 |
111 | 163 | path: src/ShapeRecord.php |
112 | 164 |
|
113 | 165 | - |
114 | | - message: "#^Parameter \\#1 \\$data of method PhpMyAdmin\\\\ShapeFile\\\\ShapeRecord\\:\\:savePoint\\(\\) expects array, mixed given\\.$#" |
| 166 | + message: '#^Parameter \#1 \$data of method PhpMyAdmin\\ShapeFile\\ShapeRecord\:\:savePoint\(\) expects array\<mixed\>, mixed given\.$#' |
| 167 | + identifier: argument.type |
115 | 168 | count: 2 |
116 | 169 | path: src/ShapeRecord.php |
117 | 170 |
|
118 | 171 | - |
119 | | - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" |
| 172 | + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' |
| 173 | + identifier: argument.type |
120 | 174 | count: 16 |
121 | 175 | path: src/ShapeRecord.php |
122 | 176 |
|
123 | 177 | - |
124 | | - message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\ShapeFile\\\\Util\\:\\:packDouble\\(\\) expects float, mixed given\\.$#" |
| 178 | + message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\ShapeFile\\Util\:\:packDouble\(\) expects float, mixed given\.$#' |
| 179 | + identifier: argument.type |
125 | 180 | count: 11 |
126 | 181 | path: src/ShapeRecord.php |
127 | 182 |
|
128 | 183 | - |
129 | | - message: "#^Property PhpMyAdmin\\\\ShapeFile\\\\ShapeRecord\\:\\:\\$size \\(int\\) does not accept \\(float\\|int\\)\\.$#" |
| 184 | + message: '#^Possibly invalid array key type mixed\.$#' |
| 185 | + identifier: offsetAccess.invalidOffset |
| 186 | + count: 2 |
| 187 | + path: src/ShapeRecord.php |
| 188 | + |
| 189 | + - |
| 190 | + message: '#^Property PhpMyAdmin\\ShapeFile\\ShapeRecord\:\:\$size \(int\) does not accept \(float\|int\)\.$#' |
| 191 | + identifier: assign.propertyType |
130 | 192 | count: 1 |
131 | 193 | path: src/ShapeRecord.php |
132 | 194 |
|
133 | 195 | - |
134 | | - message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, mixed given\\.$#" |
| 196 | + message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#' |
| 197 | + identifier: argument.type |
135 | 198 | count: 1 |
136 | 199 | path: tests/ShapeFileTest.php |
0 commit comments