From ae85b8453be1d309989fc4a8ecb1a7e7d5952e7a Mon Sep 17 00:00:00 2001 From: Atul-glo35265 Date: Fri, 13 Dec 2024 13:06:21 +0530 Subject: [PATCH 1/2] Php84 deprecation fix --- composer.json | 8 +++++++- library/Zend/Log.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6dd3416..cc785c9 100644 --- a/composer.json +++ b/composer.json @@ -7,9 +7,15 @@ ], "homepage": "http://framework.zend.com/", "license": "BSD-3-Clause", + "repositories": [ + { + "type": "vcs", + "url": "git@github.com:magento-gl/magento-zend-exception.git" + } + ], "require": { "php": ">=7.0.0", - "magento/zend-exception": "^1.16" + "magento/zend-exception": "dev-php84_deprication_fix" }, "replace": { "zf1/zend-log": "^1.12", diff --git a/library/Zend/Log.php b/library/Zend/Log.php index facd73e..e13021e 100644 --- a/library/Zend/Log.php +++ b/library/Zend/Log.php @@ -116,7 +116,7 @@ class Zend_Log * * @param Zend_Log_Writer_Abstract|null $writer default writer */ - public function __construct(Zend_Log_Writer_Abstract $writer = null) + public function __construct(?Zend_Log_Writer_Abstract $writer = null) { $r = new ReflectionClass($this); $this->_priorities = array_flip($r->getConstants()); From 818c064ce155764291d82786ce4ed7e76e5dbce5 Mon Sep 17 00:00:00 2001 From: Rajesh Kumar Date: Wed, 18 Dec 2024 17:02:40 +0530 Subject: [PATCH 2/2] Update the magento/zend-exception latest version --- composer.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/composer.json b/composer.json index cc785c9..6dd3416 100644 --- a/composer.json +++ b/composer.json @@ -7,15 +7,9 @@ ], "homepage": "http://framework.zend.com/", "license": "BSD-3-Clause", - "repositories": [ - { - "type": "vcs", - "url": "git@github.com:magento-gl/magento-zend-exception.git" - } - ], "require": { "php": ">=7.0.0", - "magento/zend-exception": "dev-php84_deprication_fix" + "magento/zend-exception": "^1.16" }, "replace": { "zf1/zend-log": "^1.12",