diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php index 984abfe7ace55..9495b8c161170 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/RegisterServiceSubscribersPassTest.php @@ -131,9 +131,6 @@ public function testWithAttributes() $this->assertEquals($expected, $container->getDefinition((string) $locator->getFactory()[0])->getArgument(0)); } - /** - * @requires PHP 8 - */ public function testUnionServices() { $container = new ContainerBuilder(); @@ -310,9 +307,6 @@ public function method() $subscriber::getSubscribedServices(); } - /** - * @requires PHP 8 - */ public function testServiceSubscriberTraitWithUnionReturnType() { if (!class_exists(SubscribedService::class)) { diff --git a/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php b/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php index 8fde96bf5d78b..17a7586b62793 100644 --- a/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php +++ b/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php @@ -540,9 +540,6 @@ public function testBuiltinArgumentTypeHandler() (new MessengerPass())->process($container); } - /** - * @requires PHP 8 - */ public function testUnionTypeArgumentsTypeHandler() { $container = $this->getContainerBuilder($busId = 'message_bus'); @@ -561,9 +558,6 @@ public function testUnionTypeArgumentsTypeHandler() $this->assertHandlerDescriptor($container, $handlersMapping, DummyMessage::class, [UnionTypeArgumentHandler::class]); } - /** - * @requires PHP 8 - */ public function testUnionBuiltinArgumentTypeHandler() { $this->expectException(RuntimeException::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php b/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php index 7684a6660f72f..e84dbd71d8fd6 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/ValidTest.php @@ -35,9 +35,6 @@ public function testGroupsAreNullByDefault() $this->assertNull($constraint->groups); } - /** - * @requires PHP 8 - */ public function testAttributes() { $metadata = new ClassMetaData(ValidDummy::class);