Kyle -
ref this report:
www.joomlapolis.com/forum/professional-members-support/245282-update-to-php-8-1#331256
I'm getting the same deprecation warnings after upgrading to J4 from 3.10 - the CB version was the latest 2.7.4+build.2022.12.07.19.10.12.f06961ef4
All from the same file - \libraries\CBLib\CBLib\DependencyInjection\Container.phpDeprecated: 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 \www\fig\libraries\CBLib\CBLib\DependencyInjection\Container.php on line 894Call Stack
To help testing, I installed a new J4 (not an upgrade) and a fresh not-upgraded CB & CBSubs and turned on Max errors - no warnings.
So, the CB extension upgrade process somehow missed the new Container.php file.
Suggestions on a fix?
Thanks,
Fred
Last edit: 2 years 2 weeks ago by krileon. Reason: Added [SOLVED] tag to subject
We already have #[\ReturnTypeWillChange] set. Just install CB over the top of itself if there was some sort of upgrade issue.
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.