Skip to content

[v6] #493 - EvaluatorTransformer: avoid constant(), deprecated by Symfony 8.2 - #494

Draft
njoubert-cleverage wants to merge 2 commits into
mainfrom
493
Draft

njoubert-cleverage wants to merge 2 commits into
mainfrom
493

Conversation

@njoubert-cleverage

@njoubert-cleverage njoubert-cleverage commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Description

Fixes #493:

  • EvaluatorTransformerTest: the built-in function case (constant("PHP_INT_MAX")) is replaced by a string concatenation (min() / max() only exist since Symfony 7.1);
  • evaluator_transformer.md: constant() is deprecated by Symfony 8.2 (a ConstantFunctionProvider must be registered), avoid it.

Checked locally: highest dependencies with pcov coverage, and Symfony 8.2.0-BETA1 (no deprecation): all tests OK; PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 6, 2026 13:14
njoubert-cleverage and others added 2 commits November 6, 2026 15:03
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…x(), added by Symfony 7.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage njoubert-cleverage added this to the v6.0 milestone Nov 6, 2026
@njoubert-cleverage njoubert-cleverage changed the title #493 - EvaluatorTransformer: avoid constant(), deprecated by Symfony 8.2 [v6] #493 - EvaluatorTransformer: avoid constant(), deprecated by Symfony 8.2 Nov 6, 2026
@njoubert-cleverage
njoubert-cleverage marked this pull request as draft November 6, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Symfony 8.2 deprecates the constant() function of ExpressionLanguage, used by the EvaluatorTransformer test

1 participant