Skip to content

Commit

Permalink
preserve fields
Browse files Browse the repository at this point in the history
  • Loading branch information
macbookandrew committed Sep 6, 2024
1 parent 5b79bb7 commit 80fd004
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/FileMakerConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,9 +766,9 @@ protected function logFMQuery($method, $url, $params, $start)

$this->event(new QueryExecuted(
$sql,
collect(data_get($params, 'query', []))->map(
fn (array $binding, $index) => collect($binding)->map(fn ($value, $key) => $index . ': ' . $key . ': ' . $value)
)->flatten()->all(),
collect(data_get($params, 'query', []))->flatMap(
fn (array $binding, $index) => collect($binding)->mapWithKeys(fn ($value, $key) => [$index.': '.$key => $value])
)->all(),
$this->getElapsedTime($start),
$this,
));
Expand Down

0 comments on commit 80fd004

Please sign in to comment.