Fixed PHP 8.4 Deprecated Warnings
-
I’m not a PHP coder, but I got tired of waiting for Yoast to fix the most basic stuff, so I’ve learnt and done it for you myself:
/wp-content/plugins/wordpress-seo/vendor_prefixed/symfony/dependency-injection/Container.php on line 60
Change:
public function __construct(\YoastSEO_Vendor\Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface $parameterBag = null)
To This:
public function __construct(?\YoastSEO_Vendor\Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface $parameterBag = null)
/wp-content/plugins/wordpress-seo/vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php on line 416
Change:
public function authorize(array $options = [], callable $redirectHandler = null)
To:
public function authorize(array $options = [], callable|null $redirectHandler = null)
/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/Client.php on line 181
Change:
public function getConfig(string $option = null)
To:
public function getConfig(?string $option = null)
/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php on line 77
Change:
public function getConfig(string $option = null);
To This:
public function getConfig(?string $option = null);
The topic ‘Fixed PHP 8.4 Deprecated Warnings’ is closed to new replies.