Remove return type
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
5c15af6fb6
commit
f94e681d8b
@ -5988,7 +5988,6 @@
|
||||
<code><![CDATA[$this->getPmaTable()]]></code>
|
||||
</PossiblyNullOperand>
|
||||
<PossiblyUnusedReturnValue>
|
||||
<code>bool</code>
|
||||
<code>bool|Message</code>
|
||||
</PossiblyUnusedReturnValue>
|
||||
<UnsupportedReferenceUsage>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user