Skip to content

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

Open

Description

@njoubert-cleverage

Description

With Symfony 8.2 (8.2.0-BETA1), EvaluatorTransformerTest triggers Since symfony/expression-language 8.2: Using the built-in "constant()" expression function is deprecated, register a ConstantFunctionProvider listing the allowed constants instead. With failOnDeprecation, the CI will fail when Symfony 8.2 is released. The evaluator expressions of the users using constant() get the deprecation too.

Proposed fix

Use another native function in the test; document that constant() is deprecated by Symfony 8.2. No ConstantFunctionProvider registered by the bundle.

Requirements

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

Breaking changes

None.

Activity

  1. added 3 commits that reference this issue on Nov 6, 2026
  2. added this to the v6.0 milestone on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions