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 = [];