From 23e93bed9d5ee4492b99d3f927327d1763f7d3e2 Mon Sep 17 00:00:00 2001 From: Jesse Rushlow Date: Thu, 2 Apr 2020 09:26:04 -0400 Subject: [PATCH] check for getDeprecation not definition... --- DependencyInjection/Configuration.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 5b2a1d1e5..3e82d561e 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -695,15 +695,15 @@ private function getAutoGenerateModes() : array * Returns the correct deprecation param's as an array for setDeprecated. * * Symfony/Config v5.1 introduces a deprecation notice when calling - * setDeprecation() with less than 3 args and the getDefinition method was - * introduced at the same time. By checking if getDefinition() exists, + * setDeprecation() with less than 3 args and the getDeprecation method was + * introduced at the same time. By checking if getDeprecation() exists, * we can determine the correct param count to use when calling setDeprecated. */ 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.'; + $msg = 'The doctrine-bundle type commenting features were removed; the corresponding config parameter was deprecated in 2.0 and will be dropped in 3.0.'; - if (method_exists(BaseNode::class, 'getDefinition')) { + if (method_exists(BaseNode::class, 'getDeprecation')) { return [ 'doctrine/doctrine-bundle', '2.0',