Skip to content

Commit b434be4

Browse files
committed
fix: arrow function
- remove unneeded `)` - $item may be null, but cast to string here, because after all casted to string
1 parent da6313d commit b434be4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

system/Commands/Database/ShowTableInfo.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,9 @@ private function makeTableRows(string $tableName, int $limitRows, int $limitFiel
205205

206206
foreach ($rows as $row) {
207207
$row = array_map(
208-
static fn ($item): string => mb_strlen((string) $item) > $limitFieldValue)
208+
static fn ($item): string => mb_strlen((string) $item) > $limitFieldValue
209209
? mb_substr((string) $item, 0, $limitFieldValue) . '...'
210-
: $item
211-
,
210+
: (string) $item,
212211
$row
213212
);
214213
$this->tbody[] = $row;

0 commit comments

Comments
 (0)