mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +01:00
Add values() call to reset keys after modifying paths
This commit is contained in:
@@ -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();
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user