User tests: Successful: Unsuccessful:
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 method DatabaseQuery::castAs()
with the parameter CHAR
instead. The update to version 4 of the framework will come in Joomla 6, but we want to have this change as early as possible.
Codereview
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
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_finder Front End com_contact com_content Libraries Plugins |
Labels |
Added:
PR-5.4-dev
|
I have tested this item ✅ successfully on 629a6b4
Tested by review and applied the changes to one of my applications also with own components. No error found.
Status | Pending | ⇒ | Ready to Commit |
RTC
✅ Final check before merge:
find . -type f -name "*\.php" -exec grep -Hn "\->castAsChar(" {} \;
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-08-04 18:06:06 |
Closed_By | ⇒ | muhme | |
Labels |
Added:
RTC
|
Thank you @Hackwar for your contribution. Thank you @richard67 and @chmst for testing.
I have tested this item ✅ successfully on 629a6b4
Tested by review.
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
castAsChar
calls of the database query.This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45826.