Skip to content
New issue

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

Update typed property array => ArrayCollection to prevent errors #18727

Merged
merged 1 commit into from Aug 9, 2023
Merged

Update typed property array => ArrayCollection to prevent errors #18727

merged 1 commit into from Aug 9, 2023

Conversation

ghost
Copy link

@ghost ghost commented Aug 9, 2023

When using strict type checking you could get errors like:

TypeError: Cannot assign Doctrine\Common\Collections\ArrayCollection to property App\Entity\Category::$products of type array

Unverified

This user has not yet uploaded their public signing key.
When using strict type checking you could get errors like:
```
TypeError: Cannot assign Doctrine\Common\Collections\ArrayCollection to property App\Entity\Category::$products of type array
```

Co-authored-by: Christian Flothmann <[email protected]>
@javiereguiluz
Copy link
Member

Good catch, thanks @johanadivare.

@javiereguiluz javiereguiluz merged commit 53f3666 into symfony:6.3 Aug 9, 2023
@ghost ghost deleted the johanadivare-patch-1-1 branch August 9, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants