Note
Star ⭐ this repo if you find it useful.
This package makes upgrading PHP frameworks, libraries, and tools easier.
When you update a package with Composer, the matching upgrade rules are automatically applied that Revamp will provide.
This ensures your code is updated to work with the latest package version.
Run composer update
then rector process
Revamp handle the rest!
Warning
This project is not finished yet, work in progress.
You can install the package via composer:
composer require rector/rector --dev
composer require ghostwriter/revamp --dev
Add \Ghostwriter\Revamp\Rector::REVAMP
set to your rector.php
config file:
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()->withSets([\Ghostwriter\Revamp\Rector::REVAMP]);
-
PHPUnit
- Add
@throws \Throwable
Annotation to Test Methods - Upgrade PHPUnit to 9.x
- Upgrade PHPUnit to 10.x
- Upgrade PHPUnit to 11.x
- Add
-
PHP-Parser
- Upgrade PHP-Parser to 5.x
- Parser Factory create method
- Upgrade PHP-Parser to 5.x
-
Psalm
- Upgrade Psalm to 5.x
- Upgrade Psalm to 6.x
-
Mockery
- Hamcrest To PHPUnit
- PHPUnit To Mockery
- Prophecy To Mockery
- Upgrade Mockery to 1.x
- Extend Mockery TestCase
- Use Mockery PHPUnit Integration Trait
- Upgrade Mockery to 2.x
- Should Receive To Allows
- Should Receive To Expects
-
PHP
- Replace unnecessary double quotes with single quotes
- Sort
use
statements alphabetically - Sort
ClassLike
statements alphabetically - Upgrade PHP to 8.0
- Upgrade PHP to 8.1
- Upgrade PHP to 8.2
- Upgrade PHP to 8.3
- Upgrade PHP to 8.4
- Upgrade PHP to 8.5
- Nathanael Esayeas
- Nikita Popov
nikic/php-parser
- Rector - Maintainers & Contributors
- All Contributors
Please see CHANGELOG.md for more information on what has changed recently.
Please see LICENSE for more information on the license that applies to this project.
Please see SECURITY.md for more information on security disclosure process.