From 58ce0fa10dd8b43d0a12274fa17876a51bb3487b Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 19 Dec 2023 10:31:47 +0100 Subject: [PATCH] remove unneeded @requires PHP from tests --- .../DependencyInjection/Tests/Dumper/YamlDumperTest.php | 2 -- src/Symfony/Component/Serializer/Tests/SerializerTest.php | 3 --- src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php | 3 --- 3 files changed, 8 deletions(-) diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php index 0b5c125be8c9a..3cf0f3d971573 100644 --- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php +++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/YamlDumperTest.php @@ -167,8 +167,6 @@ public function testDumpHandlesEnumeration() } /** - * @requires PHP 8.1 - * * @dataProvider provideDefaultClasses */ public function testDumpHandlesDefaultAttribute($class, $expectedFile) diff --git a/src/Symfony/Component/Serializer/Tests/SerializerTest.php b/src/Symfony/Component/Serializer/Tests/SerializerTest.php index 93d910fdabfe8..daabf8e6cab0a 100644 --- a/src/Symfony/Component/Serializer/Tests/SerializerTest.php +++ b/src/Symfony/Component/Serializer/Tests/SerializerTest.php @@ -755,9 +755,6 @@ public function testDeserializeWrappedScalar() $this->assertSame(42, $serializer->deserialize('{"wrapper": 42}', 'int', 'json', [UnwrappingDenormalizer::UNWRAP_PATH => '[wrapper]'])); } - /** - * @requires PHP 8 - */ public function testDeserializeNullableIntInXml() { $extractor = new PropertyInfoExtractor([], [new ReflectionExtractor()]); diff --git a/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php b/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php index 91938140d8603..4f230e2df868a 100644 --- a/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php +++ b/src/Symfony/Component/Validator/Tests/Constraints/WhenTest.php @@ -103,9 +103,6 @@ public function testAnnotations() self::assertSame(['Default', 'WhenTestWithAnnotations'], $bazConstraint->groups); } - /** - * @requires PHP 8.1 - */ public function testAttributes() { $loader = new AnnotationLoader(new AnnotationReader());