Skip to content

self::class in parameter on trait method #4066

@olivernybroe

Description

@olivernybroe

Bug report

Phpstan crashes when using a trait that has a method with a parameter that refers to self::class

Code snippet that reproduces the problem

https://phpstan.org/r/bddbfc71-bae5-49a2-9d64-0472e559781b

Expected output

That it doesn't crash ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions