Skip to content

PHP 8 Compatibility

Sergii Ivashchenko edited this page Jan 29, 2021 · 20 revisions

Overview

To ensure that our journey to PHP 8 compatibility is visible and transparent, we are launching the Magneto PHP 8 Compatibility Community Project!

The mainline for the project is php8-develop branch that should be available for all affected Magento repositories.

Dependency versions updated in php8-develop branch

Dependency 2.4-develop version php8-develop version Pull request
wikimedia/lessphp 1.8.2 v3.1.0 https://github.com/magento/magento2/pull/31579
phpstan/phpstan 0.12.23 0.12.69 https://github.com/magento/magento2/pull/30581

Backward incompatible changes list

Description Dependency Pull request
Magento\Email\Model\Template\Filter constructor parameters changed pelago/emogrifier https://github.com/magento/magento2/pull/31772
Magento\Email\Model\Template\Filter::getCssFilesContent function throws exception instead of returning exception message in the content pelago/emogrifier https://github.com/magento/magento2/pull/31772
Magento\Email\Model\Template\Filter::$emogrifier protected property has been removed pelago/emogrifier https://github.com/magento/magento2/pull/31772