From 530849e4b51ed6bc93c29b3ca82dd52144a8120c Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Sun, 7 May 2017 11:42:51 +0200 Subject: [PATCH] [DI] Fix Cannot declare class ...\DefinitionDecorator, because the name is already in use --- .../DefinitionDecorator.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php index f23f854481feb..25109d16b5e80 100644 --- a/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php +++ b/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php @@ -15,15 +15,15 @@ class_exists(ChildDefinition::class); -return; - -/** - * This definition decorates another definition. - * - * @author Johannes M. Schmitt - * - * @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. - */ -class DefinitionDecorator extends Definition -{ +if (false) { + /** + * This definition decorates another definition. + * + * @author Johannes M. Schmitt + * + * @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. + */ + class DefinitionDecorator extends Definition + { + } }