User tests: Successful: Unsuccessful:
Redo of Pull Request #42344.
DRAFT: due temporary update of joomla-framework/database#325
Replaced all fuction calls getQuery(true) with createQuery() but only in database related context.
Note: There is also a getQuery(true) functionality in Joomla\CMS\Uri\Uri that must remain untouched.
code review or check logs
Since joomla/database 2.2.0: The parameter $new is deprecated and will be removed in 4.0, use Joomla\Database\DatabaseDriver::createQuery() instead.
No warnings for getQuery(true)
from core files (still some in session framework)
Please select:
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_admin com_associations com_banners com_categories com_checkin com_config |
Labels |
Added:
PR-5.3-dev
|
The problem is that getDatabase() returns a DatabaseInterface
which doesn't have that function as it is only part of the DatabaseDriver
class. So this pr would bind us to the concrete implementation.
@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?
It is also used for example in joomla framework session so this tries to replace that one caused directly from the cms
Yes the deprecated.php
log grows quickly
Title |
|
Category | Administration com_admin com_associations com_banners com_categories com_checkin com_config | ⇒ | Unit Tests Administration com_admin SQL Postgresql com_associations com_banners com_categories |
Labels |
Added:
Unit/System Tests
PR-6.0-dev
|
Category | Administration com_admin com_associations com_banners com_categories Unit Tests SQL Postgresql | ⇒ | Administration com_admin com_associations com_banners com_categories com_checkin com_config |
Labels |
Removed:
Unit/System Tests
|
Labels |
Removed:
PR-5.3-dev
|
@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