forked from wallabag/wallabag
Modernize to PHP 7.4
This commit is contained in:
@ -89,9 +89,7 @@ abstract class WallabagMigration extends AbstractMigration
|
||||
*/
|
||||
protected function generateIdentifierName(array $columnNames, string $prefix = ''): string
|
||||
{
|
||||
$hash = implode('', array_map(static function ($column): string {
|
||||
return dechex(crc32($column));
|
||||
}, $columnNames));
|
||||
$hash = implode('', array_map(static fn ($column): string => dechex(crc32($column)), $columnNames));
|
||||
|
||||
return strtoupper(substr($prefix . '_' . $hash, 0, $this->platform->getMaxIdentifierLength()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user