diff --git a/cli/Valet/Configuration.php b/cli/Valet/Configuration.php index b7061a31..da876c7f 100644 --- a/cli/Valet/Configuration.php +++ b/cli/Valet/Configuration.php @@ -117,7 +117,7 @@ public function addPath(string $path, bool $prepend = false): void $this->write(tap($this->read(), function (&$config) use ($path, $prepend) { $method = $prepend ? 'prepend' : 'push'; - $config['paths'] = collect($config['paths'])->{$method}($path)->unique()->all(); + $config['paths'] = collect($config['paths'])->{$method}($path)->unique()->values()->all(); })); }