Closed gnanet closed 3 years ago
Branch mailzu-ng-php72 contains first steps to solve this
Moving to composer, as other issues going to be solved by replacing old clases with uptodate composer-packages
The current manual ordered autoloader needs to switch to composer based one, found this article, and the first, relative simple way seems enough :
https://www.phptutorial.net/php-oop/php-composer-autoload/#shcb-language-6
Introduction
During the first tests to upgrade the code to either PHP 7.4 or 7.3 using rector-php, the resulting code seem to contain bugs, because the way rector traversed the code, it found some functions only later than their stub-function variant ( and the stub was intentionally not requiring parameters), and that lead to parameter-removal in some parts of the code.
Proposal
To ensure that a code-upgrade results in smooth working code, the loading-order of classes, and include-order of function-libraries has to be traced, and restructured.