mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-04-07 11:07:01 +00:00
fix to index webhooks method (#372)
This commit is contained in:
parent
273b48343d
commit
ee35e40846
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ class IndexResponse implements ApiResponse
|
|||
public static function create(array $data)
|
||||
{
|
||||
$self = new self();
|
||||
$data = isset($data['webhooks']) ? $data['webhooks'] : $data;
|
||||
if (isset($data['bounce'])) {
|
||||
$self->setBounce($data['bounce']);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue