Skip to content

Commit eb8f53c

Browse files
Merge pull request #494 from cleverage/493
[v6] #493 - EvaluatorTransformer: avoid constant(), deprecated by Symfony 8.2
2 parents 8294105 + c195927 commit eb8f53c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Latest
1010
## Changes
1111
* [#428](https://github.com/cleverage/process-bundle/issues/428) Tests on PHPUnit 12.5 and 13 (PHPUnit 10 and 11 dropped), with the lowest dependencies on PHP 8.3 and 8.5.
1212
* [#510](https://github.com/cleverage/process-bundle/issues/510) Support PHP 8.6: tests on PHP 8.6 (lowest dependencies, highest with Symfony 7.4 and 8.x), PHPStan and Rector on PHP 8.6, `symfony/polyfill-php86` is required so that the PHP 8.6 functions can be used on PHP 8.3 to 8.5.
13+
* [#493](https://github.com/cleverage/process-bundle/issues/493) Documentation: the `constant()` function of the `evaluator` expressions is deprecated by Symfony 8.2 (a `ConstantFunctionProvider` must be registered), avoid it.
1314

1415
v5.10
1516
-----

‎docs/reference/transformers/evaluator_transformer.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ Notes
5757
This transformer uses its own `ExpressionLanguage` instance, not the bundle's `cleverage_process.expression_language`
5858
service: the extra functions registered on that service (e.g. `preg_match`) are not available here, unlike in
5959
[RulesTransformer](rules_transformer.md) and [ExpressionLanguageMapTransformer](expression_language_map_transformer.md).
60+
61+
The `constant()` built-in function of ExpressionLanguage is deprecated since Symfony 8.2 (Symfony asks to register a
62+
`ConstantFunctionProvider` listing the allowed constants instead): avoid it in expressions.

0 commit comments

Comments
 (0)