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