diff --git a/tests/Form/DataTransformer/BackedEnumTransformerTest.php b/tests/Form/DataTransformer/BackedEnumTransformerTest.php
index efb71b84a6..03540d708e 100644
--- a/tests/Form/DataTransformer/BackedEnumTransformerTest.php
+++ b/tests/Form/DataTransformer/BackedEnumTransformerTest.php
@@ -19,9 +19,6 @@
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
-/**
- * @requires PHP 8.1
- */
final class BackedEnumTransformerTest extends TestCase
{
public function testReverseTransform(): void
diff --git a/tests/Twig/Extension/RenderElementExtensionTest.php b/tests/Twig/Extension/RenderElementExtensionTest.php
index 9ccba3ee9b..8fb6fff197 100644
--- a/tests/Twig/Extension/RenderElementExtensionTest.php
+++ b/tests/Twig/Extension/RenderElementExtensionTest.php
@@ -1523,11 +1523,6 @@ class="x-editable"
],
];
- // TODO: Remove the "if" check when dropping support of PHP < 8.1 and add the case to the list
- if (\PHP_VERSION_ID < 80100) {
- return $elements;
- }
-
$elements[] = [
'
| ',
FieldDescriptionInterface::TYPE_ENUM,
@@ -2103,11 +2098,6 @@ class="sonata-readmore"
],
];
- // TODO: Remove the "if" check when dropping support of PHP < 8.1 and add the case to the list
- if (\PHP_VERSION_ID < 80100) {
- return $elements;
- }
-
$elements[] = [
'Data | Hearts | ',
FieldDescriptionInterface::TYPE_ENUM,
diff --git a/tests/Twig/RenderElementRuntimeTest.php b/tests/Twig/RenderElementRuntimeTest.php
index 8b62e56554..d55b8965c5 100644
--- a/tests/Twig/RenderElementRuntimeTest.php
+++ b/tests/Twig/RenderElementRuntimeTest.php
@@ -1473,11 +1473,6 @@ class="x-editable"
],
];
- // TODO: Remove the "if" check when dropping support of PHP < 8.1 and add the case to the list
- if (\PHP_VERSION_ID < 80100) {
- return $elements;
- }
-
$elements[] = [
' Hearts | ',
FieldDescriptionInterface::TYPE_ENUM,
diff --git a/tests/Twig/XEditableRuntimeTest.php b/tests/Twig/XEditableRuntimeTest.php
index e1665c2a60..3e6ed6bc09 100644
--- a/tests/Twig/XEditableRuntimeTest.php
+++ b/tests/Twig/XEditableRuntimeTest.php
@@ -93,19 +93,16 @@ public function provideGetXEditableChoicesIsIdempotentCases(): iterable
],
];
- // TODO: Remove the "if" check when dropping support of PHP < 8.1 and add the case to the list
- if (\PHP_VERSION_ID >= 80100) {
- yield 'enum cases' => [
- [
- 'required' => false,
- 'multiple' => false,
- 'choices' => [Suit::Hearts, Suit::Clubs],
- ],
- [
- ['value' => 'H', 'text' => 'Hearts'],
- ['value' => 'C', 'text' => 'Clubs'],
- ],
- ];
- }
+ yield 'enum cases' => [
+ [
+ 'required' => false,
+ 'multiple' => false,
+ 'choices' => [Suit::Hearts, Suit::Clubs],
+ ],
+ [
+ ['value' => 'H', 'text' => 'Hearts'],
+ ['value' => 'C', 'text' => 'Clubs'],
+ ],
+ ];
}
}