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

Write tests for Server.php

This commit is contained in:
Matt Stauffer
2022-12-21 17:45:34 -05:00
parent f344592dd0
commit 65b629db7f
6 changed files with 163 additions and 65 deletions

View File

@@ -66,7 +66,7 @@ private function getLinkNameByCurrentDir(): ?string
public function host(string $path): ?string
{
foreach ($this->files->scandir($this->sitesPath()) as $link) {
if ($resolved = realpath($this->sitesPath($link)) === $path) {
if (realpath($this->sitesPath($link)) === $path) {
return $link;
}
}