DEPRECATION: Since symfony/var-exporter 7.3 #7532

Closed
opened 2026-01-22 15:53:02 +01:00 by admin · 2 comments
Owner

Originally created by @alexeybaturin46 on GitHub (Jul 4, 2025).

Bug Report

Q A
Version 3.4.0
Previous Version if the bug is a regression 3.3.3

Summary

I updated php to 8.4 and started getting warnings like "DEPRECATION: Since symfony/var-exporter 7.3: ..."

Current behavior

Аfter running autotests I started receiving warnings "DEPRECATION: Since symfony/var-exporter 7.3: Generating lazy proxy for class "App\Entity\SomeEntityClassName" is deprecated; leverage native lazy objects instead." and "DEPRECATION: Since symfony/var-exporter 7.3: The "Symfony\Component\VarExporter\LazyProxyTrait" trait is deprecated, use native lazy objects instead."

Expected behavior

Autotests have to end without any warnings

How to reproduce

Just upgrade your php to 8.4 and symfony to 7.3 and run codeceptin autotest. I found issue where people told to update doctrine/orm version to 3.4 and doctrine/doctrine-bundle to 2.15 after that add 'enable_native_lazy_objects: false' in config/packeges/doctrine.yaml. But it doesn`t help me

Originally created by @alexeybaturin46 on GitHub (Jul 4, 2025). ### Bug Report <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |-------------------------------------------- | ------ | Version | 3.4.0 | Previous Version if the bug is a regression | 3.3.3 #### Summary I updated php to 8.4 and started getting warnings like "DEPRECATION: Since symfony/var-exporter 7.3: ..." #### Current behavior Аfter running autotests I started receiving warnings "DEPRECATION: Since symfony/var-exporter 7.3: Generating lazy proxy for class "App\Entity\SomeEntityClassName" is deprecated; leverage native lazy objects instead." and "DEPRECATION: Since symfony/var-exporter 7.3: The "Symfony\Component\VarExporter\LazyProxyTrait" trait is deprecated, use native lazy objects instead." #### Expected behavior Autotests have to end without any warnings #### How to reproduce Just upgrade your php to 8.4 and symfony to 7.3 and run codeceptin autotest. I found issue where people told to update doctrine/orm version to 3.4 and doctrine/doctrine-bundle to 2.15 after that add 'enable_native_lazy_objects: false' in config/packeges/doctrine.yaml. But it doesn`t help me
admin closed this issue 2026-01-22 15:53:02 +01:00
Author
Owner

@greg0ire commented on GitHub (Jul 4, 2025):

false?!? It should be set to true!

@greg0ire commented on GitHub (Jul 4, 2025): `false`?!? It should be set to `true`!
Author
Owner

@derrabus commented on GitHub (Jul 4, 2025):

The deprecation tells you to use native proxies, but you actively opt-out of them. This is expected behavior.

@derrabus commented on GitHub (Jul 4, 2025): The deprecation tells you to use native proxies, but you actively opt-out of them. This is expected behavior.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7532