mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
fix rector-bootstrap dev package detection
This commit is contained in:
parent
7219b36a3f
commit
9349d12ce0
@ -1,6 +1,7 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
$isDevRepository = file_exists(__DIR__ . '/../vendor/autoload.php');
|
||||
// very dummy way to detect rector dev repository, didn't find anything better - improve if you like
|
||||
$isDevRepository = file_exists(__DIR__ . '/../README.md');
|
||||
|
||||
// load the project with Prefixed Rector
|
||||
if (defined('RECTOR_PREFIXED') && ! $isDevRepository) {
|
||||
@ -11,7 +12,7 @@ if (defined('RECTOR_PREFIXED') && ! $isDevRepository) {
|
||||
}
|
||||
|
||||
$possibleAutoloadPaths = [
|
||||
// dev repository
|
||||
// dev repository or prefixed rector
|
||||
__DIR__ . '/../vendor/autoload.php',
|
||||
// composer require
|
||||
__DIR__ . '/../../../../vendor/autoload.php',
|
||||
|
Loading…
x
Reference in New Issue
Block a user