From ae86354cc3f156d8ed2568b0520b342e47275ea2 Mon Sep 17 00:00:00 2001 From: pcmad <102814583+pcmad@users.noreply.github.com> Date: Wed, 6 Sep 2023 20:09:13 +0100 Subject: [PATCH] compataibility for php 8.2 to stop error Deprecated: Creation of dynamic property $contextSwitch = $this->_helper->getHelper('contextSwitch'); $contextSwitch->addActionContext('ajax-attribute-checker', 'json')->initContext('json'); --- library/Zend/Controller/Action.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/Zend/Controller/Action.php b/library/Zend/Controller/Action.php index 1855c45087..e2e98c2582 100644 --- a/library/Zend/Controller/Action.php +++ b/library/Zend/Controller/Action.php @@ -91,6 +91,12 @@ abstract class Zend_Controller_Action implements Zend_Controller_Action_Interfac */ public $view; + /** + * compataibility for php 8.2 to stop error Deprecated: Creation of dynamic property + * @var object + */ + public $contexts = null; + /** * Helper Broker to assist in routing help requests to the proper object *