1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Fix prioritization in phpRcVersion

This commit is contained in:
Matt Stauffer
2023-02-07 18:43:49 -05:00
parent 4837648a35
commit 6d785d9349

View File

@@ -1187,14 +1187,12 @@ public function phpRcVersion($site, $cwd = null)
{
if ($cwd) {
$path = $cwd.'/.valetphprc';
}
if ($site = $this->parked()->merge($this->links())->where('site', $site)->first()) {
} elseif ($site = $this->parked()->merge($this->links())->where('site', $site)->first()) {
$path = data_get($site, 'path').'/.valetphprc';
}
if (! isset($path)) {
return;
return null;
}
if ($this->files->exists($path)) {