move stubs autoload after class autoload

This commit is contained in:
TomasVotruba 2020-02-07 07:13:53 +01:00
parent 3e353feb88
commit cc75b8b0af

View File

@ -19,15 +19,16 @@ error_reporting(E_ALL);
ini_set('display_errors', 'stderr');
gc_disable();
// temporary hackaround
include_once 'phar://vendor/phpstan/phpstan/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php';
// Require Composer autoload.php
$autoloadIncluder = new AutoloadIncluder();
$autoloadIncluder->includeCwdVendorAutoloadIfExists();
$autoloadIncluder->autoloadProjectAutoloaderFile('/../../autoload.php');
$autoloadIncluder->includeDependencyOrRepositoryVendorAutoloadIfExists();
// temporary hackaround
// @see https://github.com/rectorphp/rector/issues/2749#issuecomment-582312655
include_once 'phar://vendor/phpstan/phpstan/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php';
try {
$rectorConfigsResolver = new RectorConfigsResolver();
$configs = $rectorConfigsResolver->provide();