Skip to content

Error when installing on PHP 8.4 #43

@lincowj

Description

@lincowj

Description
The bug occurs because, in PHP 8.4, the ability to implicitly mark a typed variable as null is deprecated.

Steps to Reproduce

  1. Install the module on Magento 2.4.8 using PHP 8.4
  2. Run bin/magento setup:upgrade

Expected Behavior
The setup must run smoothly.

Actual Behavior
The following error is thrown:

Deprecated Functionality: Intelipost\Shipping\Helper\Data::saveResultQuotes(): Implicitly marking parameter $data as nullable is deprecated, the explicit nullable type must be used instead in .../vendor/intelipost/magento2/Helper/Data.php on line 336

Environment

  • Magento Version: 2.4.8-p1
  • PHP Version: 8.4
  • Operating System: Ubuntu
  • Browser (if applicable):
  • Module Version: 2.9.1
  • Other Relevant Extensions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions