From 026c65a1ccab647c8fd538bc7dd08cb7028992e7 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 10 Oct 2026 15:40:52 +0200 Subject: [PATCH] Early downgrade RuleDoc classes in scoped build, fix PHP 7.4 lint --- .github/workflows/build_scoped_rector.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_scoped_rector.yaml b/.github/workflows/build_scoped_rector.yaml index e8f9707e7a4..80c0b2e4ade 100644 --- a/.github/workflows/build_scoped_rector.yaml +++ b/.github/workflows/build_scoped_rector.yaml @@ -54,8 +54,9 @@ jobs: # to remove dev dependencies - run: composer install --no-dev --ansi - # early downgrade individual functions - - run: bin/rector process src/functions/node_helper.php -c build/config/config-downgrade.php --ansi + # early downgrade individual functions and the autoloaded RuleDoc classes, so the class-alias + # bootstrap can load them under the PHP 7.4 lint step without a parse error + - run: bin/rector process src/functions/node_helper.php src/RuleDoc -c build/config/config-downgrade.php --ansi # 1. copy files to $NESTED_DIRECTORY directory Exclude the scoped/nested directories to prevent rsync from copying in a loop - run: rsync --exclude rector-build -av * rector-build --quiet