From 66ee8b779ba305c75f47eda041aea24926061f0e Mon Sep 17 00:00:00 2001 From: Marc Rodriguez <31536387+mrodespin@users.noreply.github.com> Date: Thu, 12 May 2022 14:27:21 +0200 Subject: [PATCH] Update Abstract.php Fix issue in php 8.1 - Return type of Zend_Mail_Storage_Abstract::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in magento/vendor/magento/zendframework1/library/Zend/Mail/Storage/Abstract.php:218 --- library/Zend/Mail/Storage/Abstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Mail/Storage/Abstract.php b/library/Zend/Mail/Storage/Abstract.php index d96da2c742..8e555764fb 100644 --- a/library/Zend/Mail/Storage/Abstract.php +++ b/library/Zend/Mail/Storage/Abstract.php @@ -215,7 +215,7 @@ abstract public function getNumberByUniqueId($id); * * @return int */ - public function count() + public function count(): int { return $this->countMessages(); }