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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user