Skip to content

Commit

Permalink
fix: solve root project dir is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
praswicaksono committed Nov 13, 2024
1 parent d4ea2db commit 222af8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public function getProjectDir(): string
$this->projectDir = $dir;
}

if ($this->projectDir === '.') {
$this->projectDir = \dirname(__DIR__);
}

return $this->projectDir;
}
}

0 comments on commit 222af8a

Please sign in to comment.