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
I'm using a trait in a DTO object marked as psalm-immutable.
With the help of the trait, I initialize the properties of the object, but calling the initializing property's mathod, I get an error:
psalm: UnusedMethodCall: The call to BaseData::importMetaProp is not used.
I also get the PropertyNotSetInConstructor error.
I would like to be able to mark a method as a "constructor". Such methods will not raise an UnusedMethodCall error, and these methods can only be called from a constructor or an object marked as "constructor".
I'm using a trait in a DTO object marked as psalm-immutable.
With the help of the trait, I initialize the properties of the object, but calling the initializing property's mathod, I get an error:
psalm: UnusedMethodCall: The call to BaseData::importMetaProp is not used.
I also get the PropertyNotSetInConstructor error.
I would like to be able to mark a method as a "constructor". Such methods will not raise an UnusedMethodCall error, and these methods can only be called from a constructor or an object marked as "constructor".
https://psalm.dev/r/6a1fd47226
The text was updated successfully, but these errors were encountered: