Skip to content

A class named Number is treated in a broken way in phpdoc #4039

@stof

Description

@stof

Bug report

When a class has a shortname Number and is used in phpdoc, the phpdoc reads it as int|float.

Code snippet that reproduces the problem

https://phpstan.org/r/b4717208-fbed-4773-b1cb-69b6dbb435f9

Expected output

No error here

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