Skip to content

Commit e91b844

Browse files
committed
Use isActualFile
1 parent 933922b commit e91b844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/drivers/StatamicValetDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public function frontControllerPath($sitePath, $siteName, $uri)
5858

5959
$scriptName = '/index.php';
6060

61-
if (file_exists($sitePath.'/index.php')) {
61+
if ($this->isActualFile($sitePath.'/index.php')) {
6262
$indexPath = $sitePath.'/index.php';
6363
}
6464

65-
if (file_exists($sitePath.'/public/index.php')) {
65+
if ($this->isActualFile($sitePath.'/public/index.php')) {
6666
$indexPath = $sitePath.'/public/index.php';
6767
}
6868

0 commit comments

Comments
 (0)