Static methods declared via @method static ReturnType methodName()
do not inherit __callStatic()
purity
#6941
Labels
@method static ReturnType methodName()
do not inherit __callStatic()
purity
#6941
Given following example ( https://psalm.dev/r/c076bbc487 ):
No errors are produced.
As soon as
@method static self FOO()
is declared (to make it clear that the dynamic method is only available when called statically), we get an error ( https://psalm.dev/r/327af3563f ):Therefore, I'm wondering if:
vimeo/psalm
at4.12.0
removed__callStatic()
purity from@method
definitions (worked in4.10.0
@method
by declaring thestatic
modifier? 🤔The text was updated successfully, but these errors were encountered: