Skip to content

[PropertyInfo] Extract from default value doesn't set collection boolean #38445

Closed
@Korbeil

Description

@Korbeil

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

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