Skip to content

False positive for covariant return type #6104

@marcospassos

Description

@marcospassos

Bug report

PHPStan currently reports a non-covariant return type for classes declared final.

Code snippet that reproduces the problem

https://phpstan.org/r/41642b8b-c139-41be-94c2-6935849f6106

Expected output

No errors.

Did PHPStan help you today? Did it make you happy in any way?

❤️ PHPStan :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions