Skip to content

Commit

Permalink
phpstan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Apr 14, 2021
1 parent 8545faf commit a1cd5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ protected function attachDrupalAdvisories(array &$alerts)
if (empty($release->version)) {
continue;
}
if (empty($release->terms->term)) {
if (empty($release->terms) || empty($release->terms->term)) {
continue;
}
$version = (string) $release->version;
Expand Down

0 comments on commit a1cd5f6

Please sign in to comment.