Update to PHP 8.1

1 year 6 months ago #331256 by timstohr
Update to PHP 8.1 was created by timstohr
Hi Kyle,
Am currently trying to update the website to run on PHP 8.1.
I now have the following problem that is indicated in my backend (loads of references to CBLib...):Deprecated: Return type of CBLib\DependencyInjection\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 894 Deprecated: Return type of CBLib\DependencyInjection\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 905 Deprecated: Return type of CBLib\DependencyInjection\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 917 Deprecated: Return type of CBLib\DependencyInjection\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 939 Deprecated: Return type of CBLib\DependencyInjection\Container::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 894 Deprecated: Return type of CBLib\DependencyInjection\Container::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 905 Deprecated: Return type of CBLib\DependencyInjection\Container::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 917 Deprecated: Return type of CBLib\DependencyInjection\Container::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in joomla/libraries/CBLib/CBLib/DependencyInjection/Container.php on line 939
Where does it come from and how do I resolve it

Kind regards,

Tim
 

Please Log in to join the conversation.

1 year 6 months ago #331263 by krileon
Replied by krileon on topic Update to PHP 8.1
That should already be fixed. Please be sure you've latest CB build release installed. If you're on Joomla 3 do not move to PHP 8.1 as Joomla 3 will throw a lot of deprecation notices. They're also just deprecation notices that you don't really need to be concerned about and can suppress them by setting debug mode to None or if needed for debugging set to Simple.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.195 seconds