diff --git a/composer.json b/composer.json index 048443ac6b..4a6b745805 100644 --- a/composer.json +++ b/composer.json @@ -143,7 +143,7 @@ ], "update:baselines": [ "@php phpstan analyse --generate-baseline", - "@php psalm --set-baseline=psalm-baseline.xml" + "@php psalm --no-cache --threads=max --set-baseline=psalm-baseline.xml" ], "twig-lint": "@php bin/console lint:twig --ansi --show-deprecations" }, diff --git a/src/Table/Table.php b/src/Table/Table.php index 4249287127..855125ac4d 100644 --- a/src/Table/Table.php +++ b/src/Table/Table.php @@ -1138,7 +1138,7 @@ class Table implements Stringable // Remove some old rows in table_uiprefs if it exceeds the configured // maximum rows $sqlQuery = 'SELECT COUNT(*) FROM ' . $table; - $rowsCount = (int) $this->dbi->fetchValue($sqlQuery); + $rowsCount = (int) $this->dbi->fetchValue($sqlQuery, 0, ConnectionType::ControlUser); $maxRows = $config->selectedServer['MaxTableUiprefs']; if ($rowsCount > $maxRows) { $numRowsToDelete = $rowsCount - $maxRows;