Skip to content

Commit

Permalink
chore(PLATFORM-9825): linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajmeller committed Feb 14, 2025
1 parent 08858b5 commit 4d946ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/CargoSQLQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ public function run() {
## entries like [ 'table1' => 'table1' ] in mAliasedTableNames. This is causing Mediawiki's SQLPlatform class
## to generate invalid SQL queries: SELECT field1 FROM table1 table1
## see: SQLPlatform::tableNameWithAlias()
if ( str_starts_with ( MW_VERSION, '1.44' ) ) {
if ( str_starts_with( MW_VERSION, '1.44' ) ) {
foreach ( $this->mAliasedTableNames as $tableName => $alias ) {
if ( $alias === $tableName ) {
unset( $this->mAliasedTableNames[$tableName] );
Expand Down

0 comments on commit 4d946ae

Please sign in to comment.