mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
move stubs autoload after class autoload
This commit is contained in:
parent
3e353feb88
commit
cc75b8b0af
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user