Fix bug in Device::name() (#13543)

This commit is contained in:
Tony Murray
2021-11-19 12:21:56 -06:00
committed by GitHub
parent 790c4b3402
commit 716725758d

View File

@@ -188,9 +188,9 @@ class Device extends BaseModel
$display = $this->displayName();
if (! Str::contains($display, $this->hostname)) {
return $this->hostname;
return (string) $this->hostname;
} elseif (! Str::contains($display, $this->sysName)) {
return $this->sysName;
return (string) $this->sysName;
}
return '';