You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Since #38041, the extractFromDefaultValue function will be called before the reflection property.
Because of that, we will detect the array type, but we do not set the collection boolean.
…ection boolean (Korbeil)
This PR was merged into the 5.1 branch.
Discussion
----------
[PropertyInfo] Extract from default value doesn't set collection boolean
| Q | A
| ------------- | ---
| Branch? | 5.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#38445
| License | MIT
| Doc PR | N/A
This PR will fix the issue by checking if the type is an array or not and setting the collection boolean based on this check.
Commits
-------
33d37e5 Fix no collection in extract default value
Symfony version(s) affected: >= 5.1.7
Description
Since #38041, the
extractFromDefaultValue
function will be called before the reflection property.Because of that, we will detect the array type, but we do not set the collection boolean.
I found this because of janephp/janephp#425.
How to reproduce
You can find a reproducer on the following repository: https://github.com/Korbeil/property-info-collection
The text was updated successfully, but these errors were encountered: