Skip to content

Commit 3ccf894

Browse files
authored
Merge pull request #573 from lbajsarowicz/fix/magentocron-no-group-provided
Quick Fix: PHP's max() requires at least 1 argument
2 parents d7efde8 + 7560bc3 commit 3ccf894

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Magento/FunctionalTestingFramework/Module/MagentoWebDriver.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,10 @@ private function notifyCronFinished(array $cronGroups = [])
601601
*/
602602
private function getLastCronExecution(array $cronGroups = [])
603603
{
604+
if (empty($this->cronExecution)) {
605+
return 0;
606+
}
607+
604608
if (empty($cronGroups)) {
605609
return (int)max($this->cronExecution);
606610
}
@@ -1060,7 +1064,7 @@ public function getSecret($key)
10601064
/**
10611065
* Waits proper amount of time to perform Cron execution
10621066
*
1063-
* @param string $cronGroups
1067+
* @param array $cronGroups
10641068
* @param integer $timeout
10651069
* @param string $arguments
10661070
* @return string

0 commit comments

Comments
 (0)