quantum-php-project
quantum-php-project copied to clipboard
Raise the minimum PHP version to 8.2 and update the dependencies
Summary
Bring the starter project in line with framework 3.2.0 (quantum-php/framework#687): require PHP 8.2 and move every Composer dependency to its newest version that runs on PHP 8.2.
Why
- Framework 3.2.0 requires PHP 8.2 and Symfony 7.4. The project as it is cannot install it: its
symfony/processandsymfony/yaml^5.4conflict withsymfony/console7.4, which needssymfony/process6.4 or newer. - PHPUnit 9 is no longer maintained.
Scope
One checkpoint per item, each one commit:
- PHP 8.2:
composer.json"php": "^8.2"; CI matrix 8.2, 8.3 and 8.4 (8.1 is dropped);.scrutinizer.ymlPHP 8.2; PHPStanphpVersion80200; RectorLevelSetList::UP_TO_PHP_82; the requirement inREADME.md("PHP 8.2 or newer"). - Symfony 7.4:
symfony/processandsymfony/yaml^5.4to^7.4(the LTS line the framework uses; 8.x needs PHP 8.4). - Tests: dev
phpunit/phpunit^9.0to^11.5(12 needs PHP 8.3), withphpunit.xmland the tests' doc-comment markers moved to attributes;mockery/mockery^1.2to^1.6. - The framework constraint:
quantum/framework^3.1.2to3.2.*@devuntil 3.2.0 is released, then^3.2.0in the release PR. - Everything else is checked and stays:
fakerphp/faker,bluemmb/faker-picsum-photos-providerandottaviano/faker-gravatarhave no newer major;friendsofphp/php-cs-fixer,rector/rectorandphpstan/phpstanare current within their constraints.
Order
This comes after quantum-php/framework#687 is merged into 3.2.x, because the project needs that code to install.
Breaking changes
- PHP 8.1 can no longer install the project. Applications on 8.1 stay on 3.1.x.
- An application created from the project that uses
symfony/processorsymfony/yamldirectly gets their 7.4 versions.