We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7.0.0
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
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;
Check the index at least with isset()
No response
The text was updated successfully, but these errors were encountered:
Seems like a duplicate of #52793 potentially covered by #52797
Sorry, something went wrong.
closing in favour of #52793
No branches or pull requests
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
Possible Solution
Check the index at least with isset()
Additional Context
No response
The text was updated successfully, but these errors were encountered: