Skip to content

Commit

Permalink
When timestamp is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
james2001 authored Oct 8, 2024
1 parent 7919235 commit 29b341b
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 29b341b

Please sign in to comment.