Remove return type

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-12-11 03:58:10 +01:00
parent 5c15af6fb6
commit f94e681d8b
2 changed files with 2 additions and 5 deletions

View File

@ -5988,7 +5988,6 @@
<code><![CDATA[$this->getPmaTable()]]></code>
</PossiblyNullOperand>
<PossiblyUnusedReturnValue>
<code>bool</code>
<code>bool|Message</code>
</PossiblyUnusedReturnValue>
<UnsupportedReferenceUsage>

View File

@ -158,18 +158,16 @@ class RecentFavoriteTable
* Trim recent.favorite table according to the
* NumRecentTables/NumFavoriteTables configuration.
*/
private function trim(): bool
private function trim(): void
{
$max = max(
Config::getInstance()->settings['Num' . ucfirst($this->tableType->value) . 'Tables'],
0,
);
$trimmingOccurred = count($this->tables) > $max;
while (count($this->tables) > $max) {
array_pop($this->tables);
}
return $trimmingOccurred;
}
/**