PHP 8.1 Compatibility

  • Thread starter Thread starter Kirby
  • Start date Start date

Kirby

Guest
Member
Probably already known:

It seems like XenForo ist currently not compatible with PHP 8.1 due to missing return type declarations on many methods, most notably on classes implementing core interfaes like \ArrayAccess

This does generate error messages like
Code:

An exception occurred: [ErrorException] [E_DEPRECATED] Return type of XF\Session\Session::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to...

Read more
 
Top