@@ -251,6 +251,22 @@ public function testRule(): void
251
251
'Binary operation "+" between int and array{} results in an error. ' ,
252
252
259 ,
253
253
],
254
+ [
255
+ 'Binary operation "%" between array and 3 results in an error. ' ,
256
+ 267 ,
257
+ ],
258
+ [
259
+ 'Binary operation "%" between 3 and array results in an error. ' ,
260
+ 268 ,
261
+ ],
262
+ [
263
+ 'Binary operation "%" between object and 3 results in an error. ' ,
264
+ 270 ,
265
+ ],
266
+ [
267
+ 'Binary operation "%" between 3 and object results in an error. ' ,
268
+ 271 ,
269
+ ],
254
270
]);
255
271
}
256
272
@@ -313,7 +329,10 @@ public function testBinaryMixed(): void
313
329
'Binary operation "/" between T and 2 results in an error. ' ,
314
330
17 ,
315
331
],
316
- // % is not handled yet
332
+ [
333
+ 'Binary operation "%" between T and 2 results in an error. ' ,
334
+ 18 ,
335
+ ],
317
336
[
318
337
'Binary operation "+" between T and 2 results in an error. ' ,
319
338
19 ,
@@ -358,7 +377,10 @@ public function testBinaryMixed(): void
358
377
'Binary operation "/=" between 5 and T results in an error. ' ,
359
378
38 ,
360
379
],
361
- // %= is not handled yet
380
+ [
381
+ 'Binary operation "%=" between 5 and T results in an error. ' ,
382
+ 41 ,
383
+ ],
362
384
[
363
385
'Binary operation "&=" between 5 and T results in an error. ' ,
364
386
44 ,
@@ -399,6 +421,10 @@ public function testBinaryMixed(): void
399
421
'Binary operation "/" between mixed and 2 results in an error. ' ,
400
422
67 ,
401
423
],
424
+ [
425
+ 'Binary operation "%" between mixed and 2 results in an error. ' ,
426
+ 68 ,
427
+ ],
402
428
[
403
429
'Binary operation "+" between mixed and 2 results in an error. ' ,
404
430
69 ,
@@ -443,6 +469,10 @@ public function testBinaryMixed(): void
443
469
'Binary operation "/=" between 5 and mixed results in an error. ' ,
444
470
88 ,
445
471
],
472
+ [
473
+ 'Binary operation "%=" between 5 and mixed results in an error. ' ,
474
+ 91 ,
475
+ ],
446
476
[
447
477
'Binary operation "&=" between 5 and mixed results in an error. ' ,
448
478
94 ,
@@ -483,6 +513,10 @@ public function testBinaryMixed(): void
483
513
'Binary operation "/" between mixed and 2 results in an error. ' ,
484
514
117 ,
485
515
],
516
+ [
517
+ 'Binary operation "%" between mixed and 2 results in an error. ' ,
518
+ 118 ,
519
+ ],
486
520
[
487
521
'Binary operation "+" between mixed and 2 results in an error. ' ,
488
522
119 ,
@@ -527,6 +561,10 @@ public function testBinaryMixed(): void
527
561
'Binary operation "/=" between 5 and mixed results in an error. ' ,
528
562
138 ,
529
563
],
564
+ [
565
+ 'Binary operation "%=" between 5 and mixed results in an error. ' ,
566
+ 141 ,
567
+ ],
530
568
[
531
569
'Binary operation "&=" between 5 and mixed results in an error. ' ,
532
570
144 ,
0 commit comments