9191use PHPUnit \Metadata \InvalidAttributeException ;
9292use PHPUnit \Metadata \Metadata ;
9393use PHPUnit \Metadata \MetadataCollection ;
94- use PHPUnit \Metadata \Version \ConstraintRequirement ;
94+ use PHPUnit \Metadata \Version \Requirement ;
9595use ReflectionClass ;
9696use ReflectionMethod ;
9797
@@ -349,7 +349,7 @@ public function forClass(string $className): MetadataCollection
349349 assert ($ attributeInstance instanceof RequiresPhp);
350350
351351 $ result [] = Metadata::requiresPhpOnClass (
352- ConstraintRequirement ::from (
352+ Requirement ::from (
353353 $ attributeInstance ->versionRequirement (),
354354 ),
355355 );
@@ -363,7 +363,7 @@ public function forClass(string $className): MetadataCollection
363363 $ versionRequirement = $ attributeInstance ->versionRequirement ();
364364
365365 if ($ versionRequirement !== null ) {
366- $ versionConstraint = ConstraintRequirement ::from ($ versionRequirement );
366+ $ versionConstraint = Requirement ::from ($ versionRequirement );
367367 }
368368
369369 $ result [] = Metadata::requiresPhpExtensionOnClass (
@@ -377,7 +377,7 @@ public function forClass(string $className): MetadataCollection
377377 assert ($ attributeInstance instanceof RequiresPhpunit);
378378
379379 $ result [] = Metadata::requiresPhpunitOnClass (
380- ConstraintRequirement ::from (
380+ Requirement ::from (
381381 $ attributeInstance ->versionRequirement (),
382382 ),
383383 );
@@ -765,7 +765,7 @@ public function forMethod(string $className, string $methodName): MetadataCollec
765765 assert ($ attributeInstance instanceof RequiresPhp);
766766
767767 $ result [] = Metadata::requiresPhpOnMethod (
768- ConstraintRequirement ::from (
768+ Requirement ::from (
769769 $ attributeInstance ->versionRequirement (),
770770 ),
771771 );
@@ -779,7 +779,7 @@ public function forMethod(string $className, string $methodName): MetadataCollec
779779 $ versionRequirement = $ attributeInstance ->versionRequirement ();
780780
781781 if ($ versionRequirement !== null ) {
782- $ versionConstraint = ConstraintRequirement ::from ($ versionRequirement );
782+ $ versionConstraint = Requirement ::from ($ versionRequirement );
783783 }
784784
785785 $ result [] = Metadata::requiresPhpExtensionOnMethod (
@@ -793,7 +793,7 @@ public function forMethod(string $className, string $methodName): MetadataCollec
793793 assert ($ attributeInstance instanceof RequiresPhpunit);
794794
795795 $ result [] = Metadata::requiresPhpunitOnMethod (
796- ConstraintRequirement ::from (
796+ Requirement ::from (
797797 $ attributeInstance ->versionRequirement (),
798798 ),
799799 );
0 commit comments