Skip to content

ReflectionParameter::hasType() should assert return type of ReflectionParameter::getType() #5258

@dbrekelmans

Description

@dbrekelmans

If ReflectionParameter::hasType() returns true, then ReflectionParameter::getType() will always return ReflectionType.

If ReflectionParameter::hasType() returns false, then ReflectionParameter::getType() will always return null.

This is not currently understood by psalm.

https://psalm.dev/r/257f4e884d

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