@@ -124,12 +124,12 @@ private function checkOccurrencesInMethods(File $phpcsFile, int $stackPtr, array
124
124
125
125
if (strpos ($ tokens [$ paramPos ]['content ' ], '/ ' ) !== false ) {
126
126
$ phpcsFile ->addError (
127
- sprintf (
128
- self ::ERROR_MESSAGE ,
129
- $ tokens [$ paramPos ]['content ' ],
130
- ),
127
+ self ::ERROR_MESSAGE ,
131
128
$ paramPos ,
132
- self ::ERROR_CODE
129
+ self ::ERROR_CODE ,
130
+ [
131
+ $ tokens [$ paramPos ]['content ' ],
132
+ ]
133
133
);
134
134
}
135
135
}
@@ -142,12 +142,12 @@ private function checkOccurrencesInMethods(File $phpcsFile, int $stackPtr, array
142
142
$ paramPos = $ phpcsFile ->findNext (T_PARAM_NAME , $ stackPtr + 1 );
143
143
if (strpos ($ tokens [$ paramPos ]['content ' ], '/ ' ) !== false ) {
144
144
$ phpcsFile ->addError (
145
- sprintf (
146
- self ::ERROR_MESSAGE ,
147
- $ tokens [$ paramPos ]['content ' ],
148
- ),
145
+ self ::ERROR_MESSAGE ,
149
146
$ paramPos ,
150
- self ::ERROR_CODE
147
+ self ::ERROR_CODE ,
148
+ [
149
+ $ tokens [$ paramPos ]['content ' ],
150
+ ]
151
151
);
152
152
}
153
153
}
@@ -174,12 +174,12 @@ private function checkOccurrencesInProperty(File $phpcsFile, int $stackPtr, arra
174
174
175
175
if (strpos ($ tokens [$ tableNamePos ]['content ' ], '/ ' ) !== false ) {
176
176
$ phpcsFile ->addError (
177
- sprintf (
178
- self ::ERROR_MESSAGE ,
179
- $ tokens [$ tableNamePos ]['content ' ],
180
- ),
177
+ self ::ERROR_MESSAGE ,
181
178
$ tableNamePos ,
182
- self ::ERROR_CODE
179
+ self ::ERROR_CODE ,
180
+ [
181
+ $ tokens [$ tableNamePos ]['content ' ],
182
+ ]
183
183
);
184
184
}
185
185
}
@@ -213,12 +213,12 @@ private function checkOccurrencesInArray(File $phpcsFile, int $stackPtr, array $
213
213
214
214
if (strpos ($ tokens [$ tableNamePos ]['content ' ], '/ ' ) !== false ) {
215
215
$ phpcsFile ->addError (
216
- sprintf (
217
- self ::ERROR_MESSAGE ,
218
- $ tokens [$ tableNamePos ]['content ' ],
219
- ),
216
+ self ::ERROR_MESSAGE ,
220
217
$ tableNamePos ,
221
- self ::ERROR_CODE
218
+ self ::ERROR_CODE ,
219
+ [
220
+ $ tokens [$ tableNamePos ]['content ' ],
221
+ ]
222
222
);
223
223
}
224
224
}
0 commit comments