Skip to content

Commit 5b79bb7

Browse files
committed
flatten bindings
#78
1 parent 775e0df commit 5b79bb7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Services/FileMakerConnection.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,10 +767,8 @@ protected function logFMQuery($method, $url, $params, $start)
767767
$this->event(new QueryExecuted(
768768
$sql,
769769
collect(data_get($params, 'query', []))->map(
770-
fn (array $binding) => collect($binding)
771-
->map(fn ($value, $key) => $key . ': ' . $value)
772-
->join(', ')
773-
)->all(),
770+
fn (array $binding, $index) => collect($binding)->map(fn ($value, $key) => $index . ': ' . $key . ': ' . $value)
771+
)->flatten()->all(),
774772
$this->getElapsedTime($start),
775773
$this,
776774
));

0 commit comments

Comments
 (0)