It leads to TypeError if auth endpoint return empty response on bad credential (my case):
Uncaught TypeError: Argument 1 passed to kamermans\OAuth2\Token\RawTokenFactory::__invoke() must be of the type array, null given in
/var/www/html/wp-content/plugins/xtm-wpml-connector/vendor/kamermans/guzzle-oauth2-subscriber/src/Token/RawTokenFactory.php:7
Interface states
GrantTypeInterface::getRawData(): array
https://github.com/kamermans/guzzle-oauth2-subscriber/blob/b2dc192f1ce9390d3c0e399ad0610fa1fddc17ea/src/GrantType/GrantTypeInterface.php#L15-L17but every grant type implementation ends with:
It leads to TypeError if auth endpoint return empty response on bad credential (my case):