Open JanMikes opened 4 months ago
I believe the correct fix would be modify src/Mirakl/autoload.php
to add else branch to the if (isPHP7()) {
to autoload files which are excluded from autoloading.
Thanks for your feedback. @JanMikes
Actually, the compatibility with PHP 7 is going to be removed in coming v1.20.5 and therefore it will fix the issue using the --classmap-authoritative
option of Composer.
Once the composer is installed with
composer install --classmap-authoritative
, there is errorClass "Mirakl\Core\Domain\MiraklObject" not found
(there are errors for each class that is in composer.json in exclude).Code to reproduce:
Package version
1.20.2
installed via composer.Working workaround is to add the excluded files to composer.json to autoload: