Skip to content

Commit 3ad2e27

Browse files
committed
fix compatibility for PHP 7.3
1 parent 0a0e9e3 commit 3ad2e27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Schema/Grammar/CompilesKeys.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public function compileShardKey(Blueprint $blueprint, Fluent $command)
1818
public function compileSortKey(Blueprint $blueprint, Fluent $command)
1919
{
2020
if (is_array($command->with)) {
21-
$compiled = collect($command->with)->map(
22-
fn ($value, $variable) => "{$variable}={$value}"
23-
)->join(',');
21+
$compiled = collect($command->with)->map(function ($value, $variable) {
22+
return "{$variable}={$value}";
23+
})->join(',');
2424

2525
return "sort key({$this->columnize($command->columns)} {$command->direction}) with ({$compiled})";
2626
}

0 commit comments

Comments
 (0)