Skip to content

[PropertyInfo] Array or collection can be nullable  #22248

@4rthem

Description

@4rthem
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 2.8

PHP allows null value when using an array type hint but the PhpDocExtractor does not consider array and collections as nullable since the ReflectionExtractor does.

function setProperty(array $prop = null)

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