8080use PHPUnit \Metadata \InvalidAttributeException ;
8181use PHPUnit \Metadata \Metadata ;
8282use PHPUnit \Metadata \MetadataCollection ;
83- use PHPUnit \Metadata \Version \ConstraintRequirement ;
83+ use PHPUnit \Metadata \Version \Requirement ;
8484use ReflectionClass ;
8585use ReflectionMethod ;
8686
@@ -275,7 +275,7 @@ public function forClass(string $className): MetadataCollection
275275 assert ($ attributeInstance instanceof RequiresPhp);
276276
277277 $ result [] = Metadata::requiresPhpOnClass (
278- ConstraintRequirement ::from (
278+ Requirement ::from (
279279 $ attributeInstance ->versionRequirement (),
280280 ),
281281 );
@@ -289,7 +289,7 @@ public function forClass(string $className): MetadataCollection
289289 $ versionRequirement = $ attributeInstance ->versionRequirement ();
290290
291291 if ($ versionRequirement !== null ) {
292- $ versionConstraint = ConstraintRequirement ::from ($ versionRequirement );
292+ $ versionConstraint = Requirement ::from ($ versionRequirement );
293293 }
294294
295295 $ result [] = Metadata::requiresPhpExtensionOnClass (
@@ -303,7 +303,7 @@ public function forClass(string $className): MetadataCollection
303303 assert ($ attributeInstance instanceof RequiresPhpunit);
304304
305305 $ result [] = Metadata::requiresPhpunitOnClass (
306- ConstraintRequirement ::from (
306+ Requirement ::from (
307307 $ attributeInstance ->versionRequirement (),
308308 ),
309309 );
@@ -655,7 +655,7 @@ public function forMethod(string $className, string $methodName): MetadataCollec
655655 assert ($ attributeInstance instanceof RequiresPhp);
656656
657657 $ result [] = Metadata::requiresPhpOnMethod (
658- ConstraintRequirement ::from (
658+ Requirement ::from (
659659 $ attributeInstance ->versionRequirement (),
660660 ),
661661 );
@@ -669,7 +669,7 @@ public function forMethod(string $className, string $methodName): MetadataCollec
669669 $ versionRequirement = $ attributeInstance ->versionRequirement ();
670670
671671 if ($ versionRequirement !== null ) {
672- $ versionConstraint = ConstraintRequirement ::from ($ versionRequirement );
672+ $ versionConstraint = Requirement ::from ($ versionRequirement );
673673 }
674674
675675 $ result [] = Metadata::requiresPhpExtensionOnMethod (
@@ -683,7 +683,7 @@ public function forMethod(string $className, string $methodName): MetadataCollec
683683 assert ($ attributeInstance instanceof RequiresPhpunit);
684684
685685 $ result [] = Metadata::requiresPhpunitOnMethod (
686- ConstraintRequirement ::from (
686+ Requirement ::from (
687687 $ attributeInstance ->versionRequirement (),
688688 ),
689689 );
0 commit comments