mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Ignore invalid paths (#1478)
This commit is contained in:
@@ -160,6 +160,10 @@ public function sitePath(string $siteName): ?string
|
||||
$domain = static::domainFromSiteName($siteName);
|
||||
|
||||
foreach ($this->config['paths'] as $path) {
|
||||
if (! is_dir($path)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$handle = opendir($path);
|
||||
|
||||
if ($handle === false) {
|
||||
|
||||
Reference in New Issue
Block a user