diff --git a/src/Fastly/Types/FastlyCertificates.php b/src/Fastly/Types/FastlyCertificates.php index 277963d..8e4f8bb 100644 --- a/src/Fastly/Types/FastlyCertificates.php +++ b/src/Fastly/Types/FastlyCertificates.php @@ -162,6 +162,10 @@ public function getAllBulkCertificates() $currentPage = $certificateData['meta'][0]['current_page']; $totalPages = $certificateData['meta'][0]['total_pages']; + if(!is_numeric($currentPage) || !is_numeric($totalPages)) { + throw new \Exception("Call to getAllBulkCertificates resulted in bad results from Fastly API"); + } + if ($currentPage >= $totalPages) { $lastPage = true; } else {