module-matrixrate icon indicating copy to clipboard operation
module-matrixrate copied to clipboard

PHP 8.4 compatibility

Open CptCharlesG opened this issue 1 year ago • 1 comments

Hello,

Error while complying with PHP 8.4 (Magento 2.4.8):

Deprecated Functionality: WebShopApps\MatrixRate\Model\Config\Backend\Matrixrate::__construct(): Implicitly marking parameter $resource as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/magento2/vendor/webshopapps/module-matrixrate/src/Model/Config/Backend/Matrixrate.php on line 60

Questions marks ? needs to be added to the beginning of the following lines:

        \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
        \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,

Otherwise it looks good.

CptCharlesG avatar May 01 '25 14:05 CptCharlesG

Hello,

After reviewing the issue, I can confirm that our engineering team is aware of the error. There is an active engineering ticket in the queue to address it. While I don’t have an exact ETA for the resolution at this time, I can assure you that the issue is being actively worked on.

Best, Joel

shqsupport avatar May 01 '25 22:05 shqsupport

This was resolved in the latest release, thanks for reporting!

wsajosh avatar Aug 21 '25 16:08 wsajosh