symfony/var-exporter breaking changes
symfony/var-exporter v8.0.0 (November 27, 2025) is its newest release with breaking changes, 6 of them. The first: Removed LazyGhostTrait. Every breaking API change we have recorded in symfony/var-exporter on Packagist: 13 breaking changes in 5 versions. Below, its 5 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/var-exporter v8.0.0 breaking changes
- Removed
LazyGhostTrait
LazyGhostTrait is gone. Use native PHP lazy objects instead. github.com - Removed
LazyProxyTrait
LazyProxyTrait is gone. Use native PHP lazy objects instead. github.com - Removed
Symfony\Component\VarExporter\LazyGhostTrait
Symfony\Component\VarExporter\LazyGhostTrait was removed in symfony/var-exporter v8.0.0 packagist.org - Removed
Symfony\Component\VarExporter\LazyProxyTrait
Symfony\Component\VarExporter\LazyProxyTrait was removed in symfony/var-exporter v8.0.0 packagist.org - Removed
Symfony\Component\VarExporter\ProxyHelper::generateLazyGhost
ProxyHelper::generateLazyGhost() is removed. Use native lazy objects instead. packagist.org - Behavior changed
ProxyHelper.generateLazyProxy
generateLazyProxy() now only generates abstraction-based lazy decorators. Use native lazy proxies for other cases. github.com
symfony/var-exporter v8.0.0-BETA1 breaking changes
- Configuration changed
Symfony 8 drops support for PHP versions below 8.4. Upgrade PHP before updating. github.com
symfony/var-exporter v7.0.0 breaking changes
- Removed
Symfony\Component\VarExporter\ProxyHelper::exportParameters
Symfony\Component\VarExporter\ProxyHelper::exportParameters was removed in symfony/var-exporter v7.0.0 packagist.org - Signature changed
Symfony\Component\VarExporter\LazyGhostTrait::createLazyGhost
Was public static function createLazyGhost(\Closure|array $initializer, ?array $skippedProperties = null, ?object $instance = null): static; now public static function createLazyGhost(\Closure $initializer, array $skippedProperties = null... packagist.org
symfony/var-exporter v7.0.0-RC1 breaking changes
- Removed
Support for partially initialized lazy objects was dropped, so code relying on them must be changed. github.com
symfony/var-exporter v7.0.0-BETA1 breaking changes
- Removed
The package now requires PHP 8.2 or later, so older PHP versions can no longer run it. github.com - Signature changed
Public and protected properties gained type declarations, which can break subclasses or code that assigns incompatible values. github.com - Signature changed
Return types were converted to native PHP declarations, so subclasses overriding these methods may need matching 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.