Skip to content

Support PHP 8.4 #39551

Open
Open
@evs-xsarus

Description

Description

Running, for instance, the CLI gives:

evs@evs-precision3590:~/sites/sie/magento (preview/staging) $ p84 ./bin/magento 

Deprecated: sq(): Implicitly marking parameter $id as nullable is deprecated, the explicit nullable type must be used instead in /sites/sie/magento/vendor/codeception/module-sequence/src/Codeception/Util/sq.php on line 7

Call Stack:
    0.0003     674144   1. {main}() /sites/sie/magento/bin/magento:0
    0.0003     684632   2. require('/sites/sie/magento/app/bootstrap.php') /sites/sie/magento/bin/magento:14
    0.0004     691144   3. require_once('/sites/sie/magento/app/autoload.php') /sites/sie/magento/app/bootstrap.php:44
    0.0004     695032   4. include('/sites/sie/magento/vendor/autoload.php') /sites/sie/magento/app/autoload.php:51
    0.0005     702136   5. ComposerAutoloaderInit03ea9dc0c4d8b1153a18e95367a00222::getLoader() /sites/sie/magento/vendor/autoload.php:25
    0.0144    4235600   6. {closure:/sites/sie/magento/vendor/composer/autoload_real.php:37-43}($fileIdentifier = 'a3b8fb13a112e3be232ab3c07b8a884f', $file = '/sites/sie/magento/vendor/composer/../codeception/module-sequence/src/Codeception/Util/sq.php') /sites/sie/magento/vendor/composer/autoload_real.php:45

Expected behavior

Run Magento with PHP 8.4

Benefits

No response

Additional information

PHP 8.4.3 has just been released https://www.php.net/ChangeLog-8.php#8.4.3 . When can we expect to have support in Magento ? Seems like 2.4.8 will still be on PHP 8.3

https://experienceleague.adobe.com/en/docs/commerce-operations/release/notes/adobe-commerce/2-4-8

This release includes the following PHP enhancements:

PHP 8.1: This release removes PHP 8.1 compatibilty for Adobe Commerce 2.4.8. You must upgrade to PHP 8.3 before upgrading to Adobe Commerce 2.4.8.
PHP 8.2: One of the significant changes in PHP 8.2 involves the deprecation of passing null to non-nullable internal function parameters. This release addresses deprecated PHP 8.1 features in core platform components and ensures compatibility with PHP 8.2.

Release note

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions