@@ -358,6 +358,15 @@ public function dataReportAlwaysTrueInLastCondition(): iterable
358
358
'Match arm is unreachable because previous comparison is always true. ' ,
359
359
24 ,
360
360
],
361
+ [
362
+ 'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
363
+ 49 ,
364
+ 'Remove remaining cases below this one and this error will disappear too. ' ,
365
+ ],
366
+ [
367
+ 'Match arm is unreachable because previous comparison is always true. ' ,
368
+ 50 ,
369
+ ],
361
370
]];
362
371
yield [true , false , [
363
372
[
@@ -372,13 +381,30 @@ public function dataReportAlwaysTrueInLastCondition(): iterable
372
381
'Match arm is unreachable because previous comparison is always true. ' ,
373
382
24 ,
374
383
],
384
+ [
385
+ 'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
386
+ 45 ,
387
+ ],
388
+ [
389
+ 'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
390
+ 49 ,
391
+ ],
392
+ [
393
+ 'Match arm is unreachable because previous comparison is always true. ' ,
394
+ 50 ,
395
+ ],
375
396
]];
376
397
yield [false , true , [
377
398
[
378
399
'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
379
400
23 ,
380
401
'Remove remaining cases below this one and this error will disappear too. ' ,
381
402
],
403
+ [
404
+ 'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
405
+ 49 ,
406
+ 'Remove remaining cases below this one and this error will disappear too. ' ,
407
+ ],
382
408
]];
383
409
yield [true , true , [
384
410
[
@@ -389,6 +415,14 @@ public function dataReportAlwaysTrueInLastCondition(): iterable
389
415
'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
390
416
23 ,
391
417
],
418
+ [
419
+ 'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
420
+ 45 ,
421
+ ],
422
+ [
423
+ 'Match arm comparison between $this(MatchAlwaysTrueLastArm\Foo)&MatchAlwaysTrueLastArm\Foo::BAR and MatchAlwaysTrueLastArm\Foo::BAR is always true. ' ,
424
+ 49 ,
425
+ ],
392
426
]];
393
427
}
394
428
0 commit comments