From bac8f214b2358e3c0b9ac3e5ed685d443e18099c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Hansl=C3=ADk?= Date: Sun, 10 Mar 2024 11:44:49 +0100 Subject: [PATCH] Fixed resolving project directory --- bin/roave-infection-static-analysis-plugin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/roave-infection-static-analysis-plugin b/bin/roave-infection-static-analysis-plugin index 5fda677..09b91cb 100755 --- a/bin/roave-infection-static-analysis-plugin +++ b/bin/roave-infection-static-analysis-plugin @@ -30,9 +30,9 @@ use function var_export; (static function (): void { $projectPath = (static function () : string { $projectDirectoryCandidates = [ - 'current-working-directory' => getcwd(), - 'installed-as-composer-dependency' => __DIR__ . '/../../..', + 'installed-as-composer-dependency' => __DIR__ . '/../../../..', 'installed-as-project' => __DIR__ . '/..', + 'current-working-directory' => getcwd(), ]; foreach ($projectDirectoryCandidates as $candidatePath) {