Skip to content

Commit 7a7ea2b

Browse files
authored
Merge pull request #85 from kiora-tech/master
When timestamp is not defined
2 parents 7919235 + 29b341b commit 7a7ea2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Collector/Neo4jDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function collect(Request $request, Response $response, ?\Throwable $excep
7070
$mergedArray = array_merge($successfulStatements, $failedStatements);
7171
uasort(
7272
$mergedArray,
73-
static fn (array $a, array $b) => $a['start_time'] <=> $b['timestamp']
73+
static fn (array $a, array $b) => $a['start_time'] <=> ($b['timestamp'] ?? $b['start_time'])
7474
);
7575
$this->data['statements'] = $mergedArray;
7676
}

0 commit comments

Comments
 (0)