Skip to content

Commit

Permalink
Merge pull request #1477 from adriaanzon/fix-path-keys
Browse files Browse the repository at this point in the history
Add values() call to reset keys after modifying paths
  • Loading branch information
mattstauffer authored Jun 2, 2024
2 parents 964ec7a + b637376 commit 0844c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/Valet/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}));
}

Expand Down

0 comments on commit 0844c56

Please sign in to comment.