a9f / lifter-recipes
There is no license information available for the latest version (dev-main) of this package.
dev-main
2024-10-08 16:25 UTC
Requires
- php: ^8.2
- a9f/lifter: dev-main
- thecodingmachine/safe: ^2.5
Requires (Dev)
- ergebnis/composer-normalize: ^2.42
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.0
- symplify/easy-coding-standard: ^12.1
- thecodingmachine/phpstan-safe-rule: ^1.2
This package is auto-updated.
Last update: 2024-10-09 16:00:51 UTC
README
This is a collection of useful small upgrade steps, to make it easier to combine a larger upgrade.
Getting started
Simply add this package to your project:
$ composer require a9f/lifter-recipes
PHP Upgrades with Rector
Use \a9f\LifterRecipes\RectorPhpSteps
to get a list of single-version upgrade steps for PHP:
<?php use a9f\Lifter\Configuration\LifterConfig; use a9f\LifterRecipes\Rector\PhpVersion; use a9f\LifterRecipes\RectorPhpSteps; return static function (LifterConfig $config) { // basic Lifter configuration goes here $config->withSteps([ ...RectorPhpSteps::getVersionUpdateSteps(PhpVersion::PHP_74, PhpVersion::PHP_84), ]); };
This will run all Rector set lists for all versions from PHP 7.4 to PHP 8.4 (= 7.4, 8.0, 8.1, 8.2, 8.3, 8.4).