[6.0] [joomla/database] use createQuery#45056
Conversation
4ffc3a8 to
cb8c6f2
Compare
|
@heelc29 Sadly, I see hundreds of use Joomla\Database\DatabaseDriver::createQuery() instead. - [ROOT]/libraries/vendor/symfony/deprecation-contracts/function.php - Line 25 BEFORE or AFTER the Patch... I did many different things in the backend such as copy an article, upload an extension, etc etc WITH and WITHOUT the Patch applied and I sifted through ~8mg of deprecated.php log with no foreseeable difference... What am I doing wrong? PHP 8.3.19, MariaDB 10.6.15, Joomla 5.3 ßeta 2 |
|
The problem is that getDatabase() returns a |
|
@heelc29 can you please add this function to the framework database interface for version 4 and rebase this pr on 6.0. |
It is also used for example in joomla framework session so this tries to replace that one caused directly from the cms Yes the |
Sure |
35e5c8a to
fc3a2d0
Compare
|
I have tested this item ✅ successfully on 8ee8eeb This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45056. |
|
Conflicts resolved. @Bodge-IT @softforge I think its to late for 6.0.0? Should I rebase to 6.1-dev or is it possible in a patch release? |
Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
|
I have tested this item ✅ successfully on 45f9bea This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45056. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45056. |
|
Congrats @heelc29, thank you for the PR. Thanks to all involved for reviews, tests, guidance and comments. |
Redo of Pull Request #42344.
DRAFT: due temporary update of joomla-framework/database#325It is recommended to merge after #45827 > MERGED
Summary of Changes
Testing Instructions
code review or check logs
Actual result BEFORE applying this Pull Request
Since joomla/database 2.2.0: The parameter $new is deprecated and will be removed in 4.0, use Joomla\Database\DatabaseDriver::createQuery() instead.Expected result AFTER applying this Pull Request
No warnings for
getQuery(true)from core files (still some in session framework)Link to documentations
Please select: