diff --git a/src/Downloader.php b/src/Downloader.php index b4f5b6d..ee79ffb 100644 --- a/src/Downloader.php +++ b/src/Downloader.php @@ -160,7 +160,7 @@ protected function fetchCertificates(string $hostName): array ); if (! empty($errorDescription)) { - throw $this->generateFailureException($connectTo, $errorDescription); + throw $this->buildFailureException($connectTo, $errorDescription); } if (! $client) { @@ -180,7 +180,7 @@ protected function fetchCertificates(string $hostName): array return $response; } - protected function generateFailureException(string $hostName, string $errorDescription) + protected function buildFailureException(string $hostName, string $errorDescription) { if (str_contains($errorDescription, 'getaddrinfo failed')) { return CouldNotDownloadCertificate::hostDoesNotExist($hostName);