Skip to content

Commit

Permalink
Fixed resolving project directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Mar 10, 2024
1 parent ce9b4e4 commit bac8f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/roave-infection-static-analysis-plugin
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bac8f21

Please sign in to comment.