Skip to content

Commit c5daadd

Browse files
[DI] Fix DefinitionDecorator existency for composer authoritative+IDEs
1 parent f61ed96 commit c5daadd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DefinitionDecorator.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,17 @@
1313

1414
@trigger_error('The '.__NAMESPACE__.'\DefinitionDecorator class is deprecated since version 3.3 and will be removed in 4.0. Use the Symfony\Component\DependencyInjection\ChildDefinition class instead.', E_USER_DEPRECATED);
1515

16+
class_exists(ChildDefinition::class);
17+
18+
return;
19+
1620
/**
1721
* This definition decorates another definition.
1822
*
1923
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
2024
*
2125
* @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.
2226
*/
23-
class_exists(ChildDefinition::class);
27+
class DefinitionDecorator extends Definition
28+
{
29+
}

0 commit comments

Comments
 (0)