mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Change flow
This commit is contained in:
@@ -152,10 +152,11 @@ public function prune(): void
|
||||
*/
|
||||
public function read(): array
|
||||
{
|
||||
if ($this->files->exists($this->path())) {
|
||||
return json_decode($this->files->get($this->path()), true, 512, JSON_THROW_ON_ERROR);
|
||||
if (! $this->files->exists($this->path())) {
|
||||
return [];
|
||||
}
|
||||
return [];
|
||||
|
||||
return json_decode($this->files->get($this->path()), true, 512, JSON_THROW_ON_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user