From 7af6e604f0b96d8901e9762a8440d47bab689787 Mon Sep 17 00:00:00 2001 From: Jesse Rushlow Date: Wed, 1 Apr 2020 15:27:44 -0400 Subject: [PATCH] cant use null, lets try this... --- DependencyInjection/Configuration.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 850b7f1a2..5b2a1d1e5 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -701,14 +701,16 @@ private function getAutoGenerateModes() : array */ private function getCommentedParamDeprecationMsg() : array { + $msg = 'The doctrine-bundle type commenting features removed; the corresponding config parameter was deprecated in 2.0 and will be dropped in 3.0.'; + if (method_exists(BaseNode::class, 'getDefinition')) { return [ 'doctrine/doctrine-bundle', '2.0', - 'Type commenting features removed; the corresponding config parameter was deprecated and will be dropped in 3.0.', + $msg, ]; } - return [null]; + return [$msg]; } }