php-advanced-json-rpc
php-advanced-json-rpc copied to clipboard
A more advanced PHP implementation of the JSONRPC Protocol 📞❗
https://wiki.php.net/rfc/union_types_v2 was merged. This introduces `ReflectionUnionType extends ReflectionType`. https://wiki.php.net/rfc/union_types_v2#reflection - ReflectionUnionType->getTypes() should be used if it exists. (similar to how phpdoc union types are used). The existing code wouldn't work,...
It's annoying and surprising to have to type `@param string|null` instead of `@param ?string`. Checking if the first character of a type is `?` and stripping that (and adding null)...
Additionally provided params should simply be ignored to not break servers if a protocol adds new parameters.
Implicitly nullable parameter types are deprecated in PHP 8.4 * https://wiki.php.net/rfc/deprecate-implicitly-nullable-types `?Type` syntax was added in PHP 7.1, so there are no backward compatibility issues. * https://wiki.php.net/rfc/nullable_types