Skip to content

Commit

Permalink
Merge pull request #85 from kiora-tech/master
Browse files Browse the repository at this point in the history
When timestamp is not defined
  • Loading branch information
transistive authored Oct 8, 2024
2 parents 7919235 + 29b341b commit 7a7ea2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collector/Neo4jDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function collect(Request $request, Response $response, ?\Throwable $excep
$mergedArray = array_merge($successfulStatements, $failedStatements);
uasort(
$mergedArray,
static fn (array $a, array $b) => $a['start_time'] <=> $b['timestamp']
static fn (array $a, array $b) => $a['start_time'] <=> ($b['timestamp'] ?? $b['start_time'])
);
$this->data['statements'] = $mergedArray;
}
Expand Down

0 comments on commit 7a7ea2b

Please sign in to comment.