Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit e293a6f

Browse files
committed
inline arrow function
1 parent c75279b commit e293a6f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Repositories/PostgresqlFunctionRepository.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ public function runDatabaseFunction(string $name, array $parameters = []): array
5050
*/
5151
protected function buildSqlFunction(string $name, array $parameters): string
5252
{
53-
$prepareForBindings = collect($parameters)->implode(
54-
fn ($param) => '?, '
55-
);
53+
$prepareForBindings = collect($parameters)->implode(fn () => '?, ');
5654

5755
return $this->select . $name . str($prepareForBindings)
5856
->replaceLast(', ', '')

0 commit comments

Comments
 (0)