mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: getTld return type
This commit is contained in:
@@ -170,7 +170,7 @@ readonly class RDAPService
|
|||||||
return $domain;
|
return $domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getTld($domain): ?object
|
private function getTld($domain): Tld
|
||||||
{
|
{
|
||||||
if (!str_contains($domain, '.')) {
|
if (!str_contains($domain, '.')) {
|
||||||
$tldEntity = $this->tldRepository->findOneBy(['tld' => '']);
|
$tldEntity = $this->tldRepository->findOneBy(['tld' => '']);
|
||||||
|
|||||||
Reference in New Issue
Block a user