Skip to content

Commit 51ce47b

Browse files
committed
refactor: use base_path for artisan path resolution
1 parent 605e2af commit 51ce47b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/Install/CodeEnvironment/CodeEnvironment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getPhpPath(): string
4747

4848
public function getArtisanPath(): string
4949
{
50-
return $this->useAbsolutePathForMcp() ? getcwd().'/artisan' : './artisan';
50+
return $this->useAbsolutePathForMcp() ? base_path('artisan') : './artisan';
5151

5252
}
5353

tests/Unit/Install/CodeEnvironment/CodeEnvironmentPathResolutionTest.php renamed to tests/Feature/Install/CodeEnvironment/CodeEnvironmentPathResolutionTest.php

File renamed without changes.

0 commit comments

Comments
 (0)