Skip to content

Commit 515d459

Browse files
review
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
1 parent 90f5b52 commit 515d459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Compiler/AutowireAsDecoratorPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private function processClass(string $id, ContainerBuilder $container, Definitio
3939
{
4040
$attributes = $reflectionClass->getAttributes(AsDecorator::class, \ReflectionAttribute::IS_INSTANCEOF);
4141

42-
if ([] === $attributes) {
42+
if (!$attributes = $reflectionClass->getAttributes(AsDecorator::class, \ReflectionAttribute::IS_INSTANCEOF)) {
4343
return;
4444
}
4545

0 commit comments

Comments
 (0)