Merge pull request #18427 from kamil-tekiela/voidify-loadIndexes

Voidify loadIndexes
This commit is contained in:
Maurício Meneghini Fauth 2023-05-18 20:46:09 -03:00 committed by GitHub
commit d0b219f063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -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;
}
/**

View File

@ -7776,9 +7776,6 @@
<code>hasPrimary</code>
<code>isPacked</code>
</PossiblyUnusedMethod>
<UnusedReturnValue>
<code>bool</code>
</UnusedReturnValue>
</file>
<file src="libraries/classes/IndexColumn.php">
<MixedAssignment>