diff --git a/src/Symfony/Component/Console/Tests/Command/CommandTest.php b/src/Symfony/Component/Console/Tests/Command/CommandTest.php index 41f01b823a643..1ce203860d8c4 100644 --- a/src/Symfony/Component/Console/Tests/Command/CommandTest.php +++ b/src/Symfony/Component/Console/Tests/Command/CommandTest.php @@ -420,9 +420,6 @@ public function testCommandAttribute() $this->assertSame(['f'], $command->getAliases()); } - /** - * @requires PHP 8 - */ public function testDefaultCommand() { $apl = new Application(); diff --git a/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php b/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php index 0ad97f16611a1..255487810e3ec 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Compiler/IntegrationTest.php @@ -384,9 +384,6 @@ public function testTaggedServiceWithIndexAttributeAndDefaultMethodConfiguredVia $this->assertSame(['bar_tab_class_with_defaultmethod' => $container->get(BarTagClass::class), 'foo' => $container->get(FooTagClass::class)], $param); } - /** - * @requires PHP 8 - */ public function testTaggedIteratorWithDefaultIndexMethodConfiguredViaAttribute() { $container = new ContainerBuilder(); @@ -411,9 +408,6 @@ public function testTaggedIteratorWithDefaultIndexMethodConfiguredViaAttribute() $this->assertSame(['bar_tag_class' => $container->get(BarTagClass::class), 'foo_tag_class' => $container->get(FooTagClass::class)], $param); } - /** - * @requires PHP 8 - */ public function testTaggedIteratorWithDefaultPriorityMethodConfiguredViaAttribute() { $container = new ContainerBuilder(); @@ -438,9 +432,6 @@ public function testTaggedIteratorWithDefaultPriorityMethodConfiguredViaAttribut $this->assertSame([0 => $container->get(FooTagClass::class), 1 => $container->get(BarTagClass::class)], $param); } - /** - * @requires PHP 8 - */ public function testTaggedIteratorWithDefaultIndexMethodAndWithDefaultPriorityMethodConfiguredViaAttribute() { $container = new ContainerBuilder(); @@ -491,9 +482,6 @@ public function testTaggedLocatorConfiguredViaAttribute() self::assertSame($container->get(FooTagClass::class), $locator->get('foo')); } - /** - * @requires PHP 8 - */ public function testTaggedLocatorConfiguredViaAttributeWithoutIndex() { $container = new ContainerBuilder(); @@ -520,9 +508,6 @@ public function testTaggedLocatorConfiguredViaAttributeWithoutIndex() self::assertSame($container->get(FooTagClass::class), $locator->get(FooTagClass::class)); } - /** - * @requires PHP 8 - */ public function testTaggedLocatorWithDefaultIndexMethodConfiguredViaAttribute() { $container = new ContainerBuilder(); @@ -549,9 +534,6 @@ public function testTaggedLocatorWithDefaultIndexMethodConfiguredViaAttribute() self::assertSame($container->get(FooTagClass::class), $locator->get('foo_tag_class')); } - /** - * @requires PHP 8 - */ public function testTaggedLocatorWithDefaultPriorityMethodConfiguredViaAttribute() { $container = new ContainerBuilder(); @@ -582,9 +564,6 @@ public function testTaggedLocatorWithDefaultPriorityMethodConfiguredViaAttribute self::assertSame([FooTagClass::class, BarTagClass::class], array_keys($factories->getValue($locator))); } - /** - * @requires PHP 8 - */ public function testTaggedLocatorWithDefaultIndexMethodAndWithDefaultPriorityMethodConfiguredViaAttribute() { $container = new ContainerBuilder(); @@ -617,9 +596,6 @@ public function testTaggedLocatorWithDefaultIndexMethodAndWithDefaultPriorityMet self::assertSame($container->get(FooTagClass::class), $locator->get('foo_tag_class')); } - /** - * @requires PHP 8 - */ public function testNestedDefinitionWithAutoconfiguredConstructorArgument() { $container = new ContainerBuilder(); @@ -904,9 +880,6 @@ static function (Definition $definition, CustomAutoconfiguration $attribute) { ], $collector->collectedTags); } - /** - * @requires PHP 8 - */ public function testTagsViaAttributeOnPropertyMethodAndParameter() { $container = new ContainerBuilder(); diff --git a/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php b/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php index 4eeaff73b8c39..ec5a55243fb07 100644 --- a/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/ControllerMetadata/ArgumentMetadataFactoryTest.php @@ -134,9 +134,6 @@ public function testMultipleAttributes() $this->assertCount(1, $this->factory->createArgumentMetadata([new AttributeController(), 'multiAttributeArg'])[0]->getAttributes()); } - /** - * @requires PHP 8 - */ public function testIssue41478() { $arguments = $this->factory->createArgumentMetadata([new AttributeController(), 'issue41478']); diff --git a/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php b/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php index 5f49bbb3dd58e..7c11dcce89147 100644 --- a/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php +++ b/src/Symfony/Component/Messenger/Tests/DependencyInjection/MessengerPassTest.php @@ -105,9 +105,6 @@ public function testFromTransportViaTagAttribute() $this->assertHandlerDescriptor($container, $handlerDescriptionMapping, DummyMessage::class, [DummyHandler::class], [['from_transport' => 'async']]); } - /** - * @requires PHP 8 - */ public function testTaggedMessageHandler() { $container = $this->getContainerBuilder($busId = 'message_bus'); diff --git a/src/Symfony/Component/Serializer/Tests/SerializerTest.php b/src/Symfony/Component/Serializer/Tests/SerializerTest.php index 52cb6e0352610..cdfa3c9780d61 100644 --- a/src/Symfony/Component/Serializer/Tests/SerializerTest.php +++ b/src/Symfony/Component/Serializer/Tests/SerializerTest.php @@ -997,7 +997,6 @@ public function testCollectDenormalizationErrors2() $this->assertSame($expected, $exceptionsAsArray); } - /** @requires PHP 8.0 */ public function testCollectDenormalizationErrorsWithConstructor() { $json = '{"bool": "bool"}'; diff --git a/src/Symfony/Component/Validator/Tests/Constraints/CidrTest.php b/src/Symfony/Component/Validator/Tests/Constraints/CidrTest.php index 1e1dd16902327..bfff246eafa9c 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/CidrTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/CidrTest.php @@ -111,9 +111,6 @@ public function getValidMinMaxValues(): array ]; } - /** - * @requires PHP 8 - */ public function testAttributes() { $metadata = new ClassMetadata(CidrDummy::class); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/CssColorTest.php b/src/Symfony/Component/Validator/Tests/Constraints/CssColorTest.php index fcf58b85b33c4..ae34c3201d55f 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/CssColorTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/CssColorTest.php @@ -18,7 +18,6 @@ /** * @author Mathieu Santostefano - * @requires PHP 8 */ final class CssColorTest extends TestCase {