This deprecation notice is annoying on PHP 8.1.2, the fix is to type cast the function to int
/* see if its time to run */
$last_run = (int) read_config_option('mikrotik_automation_lastrun');
$frequency = (int) read_config_option('mikrotik_automation_frequency') * 60;
debug("Last Run Was '" . date('Y-m-d H:i:s', $last_run) . "', Frequency is '" . ($frequency/60) . "' Minutes");
This deprecation notice is annoying on PHP 8.1.2, the fix is to type cast the function to int