Skip to content

Commit 93e7883

Browse files
committed
Add missing UPGRADE notes for 7.1
1 parent 1cd86da commit 93e7883

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ExpressionLanguage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function parse(Expression|string $expression, array $names, int $flags =
101101
public function lint(Expression|string $expression, ?array $names, int $flags = 0): void
102102
{
103103
if (null === $names) {
104-
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__);
104+
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__);
105105

106106
$flags |= Parser::IGNORE_UNKNOWN_VARIABLES;
107107
$names = [];

Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function parse(TokenStream $stream, array $names = [], int $flags = 0): N
112112
public function lint(TokenStream $stream, ?array $names = [], int $flags = 0): void
113113
{
114114
if (null === $names) {
115-
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__);
115+
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__);
116116

117117
$flags |= self::IGNORE_UNKNOWN_VARIABLES;
118118
$names = [];

0 commit comments

Comments
 (0)