Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Fix DrupalRelease construct call
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed May 12, 2022
1 parent d27687b commit af56370
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Checker/DrupalChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
}
Expand Down

0 comments on commit af56370

Please sign in to comment.