Skip to content

Commit

Permalink
preload local installed versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Apr 29, 2021
1 parent 52c4888 commit 26d6fff
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@
}


// preload local InstalledVersions.php - to fix incorrect version by same-named class in phpstan
$currentlyInstalledVersions = __DIR__ . '/../../../../vendor/composer/InstalledVersions.php';
if (file_exists($currentlyInstalledVersions)) {
require_once $currentlyInstalledVersions;
}


/** @var ConsoleApplication $application */
$application = $container->get(ConsoleApplication::class);
exit($application->run());
Expand Down

0 comments on commit 26d6fff

Please sign in to comment.