phpstan-src
phpstan-src copied to clipboard
Add dynamic return type extension for `get_object_vars`
So, the issue now is that there may be 'extra' keys in the array, if the class is not final. (https://3v4l.org/hM8MU)
Is there any way to indicate that the array may have more keys?
Is there any way to indicate that the array may have more keys?
@BackEndTea Currently there isn't, see Psalm 5 announcment and phpstan/phpstan#8438.