Skip to content

Commit 96cbbf3

Browse files
committed
Merge branch 'develop'
2 parents 09a50d5 + a1bee0a commit 96cbbf3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ApiWriter/ApiWriter.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ private function toArray(\Throwable $throwable, bool $includeDetails): array
9090
private function queue(string $type, array $json): void
9191
{
9292
// Use a hash of the array to create the filename to prevent duplicate files
93-
$hash = hash('crc32', serialize($json));
93+
$hash = md5(serialize([
94+
$json['file'],
95+
$json['line'],
96+
$json['message'],
97+
]));
9498
$path = sprintf('%s/spool.%s-%s', $this->spool, $type, $hash);
9599
if (!file_exists($path)) {
96100
file_put_contents($path, json_encode($json));

0 commit comments

Comments
 (0)