Skip to content

Commit 49791c2

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2 parents 056dce7 + a274608 commit 49791c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
],
144144
"update:baselines": [
145145
"@php phpstan analyse --generate-baseline",
146-
"@php psalm --set-baseline=psalm-baseline.xml"
146+
"@php psalm --no-cache --threads=max --set-baseline=psalm-baseline.xml"
147147
],
148148
"twig-lint": "@php bin/console lint:twig --ansi --show-deprecations"
149149
},

src/Table/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ protected function saveUiPrefsToDb(UiPreferencesFeature $uiPreferencesFeature):
11381138
// Remove some old rows in table_uiprefs if it exceeds the configured
11391139
// maximum rows
11401140
$sqlQuery = 'SELECT COUNT(*) FROM ' . $table;
1141-
$rowsCount = (int) $this->dbi->fetchValue($sqlQuery);
1141+
$rowsCount = (int) $this->dbi->fetchValue($sqlQuery, 0, ConnectionType::ControlUser);
11421142
$maxRows = $config->selectedServer['MaxTableUiprefs'];
11431143
if ($rowsCount > $maxRows) {
11441144
$numRowsToDelete = $rowsCount - $maxRows;

0 commit comments

Comments
 (0)