Skip to content

Commit

Permalink
Fixed bug in getting webhook events
Browse files Browse the repository at this point in the history
  • Loading branch information
stymiee committed Feb 13, 2023
1 parent 111b405 commit 54805b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CHANGE LOG
Added __set() and __isset() magic methods to JSON handling classes. Throws an exception if you try to set values in response objects.
Fixed minor bug in debugging code for webhooks
Fixed grammatical errors in comments
Fixed bug in getting webhook events
Cleaned up examples a bit more

2020-08-31 - Version 4.1.3
Expand Down
2 changes: 1 addition & 1 deletion src/Authnetjson/AuthnetWebhooksResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function getEventTypes(): array
$events[] = $event;
}
} else {
$events = array_column($this->response, 'name');
$events = array_column((array) $this->response, 'name');
}
return $events;
}
Expand Down

0 comments on commit 54805b0

Please sign in to comment.