diff --git a/src/Endpoints/CustomHostnames.php b/src/Endpoints/CustomHostnames.php index 7e01cf2..219cfbb 100644 --- a/src/Endpoints/CustomHostnames.php +++ b/src/Endpoints/CustomHostnames.php @@ -129,8 +129,17 @@ class CustomHostnames implements API * @param string $customOriginServer * @return \stdClass */ - public function updateHostname(string $zoneID, string $hostnameID, string $sslMethod = '', string $sslType = '', array $sslSettings = [], string $customOriginServer = '', ?bool $wildcard = null, string $bundleMethod = '', string $customKey = '', string $customCertificate = ''): \stdClass - { + public function updateHostname( + string $zoneID, + string $hostnameID, + string $sslMethod = '', + string $sslType = '', + array $sslSettings = [], + string $customOriginServer = '', + ?bool $wildcard = null, + string $bundleMethod = '', + string $customKey = '', + string $customCertificate = ''): \stdClass { $query = []; if (!empty($sslMethod)) { diff --git a/tests/Endpoints/CustomHostnamesTest.php b/tests/Endpoints/CustomHostnamesTest.php index d8be09a..2c32494 100644 --- a/tests/Endpoints/CustomHostnamesTest.php +++ b/tests/Endpoints/CustomHostnamesTest.php @@ -192,7 +192,18 @@ CERTIFICATE; 'http3' => 'on', 'min_tls_version' => '1.2' ]; - $result = $zones->updateHostname('023e105f4ecef8ad9ca31a8372d0c353', '0d89c70d-ad9f-4843-b99f-6cc0252067e9', 'http', 'dv', $sslSettings, 'origin.example.com', true, 'optimal', $customKey, $customCertificate); + $result = $zones->updateHostname( + '023e105f4ecef8ad9ca31a8372d0c353', + '0d89c70d-ad9f-4843-b99f-6cc0252067e9', + 'http', + 'dv', + $sslSettings, + 'origin.example.com', + true, + 'optimal', + $customKey, + $customCertificate + ); $this->assertObjectHasAttribute('id', $result); $this->assertObjectHasAttribute('hostname', $result);