# 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 ;) <!-- Was the issue reported incorrectly? Or should PHPStan detect an issue with the code but doesn't? -->