Skip to content

Incorrect error for self #6500

@liborm85

Description

@liborm85

Bug report

After update to version 1.4.4 is returned incorrect error.
See https://3v4l.org/0URmF method test() return class DatePeriodExample, but according to phpstan it is DatePeriod returned.

Code snippet that reproduces the problem

https://phpstan.org/r/b0493d36-3100-48b6-8873-a467110c28de

Expected output

No errors!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions