diff --git a/src/Checker/DrupalChecker.php b/src/Checker/DrupalChecker.php index d9bc066..d8f8ee1 100644 --- a/src/Checker/DrupalChecker.php +++ b/src/Checker/DrupalChecker.php @@ -128,10 +128,12 @@ private function getProjectData(string $project): array if (isset($xmlData['releases']['release'])) { foreach ($xmlData['releases']['release'] as $release) { - $release = new DrupalRelease($release); + if (is_array($release)) { + $release = new DrupalRelease($release); - if ($release->isStable()) { - $releases[] = $release; + if ($release->isStable()) { + $releases[] = $release; + } } } }