mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 12:29:43 +01:00
[prefixed] No polyfill on prefixed version (#6139)
This commit is contained in:
parent
bd2c7aee9f
commit
1e1c6eebd9
2
.github/workflows/build_scoped_rector.yaml
vendored
2
.github/workflows/build_scoped_rector.yaml
vendored
@ -52,7 +52,7 @@ jobs:
|
||||
php-version: 7.1
|
||||
coverage: none
|
||||
- run: composer create-project php-parallel-lint/php-parallel-lint php-parallel-lint --ansi
|
||||
- run: php-parallel-lint/parallel-lint rector-prefixed-downgraded --exclude rector-prefixed-downgraded/stubs --exclude rector-prefixed-downgraded/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/polyfill-mbstring/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/error-handler/Resources --exclude rector-prefixed-downgraded/vendor/symfony/http-kernel/Resources --exclude rector-prefixed-downgraded/vendor/symfony/polyfill/src/Mbstring/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/polyfill/src/Apcu/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/polyfill/src/Iconv/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/polyfill/src/Intl/Idn/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/polyfill/src/Intl/Normalizer/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/symfony/polyfill/src/Intl/Grapheme/bootstrap80.php --exclude rector-prefixed-downgraded/vendor/rector/rector-nette/tests
|
||||
- run: php-parallel-lint/parallel-lint rector-prefixed-downgraded --exclude rector-prefixed-downgraded/stubs --exclude rector-prefixed-downgraded/vendor/symfony/error-handler/Resources --exclude rector-prefixed-downgraded/vendor/symfony/http-kernel/Resources --exclude rector-prefixed-downgraded/vendor/rector/rector-nette/tests
|
||||
|
||||
# 5. copy repository meta files
|
||||
- run: |
|
||||
|
@ -40,9 +40,6 @@ wget https://github.com/humbug/php-scoper/releases/download/0.14.0/php-scoper.ph
|
||||
php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages rules vendor composer.json --output-dir "../$RESULT_DIRECTORY" --config scoper.php --force --ansi --working-dir "$BUILD_DIRECTORY"
|
||||
|
||||
|
||||
# add polyfill for downgraded code
|
||||
composer require symfony/polyfill-php80 symfony/polyfill-php74 symfony/polyfill-php73 symfony/polyfill-php72 --update-no-dev --working-dir $RESULT_DIRECTORY --ansi
|
||||
|
||||
note "Dumping Composer Autoload"
|
||||
composer dump-autoload --working-dir "$RESULT_DIRECTORY" --ansi --optimize --classmap-authoritative --no-dev
|
||||
|
||||
|
@ -55,9 +55,6 @@ final class DowngradeRectorConfig
|
||||
'vendor/symfony/cache/*',
|
||||
'nette/caching/src/Bridges/*',
|
||||
|
||||
// always excluded
|
||||
'*vendor/symfony/polyfill*/bootstrap80.php',
|
||||
|
||||
// This class has an issue for PHP 7.1:
|
||||
// https://github.com/rectorphp/rector/issues/4816#issuecomment-743209526
|
||||
// It doesn't happen often, and Rector doesn't use it, so then
|
||||
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Core\ValueObject\PhpVersion;
|
||||
use Rector\Downgrade73\Rector\FuncCall\DowngradeArrayKeyFirstLastRector;
|
||||
use Rector\DowngradePhp73\Rector\FuncCall\DowngradeTrailingCommasInFunctionCallsRector;
|
||||
use Rector\DowngradePhp73\Rector\FuncCall\SetCookieOptionsArrayToArgumentsRector;
|
||||
use Rector\DowngradePhp73\Rector\List_\DowngradeListReferenceAssignmentRector;
|
||||
@ -18,5 +19,6 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$services->set(DowngradeFlexibleHeredocSyntaxRector::class);
|
||||
$services->set(DowngradeListReferenceAssignmentRector::class);
|
||||
$services->set(DowngradeTrailingCommasInFunctionCallsRector::class);
|
||||
$services->set(DowngradeArrayKeyFirstLastRector::class);
|
||||
$services->set(SetCookieOptionsArrayToArgumentsRector::class);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user