Multiple PHP Deprecated notices on PHP 8.4
-
Hello Yoast Team,
I am using your Yoast SEO plugin and I’m getting a large number of
PHP Deprecatednotices in my debug.log file. They all seem to be related to “implicitly marking parameter as nullable” in prefixed libraries (vendor_prefixed).Here are the most common examples from my logs:
PHP Deprecated: YoastSEO_Vendor\League\OAuth2\Client\Provider\AbstractProvider::authorize(): Implicitly marking parameter $redirectHandler as nullable is deprecated, the explicit nullable type must be used instead in /wp-content/plugins/wordpress-seo/vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php on line 416
PHP Deprecated: YoastSEO_Vendor\GuzzleHttp\Client::getConfig(): Implicitly marking parameter $option as nullable is deprecated, the explicit nullable type must be used instead in /public_html/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Client.php on line 181
My environment details are:
- WordPress Version: 6.8.1
- PHP Version: 8.4.6
- Yoast SEO Version: 25.4
The plugin seems to function correctly otherwise, but these notices make the log file very noisy and difficult to use for debugging other issues.
I just wanted to bring this to your attention for a future update. Thank you for your amazing work on this essential plugin.
Best regards.
The topic ‘Multiple PHP Deprecated notices on PHP 8.4’ is closed to new replies.