From f8152eac749af9526fc8a715deda621127ec9b3e Mon Sep 17 00:00:00 2001 From: Herbert de Oliveira Date: Thu, 14 May 2026 13:34:08 -0300 Subject: [PATCH 1/2] fix: typing error when instaling on php 8.4 --- Helper/Data.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/Data.php b/Helper/Data.php index 935d714..bed52eb 100644 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -369,7 +369,7 @@ public function unserializeData($data) /** * @param array|null $data */ - public function saveResultQuotes(array $data = null) + public function saveResultQuotes(?array $data = null) { $this->customerSession->setData(self::RESULT_QUOTES, $data); } @@ -539,7 +539,7 @@ protected function getTrack($trackingUrl) * @return array|null * @throws \Magento\Framework\Exception\NoSuchEntityException */ - public function getAdditionalInformation(array $additional = null) + public function getAdditionalInformation(?array $additional = null) { $result = [ 'client_type' => $this->getCustomerGroup(), From a000d4190d38c1145ac57eb9f6767b1add9492e8 Mon Sep 17 00:00:00 2001 From: Herbert de Oliveira Date: Mon, 18 May 2026 12:57:21 -0300 Subject: [PATCH 2/2] fix: fix typing erros on contructor of some especific classes --- Model/Config/CronConfig.php | 4 ++-- Model/ResourceModel/Shipment/Collection.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Model/Config/CronConfig.php b/Model/Config/CronConfig.php index 48b56da..6921d9c 100644 --- a/Model/Config/CronConfig.php +++ b/Model/Config/CronConfig.php @@ -50,8 +50,8 @@ public function __construct( \Magento\Framework\App\Config\ScopeConfigInterface $config, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Magento\Framework\App\Config\ValueFactory $configValueFactory, - \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, - \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, + \Magento\Framework\Model\ResourceModel\AbstractResource|null $resource = null, + \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection = null, $runModelPath = '', array $data = [] ) { diff --git a/Model/ResourceModel/Shipment/Collection.php b/Model/ResourceModel/Shipment/Collection.php index 3c266ad..2928aa4 100644 --- a/Model/ResourceModel/Shipment/Collection.php +++ b/Model/ResourceModel/Shipment/Collection.php @@ -43,8 +43,8 @@ public function __construct( FetchStrategyInterface $fetchStrategy, ManagerInterface $eventManager, StoreManagerInterface $storeManager, - AdapterInterface $connection = null, - AbstractDb $resource = null + AdapterInterface|null $connection = null, + AbstractDb|null $resource = null ) { $this->_init(