Skip to content

Commit 102749d

Browse files
authored
Update Analytics.php
1 parent d04a112 commit 102749d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Analytics.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public function post()
157157
$kB = 1024;
158158
if (mb_strlen(json_encode($reqBody)) > ($kB * 130)) {
159159
GA4Exception::push("Request body exceeds 130kB");
160+
continue;
160161
}
161162

162163
$guzzle = new Guzzle();
@@ -194,9 +195,9 @@ public function post()
194195
return true;
195196
}
196197

197-
public function toArray(bool $isParent = false, $childErrors = null): array
198+
public function toArray(bool $isParent = false): array
198199
{
199-
return parent::toArray($isParent, $childErrors);
200+
return parent::toArray($isParent);
200201
}
201202

202203
public static function new(string $measurementId, string $apiSecret, bool $debug = false)

0 commit comments

Comments
 (0)