Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot assign Symfony\Component\VarDumper\Caster\CutStub to reference held by property ... #49091

Closed
@seb-jean

Description

@seb-jean

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions