Skip to content

Commit

Permalink
Handle NULL Flag Data
Browse files Browse the repository at this point in the history
  • Loading branch information
pykettk authored May 5, 2023
1 parent 604fd04 commit 7e5afc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/IntegrityResultsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getFailedMatches(array $packages = []): array
$failures = [];
$threshold = $this->moduleConfig->getSansecComposerIntegrityMatchThreshold();

foreach ($packages ?: $this->getLastResults() as $package) {
foreach ($packages ?: $this->getLastResults() ?? [] as $package) {
$package = (array)$package;

if ((int)$package['percentage'] < $threshold) {
Expand Down

0 comments on commit 7e5afc3

Please sign in to comment.