Checks and fixes Drupal deprecated code.
[IMPORTANT] This project is an experiment to figure out how is complex to implement automatically migration of deprecated Drupal7/8 code blocks which are going to be removed in Drupal 9.
Manual checks of the results are required.
Please follow this guide to understand how this project is working and how you can contribute into it.
- PHP >=7.1
To get the latest master version of this project you can install it via composer:
php myapp/composer.phar create-project dario_swain/drupal-fixer -s dev
cd drupal-fixer
vendor/bin/rector -V
After this you should get Rector version in console like:
Rector v0.5.16
- Clone or fork and clone this repository.
- Run
composer install
- That's it you can use Rector via
vendor/bin/rector -V
php ../../vendor/bin/rector -c ../../configs/drupal-9-deprecations.yaml process -a vendor/autoload.php modules/contrib/simple_amp/src/ --dry-run
Submit issues and feature requests here: https://github.com/DarioSwain/DrupalFixer/issues.