mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-08 20:22:24 +00:00
Ensure autoloader is loaded in globally installed Rector (#1683)
* ensure autoloader is loaded in globally installed Rector * change approach to see if unit tests are happier * [TypeDeclaration] Add symfony route annotation support (#1580) * temporary pin symplify/easy-ci to 10.0.9 Co-authored-by: Tomas Votruba <tomas.vot@gmail.com> Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
This commit is contained in:
parent
99da81012c
commit
72de31e70f
|
@ -91,10 +91,13 @@ final class AutoloadIncluder
|
|||
/**
|
||||
* In case Rector is installed as vendor dependency,
|
||||
* this autoloads the project vendor/autoload.php, including Rector
|
||||
*
|
||||
* This also accounts for running a globally installed Rector from the global composer vendor dir
|
||||
*/
|
||||
public function autoloadProjectAutoloaderFile(): void
|
||||
{
|
||||
$this->loadIfExistsAndNotLoadedYet(__DIR__ . '/../../../autoload.php');
|
||||
$this->loadIfExistsAndNotLoadedYet(getcwd() . '/vendor/autoload.php');
|
||||
}
|
||||
|
||||
public function autoloadFromCommandLine(): void
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
"rector/phpstan-rules": "^0.4.15",
|
||||
"spatie/enum": "^3.10",
|
||||
"symplify/coding-standard": "^10.0.9",
|
||||
"symplify/easy-ci": "^10.0.9",
|
||||
"symplify/easy-ci": "10.0.9",
|
||||
"symplify/easy-coding-standard": "^10.0.9",
|
||||
"symplify/easy-testing": "^10.0.9",
|
||||
"symplify/monorepo-builder": "^10.0.9",
|
||||
|
|
Loading…
Reference in New Issue
Block a user