@@ -93,7 +93,7 @@ public function testInfiniteRecursionWithCallable(): void
9393 $ this ->assertNoErrors ($ errors );
9494 }
9595
96- #[RequiresPhp('>= 8.0 ' )]
96+ #[RequiresPhp('>= 8.0.0 ' )]
9797 public function testConstantArrayCallableDoesNotCauseInfiniteRecursion (): void
9898 {
9999 // Previously caused infinite recursion / OOM via ConstantArrayType::isCallable()
@@ -336,7 +336,7 @@ public function testBug11649(): void
336336 $ this ->assertNoErrors ($ errors );
337337 }
338338
339- #[RequiresPhp('>= 8.0 ' )]
339+ #[RequiresPhp('>= 8.0.0 ' )]
340340 public function testBug6872 (): void
341341 {
342342 // crash
@@ -427,7 +427,7 @@ public function testBug4702(): void
427427 $ this ->assertNoErrors ($ errors );
428428 }
429429
430- #[RequiresPhp('>= 8.1 ' )]
430+ #[RequiresPhp('>= 8.1.0 ' )]
431431 public function testBug14100 (): void
432432 {
433433 // false negative
@@ -454,7 +454,7 @@ public function testBug4715(): void
454454 $ this ->assertNoErrors ($ errors );
455455 }
456456
457- #[RequiresPhp('>= 8.2 ' )]
457+ #[RequiresPhp('>= 8.2.0 ' )]
458458 public function testBug4734 (): void
459459 {
460460 // false positive
@@ -468,7 +468,7 @@ public function testBug4734(): void
468468 $ this ->assertSame ('Access to an undefined property Bug4734\Foo::$httpMethodParameterOverride4. ' , $ errors [4 ]->getMessage ());
469469 }
470470
471- #[RequiresPhp('>= 8.1 ' )]
471+ #[RequiresPhp('>= 8.1.0 ' )]
472472 public function testBug12512 (): void
473473 {
474474 // crash
@@ -504,15 +504,15 @@ public function testBug5657(): void
504504 $ this ->assertNoErrors ($ errors );
505505 }
506506
507- #[RequiresPhp('>= 8.0 ' )]
507+ #[RequiresPhp('>= 8.0.0 ' )]
508508 public function testBug5951 (): void
509509 {
510510 // crash
511511 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-5951.php ' );
512512 $ this ->assertNoErrors ($ errors );
513513 }
514514
515- #[RequiresPhp('>= 8.1 ' )]
515+ #[RequiresPhp('>= 8.1.0 ' )]
516516 public function testEnums (): void
517517 {
518518 $ errors = $ this ->runAnalyse (__DIR__ . '/data/enums-integration.php ' );
@@ -548,7 +548,7 @@ public function testBug6466(): void
548548 $ this ->assertNoErrors ($ errors );
549549 }
550550
551- #[RequiresPhp('>= 8.1 ' )]
551+ #[RequiresPhp('>= 8.1.0 ' )]
552552 public function testBug6494 (): void
553553 {
554554 // false positive
@@ -593,7 +593,7 @@ public function testBug6501(): void
593593 $ this ->assertSame (24 , $ errors [0 ]->getLine ());
594594 }
595595
596- #[RequiresPhp('>= 8.0 ' )]
596+ #[RequiresPhp('>= 8.0.0 ' )]
597597 public function testBug6114 (): void
598598 {
599599 // false negative
@@ -655,7 +655,7 @@ public function testBug6842(): void
655655 $ this ->assertSame (54 , $ errors [1 ]->getLine ());
656656 }
657657
658- #[RequiresPhp('>= 8.0 ' )]
658+ #[RequiresPhp('>= 8.0.0 ' )]
659659 public function testBug6896 (): void
660660 {
661661 // crash
@@ -714,15 +714,15 @@ public function testBug7030(): void
714714 null, $shippingLongitude = null, $shippingNeutralShipping = null)): Unexpected token "\n * ", expected type at offset 193 on line 6 ' , $ errors [0 ]->getMessage ());
715715 }
716716
717- #[RequiresPhp('>= 8.1 ' )]
717+ #[RequiresPhp('>= 8.1.0 ' )]
718718 public function testBug7012 (): void
719719 {
720720 // false positive
721721 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-7012.php ' );
722722 $ this ->assertNoErrors ($ errors );
723723 }
724724
725- #[RequiresPhp('>= 8.1 ' )]
725+ #[RequiresPhp('>= 8.1.0 ' )]
726726 public function testBug6192 (): void
727727 {
728728 // false positive
@@ -737,7 +737,7 @@ public function testBug7068(): void
737737 $ this ->assertNoErrors ($ errors );
738738 }
739739
740- #[RequiresPhp('>= 8.0 ' )]
740+ #[RequiresPhp('>= 8.0.0 ' )]
741741 public function testDiscussion6993 (): void
742742 {
743743 $ errors = $ this ->runAnalyse (__DIR__ . '/nsrt/bug-6993.php ' );
@@ -752,15 +752,15 @@ public function testBug7077(): void
752752 $ this ->assertNoErrors ($ errors );
753753 }
754754
755- #[RequiresPhp('>= 8.0 ' )]
755+ #[RequiresPhp('>= 8.0.0 ' )]
756756 public function testBug7078 (): void
757757 {
758758 // false positive
759759 $ errors = $ this ->runAnalyse (__DIR__ . '/nsrt/bug-7078.php ' );
760760 $ this ->assertNoErrors ($ errors );
761761 }
762762
763- #[RequiresPhp('>= 8.0 ' )]
763+ #[RequiresPhp('>= 8.0.0 ' )]
764764 public function testBug7116 (): void
765765 {
766766 // false positive
@@ -775,7 +775,7 @@ public function testBug3853(): void
775775 $ this ->assertNoErrors ($ errors );
776776 }
777777
778- #[RequiresPhp('>= 8.1 ' )]
778+ #[RequiresPhp('>= 8.1.0 ' )]
779779 public function testBug7135 (): void
780780 {
781781 // crash
@@ -784,7 +784,7 @@ public function testBug7135(): void
784784 $ this ->assertSame ('Cannot create callable from the new operator. ' , $ errors [0 ]->getMessage ());
785785 }
786786
787- #[RequiresPhp('>= 8.0 ' )]
787+ #[RequiresPhp('>= 8.0.0 ' )]
788788 public function testDiscussion7124 (): void
789789 {
790790 $ errors = $ this ->runAnalyse (__DIR__ . '/data/discussion-7124.php ' );
@@ -837,7 +837,7 @@ public function testBug7094(): void
837837 $ this ->assertSame (29 , $ errors [5 ]->getLine ());
838838 }
839839
840- #[RequiresPhp('>= 8.0 ' )]
840+ #[RequiresPhp('>= 8.0.0 ' )]
841841 public function testOffsetAccess (): void
842842 {
843843 $ errors = $ this ->runAnalyse (__DIR__ . '/nsrt/offset-access.php ' );
@@ -986,15 +986,15 @@ public function testBug7963Two(): void
986986 $ this ->assertNoErrors ($ errors );
987987 }
988988
989- #[RequiresPhp('>= 8.1 ' )]
989+ #[RequiresPhp('>= 8.1.0 ' )]
990990 public function testBug8078 (): void
991991 {
992992 // crash
993993 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-8078.php ' );
994994 $ this ->assertNoErrors ($ errors );
995995 }
996996
997- #[RequiresPhp('>= 8.1 ' )]
997+ #[RequiresPhp('>= 8.1.0 ' )]
998998 public function testBug8072 (): void
999999 {
10001000 // crash
@@ -1052,7 +1052,7 @@ public function testBug8376(): void
10521052 $ this ->assertNoErrors ($ errors );
10531053 }
10541054
1055- #[RequiresPhp('>= 8.2 ' )]
1055+ #[RequiresPhp('>= 8.2.0 ' )]
10561056 public function testAssertDocblock (): void
10571057 {
10581058 $ errors = $ this ->runAnalyse (__DIR__ . '/nsrt/assert-docblock.php ' );
@@ -1067,7 +1067,7 @@ public function testAssertDocblock(): void
10671067 $ this ->assertSame (238 , $ errors [3 ]->getLine ());
10681068 }
10691069
1070- #[RequiresPhp('>= 8.0 ' )]
1070+ #[RequiresPhp('>= 8.0.0 ' )]
10711071 public function testBug12934 (): void
10721072 {
10731073 // crash
@@ -1081,15 +1081,15 @@ public function testPr2030(): void
10811081 $ this ->assertNoErrors ($ errors );
10821082 }
10831083
1084- #[RequiresPhp('>= 8.0 ' )]
1084+ #[RequiresPhp('>= 8.0.0 ' )]
10851085 public function testBug8537 (): void
10861086 {
10871087 // crash
10881088 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-8537.php ' );
10891089 $ this ->assertNoErrors ($ errors );
10901090 }
10911091
1092- #[RequiresPhp('>= 8.1 ' )]
1092+ #[RequiresPhp('>= 8.1.0 ' )]
10931093 public function testBug7927 (): void
10941094 {
10951095 // crash
@@ -1125,7 +1125,7 @@ public function testSkipCheckNoGenericClasses(): void
11251125 $ this ->assertSame ('Method SkipCheckNoGenericClasses\Foo::doFoo() has parameter $i with generic class LimitIterator but does not specify its types: TKey, TValue, TIterator ' , $ errors [0 ]->getMessage ());
11261126 }
11271127
1128- #[RequiresPhp('>= 8.1 ' )]
1128+ #[RequiresPhp('>= 8.1.0 ' )]
11291129 public function testBug8983 (): void
11301130 {
11311131 // crash
@@ -1190,7 +1190,7 @@ public function testBug9039(): void
11901190 $ this ->assertSame ('Constant Bug9039\Test::RULES is unused. ' , $ errors [0 ]->getMessage ());
11911191 }
11921192
1193- #[RequiresPhp('>= 8.0 ' )]
1193+ #[RequiresPhp('>= 8.0.0 ' )]
11941194 public function testDiscussion9053 (): void
11951195 {
11961196 $ errors = $ this ->runAnalyse (__DIR__ . '/data/discussion-9053.php ' );
@@ -1204,7 +1204,7 @@ public function testBug13492(): void
12041204 $ this ->assertNoErrors ($ errors );
12051205 }
12061206
1207- #[RequiresPhp('>= 8.0 ' )]
1207+ #[RequiresPhp('>= 8.0.0 ' )]
12081208 public function testBug9428 (): void
12091209 {
12101210 // false positive
@@ -1233,7 +1233,7 @@ public function testIgnoreIdentifiers(): void
12331233 $ this ->assertSame (16 , $ errors [4 ]->getLine ());
12341234 }
12351235
1236- #[RequiresPhp('>= 8.1 ' )]
1236+ #[RequiresPhp('>= 8.1.0 ' )]
12371237 public function testBug9994 (): void
12381238 {
12391239 // crash
@@ -1243,7 +1243,7 @@ public function testBug9994(): void
12431243 $ this ->assertSame ('Parameter #2 $callback of function array_filter expects (callable(1|2|3|null): bool)|null, false given. ' , $ errors [1 ]->getMessage ());
12441244 }
12451245
1246- #[RequiresPhp('>= 8.1 ' )]
1246+ #[RequiresPhp('>= 8.1.0 ' )]
12471247 public function testBug13987 (): void
12481248 {
12491249 // false positive
@@ -1258,7 +1258,7 @@ public function testBug13982(): void
12581258 $ this ->assertNoErrors ($ errors );
12591259 }
12601260
1261- #[RequiresPhp('>= 8.1 ' )]
1261+ #[RequiresPhp('>= 8.1.0 ' )]
12621262 public function testBug10049 (): void
12631263 {
12641264 // crash
@@ -1274,15 +1274,15 @@ public function testBug10049(): void
12741274 $ this ->assertSame (59 , $ errors [3 ]->getLine ());
12751275 }
12761276
1277- #[RequiresPhp('>= 8.0 ' )]
1277+ #[RequiresPhp('>= 8.0.0 ' )]
12781278 public function testBug10086 (): void
12791279 {
12801280 // crash
12811281 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-10086.php ' );
12821282 $ this ->assertNoErrors ($ errors );
12831283 }
12841284
1285- #[RequiresPhp('>= 8.2 ' )]
1285+ #[RequiresPhp('>= 8.2.0 ' )]
12861286 public function testBug10302 (): void
12871287 {
12881288 // false positive
@@ -1308,15 +1308,15 @@ public function testBug10509(): void
13081308 $ this ->assertSame ('PHPDoc tag @return contains unresolvable type. ' , $ errors [1 ]->getMessage ());
13091309 }
13101310
1311- #[RequiresPhp('>= 8.1 ' )]
1311+ #[RequiresPhp('>= 8.1.0 ' )]
13121312 public function testBug10847 (): void
13131313 {
13141314 // false positive
13151315 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-10847.php ' );
13161316 $ this ->assertNoErrors ($ errors );
13171317 }
13181318
1319- #[RequiresPhp('>= 8.1 ' )]
1319+ #[RequiresPhp('>= 8.1.0 ' )]
13201320 public function testBug10985 (): void
13211321 {
13221322 // crash
@@ -1338,7 +1338,7 @@ public function testBug10867(): void
13381338 $ this ->assertNoErrors ($ errors );
13391339 }
13401340
1341- #[RequiresPhp('>= 8.0 ' )]
1341+ #[RequiresPhp('>= 8.0.0 ' )]
13421342 public function testBug11147 (): void
13431343 {
13441344 // crash
@@ -1354,15 +1354,15 @@ public function testBug11292(): void
13541354 $ this ->assertNoErrors ($ errors );
13551355 }
13561356
1357- #[RequiresPhp('>= 8.0 ' )]
1357+ #[RequiresPhp('>= 8.0.0 ' )]
13581358 public function testBug5597 (): void
13591359 {
13601360 // false positive
13611361 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-5597.php ' );
13621362 $ this ->assertNoErrors ($ errors );
13631363 }
13641364
1365- #[RequiresPhp('>= 8.0 ' )]
1365+ #[RequiresPhp('>= 8.0.0 ' )]
13661366 public function testBug11511 (): void
13671367 {
13681368 // false positive
@@ -1392,15 +1392,15 @@ public function testBug11640(): void
13921392 $ this ->assertNoErrors ($ errors );
13931393 }
13941394
1395- #[RequiresPhp('>= 8.0 ' )]
1395+ #[RequiresPhp('>= 8.0.0 ' )]
13961396 public function testBug11709 (): void
13971397 {
13981398 // false positive
13991399 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-11709.php ' );
14001400 $ this ->assertNoErrors ($ errors );
14011401 }
14021402
1403- #[RequiresPhp('>= 8.3 ' )]
1403+ #[RequiresPhp('>= 8.3.0 ' )]
14041404 public function testBug12549 (): void
14051405 {
14061406 // crash
@@ -1415,7 +1415,7 @@ public function testBug12627(): void
14151415 $ this ->assertNoErrors ($ errors );
14161416 }
14171417
1418- #[RequiresPhp('>= 8.3 ' )]
1418+ #[RequiresPhp('>= 8.3.0 ' )]
14191419 public function testBug12949 (): void
14201420 {
14211421 // crash
@@ -1462,7 +1462,7 @@ public function testBug13714(): void
14621462 $ this ->assertSame ('Function Bug13714\array_find invoked with 2 parameters, 0 required. ' , $ errors [6 ]->getMessage ());
14631463 }
14641464
1465- #[RequiresPhp('>= 8.4 ' )]
1465+ #[RequiresPhp('>= 8.4.0 ' )]
14661466 public function testBug13980 (): void
14671467 {
14681468 // false positive
@@ -1484,7 +1484,7 @@ public function testBug13945Two(): void
14841484 $ this ->assertNoErrors ($ errors );
14851485 }
14861486
1487- #[RequiresPhp('>= 8.1 ' )]
1487+ #[RequiresPhp('>= 8.1.0 ' )]
14881488 public function testBug12246 (): void
14891489 {
14901490 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-12246.php ' );
0 commit comments