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');