Skip to content

Commit

Permalink
#872 TShellCronAction explicit reduction in precision (of time stamp)…
Browse files Browse the repository at this point in the history
… for PHP 8.2

Dropping PHP 8.0 support, ensuring 8.2 support, the $time variable was giving an implicit float to int conversion error that needed to be explicitly defined.  This was an error in PHP 8.2
  • Loading branch information
belisoful authored and ctrlaltca committed Apr 18, 2023
1 parent 96f270f commit 03eec16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Util/Cron/TShellCronAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function actionRun($args)
return true;
}
$time = $module->getLastCronTime();
$this->_outWriter->writeLine("\n Last cron run time was " . ($time == 0 ? 'never' : date('Y-m-d H:i:s TP', $time)) . '');
$this->_outWriter->writeLine("\n Last cron run time was " . ($time == 0 ? 'never' : date('Y-m-d H:i:s TP', (int) $time)) . '');
$module->processPendingTasks();
return true;
}
Expand Down

0 comments on commit 03eec16

Please sign in to comment.