-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Using WordPress 7.0 Beta 2 with the Plugin Checker Plugin results in the following fatal error:
Fatal error: Declaration of WP_AI_Client_HTTP_Client::sendRequestWithOptions(WordPress\AiClientDependencies\Psr\Http\Message\RequestInterface $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options): WordPress\AiClientDependencies\Psr\Http\Message\ResponseInterface must be compatible with WordPress\AiClient\Providers\Http\Contracts\ClientWithOptionsInterface::sendRequestWithOptions(Psr\Http\Message\RequestInterface $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options): Psr\Http\Message\ResponseInterface in /var/www/clients/client0/web19/web/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php on line 101
Steps to reproduce:
- Install a clean WordPress 7.0 Beta 2.
- Run: wp plugin install plugin-check
- Run: wp plugin activate plugin-check => error
Stack trace:
Fatal error: Declaration of WP_AI_Client_HTTP_Client::sendRequestWithOptions(WordPress\AiClientDependencies\Psr\Http\Message\RequestInterface $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options): WordPress\AiClientDependencies\Psr\Http\Message\ResponseInterface must be compatible with WordPress\AiClient\Providers\Http\Contracts\ClientWithOptionsInterface::sendRequestWithOptions(Psr\Http\Message\RequestInterface $request, WordPress\AiClient\Providers\Http\DTO\RequestOptions $options): Psr\Http\Message\ResponseInterface in /var/www/clients/client0/web19/web/wp-includes/ai-client/adapters/class-wp-ai-client-http-client.php on line 101
Fatal error: Uncaught Error: Call to a member function set() on null in /var/www/clients/client0/web19/web/wp-includes/l10n.php:857
Stack trace:
#0 /var/www/clients/client0/web19/web/wp-includes/l10n.php(960): load_textdomain()
#1 /var/www/clients/client0/web19/web/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /var/www/clients/client0/web19/web/wp-includes/l10n.php on line 857