-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] PHP8.5 deprecated code #46134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.4] PHP8.5 deprecated code #46134
Conversation
|
I don’t really need to be pinged for every 5.4-dev PR. |
|
@dgrammatiko System test are failing. |
|
Probably we should add PHP 8.5 to the matrix in system tests as well if possible. |
|
@laoneo that would be awesome but atm it’s on beta3 maybe with the rc in a month or so. TBH it would be nice to have Joomla not throwing any errors or warnings before 8.5 is officially released (this the prs) |
|
We will see if we can do something in the ATT team. |
Co-authored-by: Tuan Pham Ngoc <[email protected]>
|
I have tested this item ✅ successfully on 5d07d05 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46134. |
|
I am not sure if this change has side effects. The The code in that method seems to use With the change here that would be an empty string. I have no idea what side effects this might have. |
|
@richard67 The The |
|
@joomdonation I see. After having had a deeper look, it seems ok to me. |
brianteeman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After applying this patch I now get a fatal error
: Declaration of Joomla\CMS\Event\AbstractImmutableEvent::offsetSet($name, $value) must be compatible with Joomla\Event\Event::offsetSet($name, $value): void in D:\repos\j6\libraries\src\Event\AbstractImmutableEvent.php on line 65
brianteeman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scrub that - I applied the patch to the wrong release
|
I have tested this item ✅ successfully on 66088c9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46134. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46134. |
|
I have tested this item ✅ successfully on 66088c9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46134. |
|
Final test before merge using JBT php8.5-rc
Merging this PR and @dgrammatiko could you a look on the remaining Deprecated please?
|
|
Thank you @dgrammatiko for your contribution. Thank you @joomdonation and @richard67 for supporting. Thank you @brianteeman, @heelc29 and @joomdonation for testing. |
|

Pull Request for Issue # .
Summary of Changes
Typecast some variables to string to eliminate the deprecation warnings on PHP 8.5
Testing Instructions
Open the login page and check the deprecations (PHP8.5 required and error reporting to max)
Actual result BEFORE applying this Pull Request
Deprecations logged in the output
Expected result AFTER applying this Pull Request
No deprecations
B/C: since I'm not changing the signature of the function (arguments should be declared as strings and array there, maybe in J6) this should have zero impact to 3d pt devs.
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
@richard67 ping