We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6efc192 commit 2f81230Copy full SHA for 2f81230
1 file changed
src/Parsing/Common/Job.php
@@ -58,7 +58,7 @@ public function __construct(array $rawResponse)
58
}
59
$this->id = $rawResponse['id'];
60
$this->status = $rawResponse['status'];
61
- if (array_key_exists('available_at', $rawResponse) && strtotime($rawResponse['available_at'])) {
+ if (array_key_exists('available_at', $rawResponse) && $rawResponse['available_at'] !== null && strtotime($rawResponse['available_at'])) {
62
try {
63
$this->availableAt = new DateTimeImmutable($rawResponse['available_at']);
64
} catch (\Exception $e) {
0 commit comments