Skip to content

Commit

Permalink
Php84 deprecation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Atul-glo35265 committed Dec 13, 2024
1 parent c03b9fe commit ae85b84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
],
"homepage": "http://framework.zend.com/",
"license": "BSD-3-Clause",
"repositories": [
{
"type": "vcs",
"url": "[email protected]: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",
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit ae85b84

Please sign in to comment.