From 83fdbd8fb89ef4360c52e83c68a2fc550ee8690d Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 27 Apr 2023 21:28:35 +0700 Subject: [PATCH] [Preload] Add preload-split-package.php to bin/rector.php to fix overlap php-doc-parser --- bin/rector.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/rector.php b/bin/rector.php index cc6bf5dc2d5..ae91f222b06 100755 --- a/bin/rector.php +++ b/bin/rector.php @@ -121,6 +121,11 @@ public function loadIfExistsAndNotLoadedYet(string $filePath): void require_once __DIR__ . '/../preload.php'; } +// require rector-src on split packages +if (file_exists(__DIR__ . '/../preload-split-package.php') && is_dir(__DIR__ . '/../../../../vendor')) { + require_once __DIR__ . '/../preload-split-package.php'; +} + require_once __DIR__ . '/../src/constants.php'; $autoloadIncluder->loadIfExistsAndNotLoadedYet(__DIR__ . '/../vendor/scoper-autoload.php');