diff --git a/src/Appwrite/Network/Cors.php b/src/Appwrite/Network/Cors.php index e21c660a32..593c82ab24 100644 --- a/src/Appwrite/Network/Cors.php +++ b/src/Appwrite/Network/Cors.php @@ -48,7 +48,7 @@ final class Cors /** * Build CORS headers for a given request origin. * - * @return array + * @return array */ public function headers(string $origin): array { @@ -57,7 +57,7 @@ final class Cors self::HEADER_ALLOW_HEADERS => implode(', ', $this->allowedHeaders), self::HEADER_EXPOSE_HEADERS => implode(', ', $this->exposedHeaders), self::HEADER_ALLOW_CREDENTIALS => $this->allowCredentials ? 'true' : 'false', - self::HEADER_MAX_AGE => (string) $this->maxAge, + self::HEADER_MAX_AGE => $this->maxAge, ]; // Wildcard allow-all