Skip to content

Commit dc2be84

Browse files
fix webhook property init
1 parent 5912af6 commit dc2be84

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Parsing/V2/Job.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,11 @@ public function __construct(array $serverResponse)
9191
$this->filename = $serverResponse['filename'];
9292
$this->resultUrl = $serverResponse['result_url'] ?? null;
9393
$this->alias = $serverResponse['alias'];
94+
$this->webhooks = [];
9495
if (array_key_exists("webhooks", $serverResponse)) {
9596
foreach ($serverResponse['webhooks'] as $webhook) {
9697
$this->webhooks[] = new JobWebhook($webhook);
9798
}
98-
} else {
99-
$this->webhooks = [];
10099
}
101100
}
102101

0 commit comments

Comments
 (0)