Skip to content

Commit

Permalink
Fix DomainNameAPI type error in domainInfoToResult()
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed Sep 24, 2024
1 parent cc03bcc commit b9a372e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DomainNameApi/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ protected function domainInfoToResult(DomainInfo $domainInfo): DomainResult
->mapWithKeys(fn ($host, $i) => ['ns' . ($i + 1) => ['host' => $host]]);

$statuses = collect([$domainInfo->getStatus() ?? 'Unknown', $domainInfo->getStatusCode()])
->map(fn ($status) => ucfirst(strtolower($status)))
->filter()
->map(fn($status) => ucfirst(strtolower((string)$status)))
->unique()
->values()
->toArray();
Expand Down

0 comments on commit b9a372e

Please sign in to comment.