Closed cloakedninjas closed 6 years ago
This can be fixed by adding the following to line 642 of WithFragments.php
. I am happy to submit a PR for this, but unsure if this might be a sign of the API returning invalid data format?
if (!is_array($fields)) {
continue;
}
Closing this, the issue was accessing the v2 API with 3.x SDK
Results in:
This occurs when I add a Key Text field to a repeatable type. When I pause execution I see the following JSON from the API:
The issue is that
slug
is expect to be an array, not a string. And it's this field which is Key Text field. I'm using v3.4.2 of the PHP SDK