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
Parent class constructor that calls a private method - making the init method protected or higher fixes the error
Parent class that has a magic __call method - removing the magic method fixes the error
Property initialization analysis for the child class - removing the child class fixes the error
A bit of debugging shows that analysis is getting into MissingMethodCallHandler, and the reason for the TooManyArguments error is that this call is erroneously being transformed into a call to __call. I'm guessing that it's trying to find the private method in the context of the child class.
The text was updated successfully, but these errors were encountered:
https://psalm.dev/r/297ffd1c85
This seems to be an interaction between:
init
method protected or higher fixes the error__call
method - removing the magic method fixes the errorA bit of debugging shows that analysis is getting into
MissingMethodCallHandler
, and the reason for theTooManyArguments
error is that this call is erroneously being transformed into a call to__call
. I'm guessing that it's trying to find the private method in the context of the child class.The text was updated successfully, but these errors were encountered: