You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From phpstan/phpstan#789 we cant really solve the trait convention, technically nor with phpdoc.
Technically we should ship a CanBeEnabled trait with CanBeEnabledInterface or so to enforce API. Which is plain tedious to do for many trait features, and perhaps even defeats the " low development time overhead" promise.. (i prefer 10 traits over 10 traits + 10 interfaces).
Although technically the "right" thing to do, im leaning to mark these traits @final, meaning you shouldnt mess with them 😁 just use. And ignore related errors from phpstan to move forward.
Given Class&Trait is not a real thing yet, we could stick with @var Class|Trait which today is happily resolved by phpstorm (both clickable, both autocompleted). Thus the least hassle.. only phpstan ignore rule.
Activity