8000 minor #51234 [FrameworkBundle] Remove redundant `interface_exists()` … · symfony/symfony@3db10d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3db10d5

Browse files
committed
minor #51234 [FrameworkBundle] Remove redundant interface_exists() check (HypeMC)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Remove redundant `interface_exists()` check | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - This is no longer needed since the min required PHP version is 8.1. Commits ------- d5287d2 [FrameworkBundle] Remove redundant `interface_exists()` check
2 parents 6a36e02 + d5287d2 commit 3db10d5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/serializer.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,8 @@
217217
->factory([HtmlErrorRenderer::class, 'isDebug'])
218218
->args([service('request_stack'), param('kernel.debug')]),
219219
])
220-
;
221220

222-
if (interface_exists(\BackedEnum::class)) {
223-
$container->services()
224-
->set('serializer.normalizer.backed_enum', BackedEnumNormalizer::class)
221+
->set('serializer.normalizer.backed_enum', BackedEnumNormalizer::class)
225222
->tag('serializer.normalizer', ['priority' => -915])
226-
;
227-
}
223+
;
228224
};

0 commit comments

Comments
 (0)
0