MethodSignatureMustProvideReturnType
This issue is emitted when a method overriding a native method is defined without a return type.
Only if the return type cannot be declared to keep support for PHP 7, a #[ReturnTypeWillChange]
attribute can be added to silence the PHP deprecation notice and Psalm issue.
<?php
class A implements JsonSerializable {
public function jsonSerialize() {
return ['type' => 'A'];
}
}