From e127129d3aea1819567e6ebeb6cf214b7f96b93b Mon Sep 17 00:00:00 2001 From: Benjamin Blake Date: Sun, 1 Mar 2020 17:08:37 -0700 Subject: [PATCH] Ammendment - Fixed an error in the last commit --- src/PushEvent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PushEvent.php b/src/PushEvent.php index cbd80c8..88acdf2 100644 --- a/src/PushEvent.php +++ b/src/PushEvent.php @@ -118,7 +118,7 @@ class PushEvent extends AbstractApiModel { if(isset($map->commits) && is_array($map->commits)) { $commitsArray = []; - foreach ($commits as $commit) { + foreach ($map->commits as $commit) { $commitsArray[] = PayloadCommit::fromJson($client, null, $commit); } $newEvent->setCommits($commitsArray);