[5.4] Converting DatabaseQuery::castAsChar() to castAs()#45826
[5.4] Converting DatabaseQuery::castAsChar() to castAs()#45826muhme merged 2 commits intojoomla:5.4-devfrom
Conversation
|
I have tested this item ✅ successfully on 629a6b4 The PR does like it is documented here: https://github.com/joomla-framework/database/blob/3.x-dev/src/DatabaseQuery.php#L574 It catches all occurrences of This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45826. |
|
I have tested this item ✅ successfully on 629a6b4 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45826. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45826. |
|
✅ Final check before merge:
|
|
Thank you @Hackwar for your contribution. Thank you @richard67 and @chmst for testing. |
|
Hello Hannes @Hackwar, |
|
There is some documentation about it in the framework where it actually has been removed: https://github.com/joomla-framework/database/blob/4.x-dev/docs/v3-to-v4-update.md |
Thank you Richard! But should these changes be documented in the general Joomla 5.4 to 6.0 manual as well? Since it is affecting Joomla 6. Just wondering. |
Summary of Changes
DatabaseQuery::castAsChar()has been deprecated in version 2 of the Joomla database framework package for removal in version 3. We missed that at that time and will now do that in version 4 of the framework. This PR converts all calls to the correct methodDatabaseQuery::castAs()with the parameterCHARinstead. The update to version 4 of the framework will come in Joomla 6, but we want to have this change as early as possible.Testing Instructions
Codereview
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