Skip to content

Commit 85ebd0b

Browse files
committed
fix: failing test for undecodable payload
1 parent b4bb38a commit 85ebd0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Recorders/JobRecorder/JobRecorder.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ protected function getJobProperties(): array
7575
}
7676
}
7777

78-
if (is_string($payload['data'])) {
79-
try {
78+
try {
79+
if (is_string($payload['data'])) {
8080
$properties['data'] = json_decode($payload['data'], true, 512, JSON_THROW_ON_ERROR);
81-
} catch (Exception $exception) {
8281
}
82+
} catch (Exception $exception) {
8383
}
8484

8585
if ($pushedAt = DateTime::createFromFormat('U.u', $payload->get('pushedAt', ''))) {

0 commit comments

Comments
 (0)