Skip to content

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

Merged
njoubert-cleverage merged 1 commit into
dev-v6from
493
Dec 1, 2026
Merged

njoubert-cleverage merged 1 commit into
dev-v6from
493

Conversation

@njoubert-cleverage

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

Copy link
Copy Markdown
Member

Description

Fixes #493: evaluator_transformer.md documents that constant() is deprecated by Symfony 8.2 (a ConstantFunctionProvider must be registered), avoid it.

The test part of the ticket is already done on dev-v6 by 46706a3 (Fix tests with Symfony 8.2): the constant("PHP_INT_MAX") case is a dedicated testBuiltInFunction() with #[IgnoreDeprecations], so it keeps proving that the function still works without failing on the deprecation.

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 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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage changed the base branch from main to dev-v6 December 1, 2026 15:36
@njoubert-cleverage
njoubert-cleverage marked this pull request as ready for review December 1, 2026 15:36
@njoubert-cleverage
njoubert-cleverage merged commit eb8f53c into dev-v6 Dec 1, 2026
14 checks passed
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