From ab122fb81ab398f4c83ed3bdc73bafb46791b7ea Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 17 Jul 2023 22:24:45 +0200 Subject: [PATCH] update dis --- .github/workflows/downgraded_release.yaml | 2 +- build/build-scoped.sh | 2 +- prefix-code.sh | 4 ++-- rector.php | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/downgraded_release.yaml b/.github/workflows/downgraded_release.yaml index c4b71339..6bb3b07d 100644 --- a/.github/workflows/downgraded_release.yaml +++ b/.github/workflows/downgraded_release.yaml @@ -34,7 +34,7 @@ jobs: - run: composer require rector/rector --working-dir rector-local --ansi # downgrade to PHP 7.2 - - run: rector-local/vendor/bin/rector process bin src packages config vendor --config build/rector-downgrade-php-72.php --ansi + - run: rector-local/vendor/bin/rector process app bin vendor --config build/rector-downgrade-php-72.php --ansi # clear the dev files - run: rm -rf tests ecs.php phpstan.neon phpunit.xml .gitignore .editorconfig diff --git a/build/build-scoped.sh b/build/build-scoped.sh index 77283816..d76196e5 100755 --- a/build/build-scoped.sh +++ b/build/build-scoped.sh @@ -37,7 +37,7 @@ wget https://github.com/humbug/php-scoper/releases/download/0.17.5/php-scoper.ph mkdir "$RESULT_DIRECTORY" -p # Work around possible PHP memory limits -php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages stubs vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY" +php -d memory_limit=-1 php-scoper.phar add-prefix app bin vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY" note "Show prefixed files in '$RESULT_DIRECTORY'" ls -l $RESULT_DIRECTORY diff --git a/prefix-code.sh b/prefix-code.sh index 1d087711..b45ca60c 100644 --- a/prefix-code.sh +++ b/prefix-code.sh @@ -31,11 +31,11 @@ wget https://github.com/humbug/php-scoper/releases/download/0.17.5/php-scoper.ph note "Running php-scoper" # Work around possible PHP memory limits -php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code +php -d memory_limit=-1 php-scoper.phar add-prefix app bin vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code # the output code is in "/scoped-code", lets move it up # the local directories have to be empty to move easily -rm -r bin config src vendor composer.json packages stubs +rm -r app bin vendor composer.json mv scoped-code/* . note "Dumping Composer Autoload" diff --git a/rector.php b/rector.php index a27c01db..611cac8e 100644 --- a/rector.php +++ b/rector.php @@ -22,7 +22,6 @@ $rectorConfig->paths([ __DIR__ . '/app', - __DIR__ . '/config', __DIR__ . '/tests', ]);