MethodSignatureMismatch
when extending ReflectionProperty
#7357
Labels
bug
easy problems
Issues that can be fixed without background knowledge of Psalm
good first issue
internal stubs/callmap
ReflectionProperty::setValue()
andReflectionProperty::getValue()
are polymorphic. If you work on a static property you can omit the first parameter which is the object on which you want to access the property.The following code is valid imho:
see https://psalm.dev/r/7de1b5f18a and https://3v4l.org/Ie4oo
However, Psalm logs
MethodSignatureMismatch
errors. If I apply the changes suggested by those errors, I end up with code that would exit with a fatal error:see https://3v4l.org/mX1AF
The text was updated successfully, but these errors were encountered: