From 9076d714f4f2961b203362e193e194e20efffd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robbert=20M=C3=BCller?= Date: Tue, 28 Aug 2018 08:47:50 +0200 Subject: [PATCH] Fixes problem with creating an MX record Fixes #60 php api expects a string and cloudflare api expects a int this keeps everybody happy without changing API's --- src/Endpoints/DNS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Endpoints/DNS.php b/src/Endpoints/DNS.php index ffc7feb..dc57566 100644 --- a/src/Endpoints/DNS.php +++ b/src/Endpoints/DNS.php @@ -52,7 +52,7 @@ class DNS implements API } if (!empty($priority)) { - $options['priority'] = $priority; + $options['priority'] = (int)$priority; } $user = $this->adapter->post('zones/' . $zoneID . '/dns_records', $options);