Skip to content

Commit 530849e

Browse files
committed
[DI] Fix Cannot declare class ...\DefinitionDecorator, because the name is already in use
1 parent f6043bb commit 530849e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Symfony/Component/DependencyInjection/DefinitionDecorator.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515

1616
class_exists(ChildDefinition::class);
1717

18-
return;
19-
20-
/**
21-
* This definition decorates another definition.
22-
*
23-
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
24-
*
25-
* @deprecated The DefinitionDecorator class is deprecated since version 3.3 and will be removed in 4.0. Use the Symfony\Component\DependencyInjection\ChildDefinition class instead.
26-
*/
27-
class DefinitionDecorator extends Definition
28-
{
18+
if (false) {
19+
/**
20+
* This definition decorates another definition.
21+
*
22+
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
23+
*
24+
* @deprecated The DefinitionDecorator class is deprecated since version 3.3 and will be removed in 4.0. Use the Symfony\Component\DependencyInjection\ChildDefinition class instead.
25+
*/
26+
class DefinitionDecorator extends Definition
27+
{
28+
}
2929
}

0 commit comments

Comments
 (0)