Skip to content

Commit

Permalink
Merge pull request #494 from kukulich/project-directory
Browse files Browse the repository at this point in the history
Fixed resolving project directory
  • Loading branch information
Ocramius authored Mar 10, 2024
2 parents ce9b4e4 + bac8f21 commit 3cb3284
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 3cb3284

Please sign in to comment.