Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: symfony/expression-language
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.1.0-RC1
Choose a base ref
...
head repository: symfony/expression-language
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.1.0
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 30, 2024

  1. Copy the full SHA
    93e7883 View commit details
Showing with 2 additions and 2 deletions.
  1. +1 −1 ExpressionLanguage.php
  2. +1 −1 Parser.php
2 changes: 1 addition & 1 deletion ExpressionLanguage.php
Original file line number Diff line number Diff line change
@@ -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 = [];
2 changes: 1 addition & 1 deletion Parser.php
Original file line number Diff line number Diff line change
@@ -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 = [];