diff --git a/libraries/classes/Index.php b/libraries/classes/Index.php index 16b5cc1897..a3cf57d852 100644 --- a/libraries/classes/Index.php +++ b/libraries/classes/Index.php @@ -179,10 +179,10 @@ class Index /** * Load index data for table */ - private static function loadIndexes(DatabaseInterface $dbi, string $table, string $schema): bool + private static function loadIndexes(DatabaseInterface $dbi, string $table, string $schema): void { if (isset(self::$registry[$schema][$table])) { - return true; + return; } $rawIndexes = $dbi->getTableIndexes($schema, $table); @@ -198,8 +198,6 @@ class Index $key->addColumn($eachIndex); } - - return true; } /** diff --git a/psalm-baseline.xml b/psalm-baseline.xml index d3c12119b7..7f69c87b6a 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -7776,9 +7776,6 @@ hasPrimary isPacked - - bool -