symfony/expression-language breaking changes
symfony/expression-language v8.0.0 (November 27, 2025) is its newest release with breaking changes, 3 of them. The first: Signature changed Symfony\Component\ExpressionLanguage\ExpressionLanguage::lint. Every breaking API change we have recorded in symfony/expression-language on Packagist: 44 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v8.2.0, released November 28, 2026. MIT license. Source repository
Its v8.0.0-BETA1 release requires PHP 8.4 or later. PHP end of life dates.
symfony/expression-language v8.0.0 breaking changes
- Signature changed
Symfony\Component\ExpressionLanguage\ExpressionLanguage::lint
Was public function lint(Expression|string $expression, ?array $names, int $flags = 0): void; now public function lint(Expression|string $expression, array $names, int $flags = 0): void. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\ExpressionLanguage::registerFunctions
Was protected function registerFunctions(); now protected function registerFunctions(): void. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\Parser::lint
Was public function lint(TokenStream $stream, ?array $names = [], int $flags = 0): void; now public function lint(TokenStream $stream, array $names = [], int $flags = 0): void. packagist.org
symfony/expression-language v8.0.0-BETA1 breaking changes
- Removed
Symfony 8 requires PHP 8.4 or later, so applications on older PHP versions must upgrade PHP before moving to this release. github.com - Behavior changed
Passing null as the allowed variables is no longer accepted, so code that does this must pass an array instead. github.com - Signature changed
Methods in all components now enforce return types, so overrides with incompatible return types will no longer work. github.com
symfony/expression-language v7.0.0 breaking changes
- Signature changed
Symfony\Component\ExpressionLanguage\Compiler::getFunction
Was public function getFunction(string $name); now public function getFunction(string $name): array. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\Compiler::subcompile
Was public function subcompile(Node\Node $node); now public function subcompile(Node\Node $node): string. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\Expression::$expression
Was protected $expression; now protected string $expression. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface::getFunctions
Was public function getFunctions(); now public function getFunctions(): array. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\ExpressionLanguage::addFunction
Was public function addFunction(ExpressionFunction $function); now public function addFunction(ExpressionFunction $function): void. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\ExpressionLanguage::register
Was public function register(string $name, callable $compiler, callable $evaluator); now public function register(string $name, callable $compiler, callable $evaluator): void. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\ExpressionLanguage::registerProvider
Was public function registerProvider(ExpressionFunctionProviderInterface $provider); now public function registerProvider(ExpressionFunctionProviderInterface $provider): void. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\Node\Node::$attributes
Was public $attributes; now public array $attributes. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\Node\Node::$nodes
Was public $nodes; now public array $nodes. packagist.org - Signature changed
Symfony\Component\ExpressionLanguage\Node\Node::compile
Was public function compile(Compiler $compiler); now public function compile(Compiler $compiler): void. packagist.org
And 20 more in this version. Sign up to see every change
symfony/expression-language v7.0.0-BETA1 breaking changes
- Removed
Code paths that were deprecated in earlier versions are removed, so code relying on them must be updated. github.com - Removed
PHP versions below 8.2 are no longer supported, so the package cannot be used on them. github.com - Removed
The deprecated code paths in ExpressionLanguage were removed in this release, so code relying on them must be updated. github.com - Removed
The package now needs PHP 8.2 as a minimum, so older PHP versions are no longer supported. github.com - Behavior changed
Public and protected properties gained type declarations, which can break subclasses or code assigning incompatible values. github.com - Signature changed
Methods now declare native return types, which can break subclasses that override them with incompatible return types. github.com - Signature changed
Public and protected properties now have types, which can break subclasses that redeclare them without matching types. github.com - Signature changed
Methods in the components now declare native return types, which can break subclasses that override them with different return types. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.