From 93e788339d36d933a181f4430010eae96bd34632 Mon Sep 17 00:00:00 2001 From: Wouter de Jong Date: Thu, 30 May 2024 14:09:55 +0200 Subject: [PATCH] Add missing UPGRADE notes for 7.1 --- ExpressionLanguage.php | 2 +- Parser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ExpressionLanguage.php b/ExpressionLanguage.php index 978a068..22112e9 100644 --- a/ExpressionLanguage.php +++ b/ExpressionLanguage.php @@ -101,7 +101,7 @@ public function parse(Expression|string $expression, array $names, int $flags = public function lint(Expression|string $expression, ?array $names, int $flags = 0): void { if (null === $names) { - trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "self::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__); + trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "%s\Parser::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__, __NAMESPACE__); $flags |= Parser::IGNORE_UNKNOWN_VARIABLES; $names = []; diff --git a/Parser.php b/Parser.php index 1708d18..d34e742 100644 --- a/Parser.php +++ b/Parser.php @@ -112,7 +112,7 @@ public function parse(TokenStream $stream, array $names = [], int $flags = 0): N public function lint(TokenStream $stream, ?array $names = [], int $flags = 0): void { if (null === $names) { - trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "self::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__); + trigger_deprecation('symfony/expression-language', '7.1', 'Passing "null" as the second argument of "%s()" is deprecated, pass "%s::IGNORE_UNKNOWN_VARIABLES" instead as a third argument.', __METHOD__, __CLASS__); $flags |= self::IGNORE_UNKNOWN_VARIABLES; $names = [];