mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 03:40:50 +00:00
Back to php-scoper 0.14 with scoping from php 8.0 (#2370)
This commit is contained in:
parent
0fd045cf35
commit
a2d6da8b4e
11
.github/workflows/build_scoped_rector.yaml
vendored
11
.github/workflows/build_scoped_rector.yaml
vendored
|
@ -58,6 +58,17 @@ jobs:
|
||||||
# 2. downgrade rector
|
# 2. downgrade rector
|
||||||
- run: sh build/downgrade-rector.sh rector-build
|
- run: sh build/downgrade-rector.sh rector-build
|
||||||
|
|
||||||
|
# scoped using php-scoper.phar which require #[\ReturnTypeWillChange] inside so use php 8.0 for scoping
|
||||||
|
-
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: 8.0
|
||||||
|
coverage: none
|
||||||
|
|
||||||
|
# fixes https://github.com/rectorphp/rector/pull/4559/checks?check_run_id=1359814403, see https://github.com/shivammathur/setup-php#composer-github-oauth
|
||||||
|
env:
|
||||||
|
COMPOSER_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
||||||
# 3. prefix classes
|
# 3. prefix classes
|
||||||
- run: sh build/build-rector-scoped.sh rector-build rector-prefixed-downgraded
|
- run: sh build/build-rector-scoped.sh rector-build rector-prefixed-downgraded
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ rm -f "$BUILD_DIRECTORY/phpstan-for-rector.neon"
|
||||||
|
|
||||||
# 2. scope it
|
# 2. scope it
|
||||||
note "Running scoper to $RESULT_DIRECTORY"
|
note "Running scoper to $RESULT_DIRECTORY"
|
||||||
wget https://github.com/humbug/php-scoper/releases/download/0.17.2/php-scoper.phar -N --no-verbose
|
wget https://github.com/humbug/php-scoper/releases/download/0.14.0/php-scoper.phar -N --no-verbose
|
||||||
|
|
||||||
# Work around possible PHP memory limits
|
# Work around possible PHP memory limits
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user