PHP 8.2 compatibility patch
-
Hello Humans,
I am using this plugin and there are things more recent versions of PHP moan about. It’s the dynamic creation of properties in classes. Since the GitHub seems to be deleted, I am trying to post my patch here.
In all-in-one-favicon.php, find:
class AllInOneFavicon {
Add after that:
public $aioFaviconSettings;
public $aioFaviconFrontendMap;
public $aioFaviconBackendMap;In includes/aio-favicon-backend.php, find:
class AioFaviconBackend {
Add after that:
public $aioFaviconSettings;
public $aioFaviconDefaultSettings;
public $donationLoader;
public $faviconRenderHelper;
public $faviconFrontendMap;
public $faviconBackendMap;
public $faviconMap;In includes/favicon-render-helper.php, find:
class FaviconRenderHelper {
Add after that:
public $aioFaviconSettings;
public $aioFaviconType;It is deprecated now, so it will be removed at some point in the future but it still fills the logs if you are on PHP 8.2 or newer.
Maybe that helps someone, maybe this even makes its way into the code.
- The topic ‘PHP 8.2 compatibility patch’ is closed to new replies.