We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efc192 commit 517c376Copy full SHA for 517c376
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) && null !== $rawResponse['available_at'] && strtotime($rawResponse['available_at'])) {
62
try {
63
$this->availableAt = new DateTimeImmutable($rawResponse['available_at']);
64
} catch (\Exception $e) {
0 commit comments