[Scoper] Downgrade rector.php as well for PHP 7.0 void (#6177)

* [Scoper] Downgrade rector.php as well for PHP 7.0 void

* run on rector.php in rector-build as well
This commit is contained in:
Abdul Malik Ikhsan 2021-04-20 22:30:07 +07:00 committed by GitHub
parent 49ca43cf17
commit 201c73da92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -40,7 +40,9 @@ jobs:
- run: rm -rf rector-build/packages-tests rector-build/rules-tests rector-build/tests
# 2. downgrade rector
- run: sh build/downgrade-rector.sh rector-build
- run: |
php -d memory_limit=-1 bin/rector process bin rector.php --config build/config/config-downgrade.php --working-dir rector-build --ansi
sh build/downgrade-rector.sh rector-build
# 3. prefix classes
- run: sh build/build-rector-scoped.sh rector-build rector-prefixed-downgraded

View File

@ -20,7 +20,7 @@ BUILD_DIRECTORY=$1
echo "[NOTE] Running downgrade in '$BUILD_DIRECTORY' directory\n";
# 3. provide directories to downgrade; includes the rector dirs
directories=$(php -d memory_limit=-1 bin/rector downgrade-paths 7.1 --config build/config/config-downgrade.php --working-dir $BUILD_DIRECTORY --ansi)
directories=$(php -d memory_limit=-1 bin/rector downgrade-paths 7.0 --config build/config/config-downgrade.php --working-dir $BUILD_DIRECTORY --ansi)
# split array see https://stackoverflow.com/a/1407098/1348344
export IFS=";"

View File

@ -5,7 +5,7 @@
Do you have conflicts on Rector install? You're in the right place. Prefixed Rector can [be installed even on very old Symfony](https://getrector.org/blog/2020/01/20/how-to-install-rector-despite-composer-conflicts).
Do you have older PHP? Rector prefixed goes down to PHP 7.1, so you can install it even on older projects.
Do you have older PHP? Rector prefixed goes down to PHP 7.0, so you can install it even on older projects.
## Install