We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have written the events with schedule to run every hour But it throw error
TypeError: Cannot assign true to property CodeIgniter\Tasks\TaskLog::$output of type ?string
public static function sent_unqueue_mail() { $repo = new SQLEmail_listRepository(); $data = $repo->getUnQueueJobs(); $totalJob = 0; if (is_array($data) && count($data)) { $eLib = new \Mail\Libraries\Email(); foreach ($data as $k => $v) { try { $eLib->send($v); $totalJob++; } catch (\Exception $e) { log_message('error', "Failed to send email for job $k: " . $e->getMessage()); } } } log_message('info', "Sent Unqueue Completed $totalJob"); return ["Sent Unqueue Completed"]; }
I assigned events
Events::on('sent_unqueue_mail', '\Mail\Events\EventsMail::sent_unqueue_mail');
please help me to resolve this issues
The text was updated successfully, but these errors were encountered:
Return Event::trigger() is boolean, but TaskLog strict to string|null in output. I confirm this bug
Event::trigger()
boolean
TaskLog
string|null
https://github.com/codeigniter4/tasks/blob/develop/src/Task.php#L250
Sorry, something went wrong.
You may check #182
Successfully merging a pull request may close this issue.
I have written the events with schedule to run every hour But it throw error
I assigned events
please help me to resolve this issues
The text was updated successfully, but these errors were encountered: