Skip to content

Commit 9d6540d

Browse files
committed
fix: php:which command, it was only obtaining the parked sites and not the linked sites, so not all sites were obtained.
1 parent c2b4964 commit 9d6540d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/Valet/Site.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function customPhpVersion($url) {
329329
* @return array|null [ "site" => [sitename], "php" => [PHP version] ]
330330
*/
331331
public function whichPhp($cwd) {
332-
$currentSite = $this->parked()->filter(function ($site, $key) use ($cwd) {
332+
$currentSite = $this->parked()->merge($this->links())->filter(function ($site, $key) use ($cwd) {
333333
if ($key === $cwd) return $site;
334334
});
335335

0 commit comments

Comments
 (0)