Post #3110414
2026-05-12 10:24 UTC
Somehow missed the @mixin PHPDoc tag until now. On a PHP trait, it tells static analysers (PHPStan, IDEs) to type-check it as if it lived inside a subclass, so they don't flag calls to methods that only exist in the subclass as invalid.
https://phpstan.org/writing-php-code/phpdocs-basics#mixins
Replies (0)
No replies.