I'm having issues with the scheduled reminder function. I have set up an email to be sent out 96 hours before the event start date. When configuring the reminders, the system throws errors in the cron job. It complains that the $EventID is delivered as a string instead of an integer. Here's the error message:
PHP Fatal error: Uncaught TypeError: CRM_Event_Tokens::getEventTokenValues(): Argument #1 ($eventID) must be of type ?int, string given, called in /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Event/Tokens.php on line 95 and defined in var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Event/Tokens.php:115
The error occurs long before the scheduled time is reached. However, the definition is given as an integer on line 115. As you can see, I'm using WP with CiviCRM 5.59.4.
I would appreciate any advice.