Trait + @phpstan-type
+ static
/self
= Type alias contains invalid type
#11591
Labels
@phpstan-type
+ static
/self
= Type alias contains invalid type
#11591
Bug report
Seems
static
/self
/$this
doesn't supported in@phpstan-type
when it used with a Trait. It was fine in v1.11.10, but gives an error in 1.12.0Code snippet that reproduces the problem
https://phpstan.org/r/7ea25015-38b1-4d0e-8f9a-cf45d99bceb8
Expected output
No error.
Did PHPStan help you today? Did it make you happy in any way?
Yep, it saves me a lot of time while refactoring.
The text was updated successfully, but these errors were encountered: