diff --git a/src/Utils/Composer.php b/src/Utils/Composer.php index cfe86e535..9ea22fc0c 100644 --- a/src/Utils/Composer.php +++ b/src/Utils/Composer.php @@ -32,7 +32,8 @@ public static function vendorDir(?string $path = null): string public static function autoloadPath(): string { /** - * If `$_composer_autoload_path` is undefined, fall back to `vendor/autoload.php` in the parent project's directory. + * If `$_composer_autoload_path` is undefined, fall back to `vendor/autoload.php` + * in the parent project's directory. * * @link https://getcomposer.org/doc/articles/vendor-binaries.md#finding-the-composer-autoloader-from-a-binary */ @@ -40,7 +41,7 @@ public static function autoloadPath(): string if (isset($_composer_autoload_path)) { $autoloadPath = $_composer_autoload_path; } else { - // We use the Codecept class to find the location of Composer's vendor-dir, even if a project has renamed it. + // We use the Codecept class to find the location of Composer's vendor-dir. $vendorDir = dirname((string)(new \ReflectionClass(Codecept::class))->getFilename(), 5); $autoloadPath = $vendorDir . DIRECTORY_SEPARATOR . 'autoload.php'; }