Closed as not planned
Closed as not planned
Copy link
Description
Symfony version(s) affected
7.0.0
Description
Getting a field which is a oneToMany reach this part of code
https://github.com/symfony/var-exporter/blob/7.0/LazyGhostTrait.php#L112
Where is not checked with isset() if the key index exist or not properly, assuming always that it is present.
I am using PHP 8.2
How to reproduce
I have a User class with that OneToMany
#[Ignore]
#[ORM\OneToMany(mappedBy: 'followingUser', targetEntity: Follower::class, fetch: 'EXTRA_LAZY', cascade: ['persist', 'remove'], orphanRemoval: true)]
public null|Collection|array $followings = null;
Possible Solution
Check the index at least with isset()
Additional Context
No response