Merge pull request #3745 from rectorphp/colors

This commit is contained in:
Tomas Votruba 2020-07-21 08:30:39 +02:00 committed by GitHub
commit 0bcf9bbee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -24,20 +24,20 @@ jobs:
cd test-paths
mkdir rector-dir
composer require rector/rector:@dev -d rector-dir --no-progress
composer require rector/rector:@dev -d rector-dir --no-progress --ansi
mkdir symfony-demo-dir
composer create-project symfony/symfony-demo symfony-demo-dir --dev --no-progress
composer create-project symfony/symfony-demo symfony-demo-dir --dev --no-progress --ansi
# missing for some reason
composer require doctrine/doctrine-fixtures-bundle -d symfony-demo-dir --no-progress
composer dump-autoload --no-dev -d symfony-demo-dir
composer require doctrine/doctrine-fixtures-bundle -d symfony-demo-dir --no-progress --ansi
composer dump-autoload --no-dev -d symfony-demo-dir --ansi
# 2. run an another project
rector-dir/vendor/bin/rector
rector-dir/vendor/bin/rector --ansi
cd symfony-demo-dir
../rector-dir/vendor/bin/rector
../rector-dir/vendor/bin/rector --ansi
# autoload errors due to remove --dev and mixed dependencies in /src and /tests
../rector-dir/vendor/bin/rector process src --set code-quality
../rector-dir/vendor/bin/rector process src --set code-quality --ansi

View File

@ -24,7 +24,7 @@ final class SetResolver
public function resolveSetFromInput(InputInterface $input): ?Set
{
$setOption = $input->getParameterOption(['-s', '--setOption']);
$setOption = $input->getParameterOption(['-s', '--set']);
if ($setOption === false) {
return null;
}