Skip to content

Commit 7922902

Browse files
Fix cs
1 parent be9abff commit 7922902

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Platforms/AbstractPlatform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function getEnumDeclarationSQL(array $column): string
245245
}
246246

247247
$configuredLength = $column['length'] ?? 0;
248-
$neededLength = count($column['values']) > 1
248+
$neededLength = count($column['values']) > 1
249249
? max(...array_map(mb_strlen(...), $column['values']))
250250
: mb_strlen($column['values'][key($column['values'])]);
251251

tests/Platforms/AbstractPlatformTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@ public static function getEnumDeclarationSQLProvider(): array
12181218
];
12191219
}
12201220

1221+
/** @param array<string> $values */
12211222
#[DataProvider('getEnumDeclarationWithLengthSQLProvider')]
12221223
public function testGetEnumDeclarationWithLengthSQL(array $values, int $length, string $expectedSQL): void
12231224
{

0 commit comments

Comments
 (0)