I have upgrade to osTicket 1.17.2 a few days ago. I am using PHP 8.0. I am using cron.php with the following line added at the top:
#!/usr/bin/php8.0 -q
With this setting, no problem. But if I using this:
#!/usr/bin/php8.1 -q
I get several deprecated warnings from cronjob - here 3 examples:
Deprecated: Optional parameter $namespace declared before required parameter $key is implicitly treated as a required parameter in /.../www/osticket/include/class.config.php on line 198
Deprecated: Return type of BaseList::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /.../osticket/include/class.util.php on line 101
Deprecated: Return type of BaseList::count($mode = COUNT_NORMAL) should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /.../www/osticket/include/class.util.php on line 106
Is osTicket not compatible with PHP 8.1?
Thank you
Christian