Skip to content

Commit ef3659e

Browse files
committed
remove unneeded eval given PHP 8 in 6.0
1 parent 2cb763b commit ef3659e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Tests/Compiler/IntegrationTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,7 @@ static function (ChildDefinition $definition, CustomParameterAttribute $attribut
754754
);
755755
$container->registerAttributeForAutoconfiguration(
756756
CustomAnyAttribute::class,
757-
eval(<<<'PHP'
758-
return static function (\Symfony\Component\DependencyInjection\ChildDefinition $definition, \Symfony\Component\DependencyInjection\Tests\Fixtures\Attribute\CustomAnyAttribute $attribute, \ReflectionClass|\ReflectionMethod|\ReflectionProperty|\ReflectionParameter $reflector) {
757+
static function (ChildDefinition $definition, CustomAnyAttribute $attribute, \ReflectionClass|\ReflectionMethod|\ReflectionProperty|\ReflectionParameter $reflector) {
759758
$tagAttributes = get_object_vars($attribute);
760759
if ($reflector instanceof \ReflectionClass) {
761760
$tagAttributes['class'] = $reflector->getName();
@@ -768,9 +767,8 @@ static function (ChildDefinition $definition, CustomParameterAttribute $attribut
768767
}
769768

770769
$definition->addTag('app.custom_tag', $tagAttributes);
771-
};
772-
PHP
773-
));
770+
}
771+
);
774772

775773
$container->register(TaggedService4::class)
776774
->setPublic(true)

0 commit comments

Comments
 (0)