From b637376b2e06a62e99a80dd70436430d4f60c08f Mon Sep 17 00:00:00 2001 From: Adriaan Zonnenberg Date: Fri, 22 Mar 2024 21:47:46 +0100 Subject: [PATCH] Add values() call to reset keys after modifying paths --- cli/Valet/Configuration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/Valet/Configuration.php b/cli/Valet/Configuration.php index b7061a311..da876c7f6 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(); })); }