Skip to content

Commit

Permalink
Merge pull request #17038 from totten/master-vermsg
Browse files Browse the repository at this point in the history
Mitigate flaky test failure about "CRM_Utils_Check_Component_Env->checkVersion()"
  • Loading branch information
colemanw authored Apr 9, 2020
2 parents cee5dde + 0770d5c commit 8cdf551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/Check/Component/Env.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public function checkVersion() {
'warning' => CRM_Utils_Check::severityMap(\Psr\Log\LogLevel::WARNING) ,
'critical' => CRM_Utils_Check::severityMap(\Psr\Log\LogLevel::CRITICAL),
];
foreach ($vc->getVersionMessages() as $msg) {
foreach ($vc->getVersionMessages() ?? [] as $msg) {
$messages[] = new CRM_Utils_Check_Message(__FUNCTION__ . '_' . $msg['name'],
$msg['message'], $msg['title'], $severities[$msg['severity']], 'fa-cloud-upload');
}
Expand Down

0 comments on commit 8cdf551

Please sign in to comment.