osTicket: v1.17.2
Apache
MySQL: 10.3.36
PHP 8.0.25
After run cron.php get this error.
/usr/bin/php /var/www/web/api/cron.php >/dev/null
PHP Fatal error: Uncaught Error: Call to undefined function str_starts_with() in /var/www/web/include/class.email.php:466 Stack trace:
#0 /var/www/web/include/class.email.php(524): EmailAccount->isOAuthAuth()
#1 /var/www/web/include/class.email.php(881): EmailAccount->getBkId()
#2 /var/www/web/include/class.email.php(761): EmailAccount->getOAuth2AuthCredentials()
#3 /var/www/web/include/class.email.php(733): EmailAccount->getCredentials()
#4 /var/www/web/include/class.email.php(721): EmailAccount->getFreshCredentials()
#5 /var/www/web/include/class.email.php(474): EmailAccount->hasCredentials()
#6 /var/www/web/include/class.mailfetch.php(234): EmailAccount->isActive()
#7 /var/www/web/include/class.cron.php(25): osTicket\Mail\Fetcher::run()
#8 /var/www/web/include/class.cron.php(110): Cron::MailFetcher()
#9 /va in /var/www/web/include/class.email.php on line 466