Skip to content

Commit 0844c56

Browse files
authored
Merge pull request #1477 from adriaanzon/fix-path-keys
Add values() call to reset keys after modifying paths
2 parents 964ec7a + b637376 commit 0844c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/Valet/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function addPath(string $path, bool $prepend = false): void
117117
$this->write(tap($this->read(), function (&$config) use ($path, $prepend) {
118118
$method = $prepend ? 'prepend' : 'push';
119119

120-
$config['paths'] = collect($config['paths'])->{$method}($path)->unique()->all();
120+
$config['paths'] = collect($config['paths'])->{$method}($path)->unique()->values()->all();
121121
}));
122122
}
123123

0 commit comments

Comments
 (0)