Skip to content

PHP 8 Compatibility

Sergii Ivashchenko edited this page Feb 1, 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 Functionality
wikimedia/lessphp 1.8.2 v3.1.0 https://github.com/magento/magento2/pull/31579 Less processing
phpstan/phpstan 0.12.23 0.12.69 https://github.com/magento/magento2/pull/30581 Static tests
pelago/emogrifier 3.1.0 5.0.0 https://github.com/magento/magento2/pull/31772 Email styles
laminas/laminas-validator 2.13.4 2.14.4 https://github.com/magento/magento2/pull/31797 Url validation
tedivm/jshrink 1.3.3 1.4.0 https://github.com/magento/magento2/pull/31800 Javascript minifiaction

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