Closed
Description
Symfony version(s) affected
6.2.4
Description
I have an error Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property App\Entity\Preference::$distance of type ?App\Enum\DistanceEnum
I have a property in Entity:
#[ORM\Column(length: 255, nullable: true, enumType: DistanceEnum::class)]
private ?DistanceEnum $distance = null;
How to reproduce
With APP_ENV=dev
, I have the error.
With APP_ENV=prod
, I have no error.
Possible Solution
No response
Additional Context
No response