1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Change flow

This commit is contained in:
Matt Stauffer
2023-04-26 09:36:37 -04:00
parent dae5773551
commit 2497181106

View File

@@ -152,12 +152,13 @@ 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 json_decode($this->files->get($this->path()), true, 512, JSON_THROW_ON_ERROR);
}
/**
* Update a specific key in the configuration file.
*/