Skip to content

Commit

Permalink
Cannot return null for non-nullable field SelectedCustomizableOptionV…
Browse files Browse the repository at this point in the history
…alue.sort_order and Call to a member function getPriceType() on null
  • Loading branch information
XxXgeoXxX authored and naydav committed Apr 30, 2019
1 parent 742e6a7 commit 30bc7b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ private function createBuyRequest(float $quantity, array $customOptions): DataOb
*/
private function convertCustomOptions(string $value)
{
if (substr($value, 0, 1) === "[" ||
if (substr($value, 0, 1) === "[" &&
substr($value, strlen($value) - 1, 1) === "]") {
return explode(',', substr($value, 1, -1));
}
Expand Down

0 comments on commit 30bc7b7

Please sign in to comment.