Skip to content

Commit d995693

Browse files
minor symfony#53882 [ExpressionLanguage][Validator]  document deprecation and fix test (xabbuh)
This PR was merged into the 7.1 branch. Discussion ---------- [ExpressionLanguage][Validator]  document deprecation and fix test | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- e248c61 document deprecation and fix test
2 parents ff9ab3a + e248c61 commit d995693

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

UPGRADE-7.1.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Cache
66

77
* Deprecate `CouchbaseBucketAdapter`, use `CouchbaseCollectionAdapter` instead
88

9+
ExpressionLanguage
10+
------------------
11+
12+
* Deprecate passing `null` as the allowed variable names to `ExpressionLanguage::lint()` and `Parser::lint()`,
13+
pass the `IGNORE_UNKNOWN_VARIABLES` flag instead to ignore unknown variables during linting
14+
915
FrameworkBundle
1016
---------------
1117

src/Symfony/Component/ExpressionLanguage/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CHANGELOG
77
* Add support for PHP `min` and `max` functions
88
* Add `Parser::IGNORE_UNKNOWN_VARIABLES` and `Parser::IGNORE_UNKNOWN_FUNCTIONS` flags to control whether
99
parsing and linting should check for unknown variables and functions.
10+
* Deprecate passing `null` as the allowed variable names to `ExpressionLanguage::lint()` and `Parser::lint()`,
11+
pass the `IGNORE_UNKNOWN_VARIABLES` flag instead to ignore unknown variables during linting
1012

1113
7.0
1214
---

src/Symfony/Component/Validator/Tests/Constraints/ExpressionSyntaxValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testExpressionWithoutNames()
6262
{
6363
$this->validator->validate('1 + 1', new ExpressionSyntax([
6464
'message' => 'myMessage',
65-
]));
65+
], null, null, []));
6666

6767
$this->assertNoViolation();
6868
}

0 commit comments

Comments
 (0)