Skip to content

Commit

Permalink
Update ValueMapper.php (#21)
Browse files Browse the repository at this point in the history
Empty check in arrayValue case needs to be 'values' not 'fields'
  • Loading branch information
neilvs authored Jan 22, 2021
1 parent 18c30a9 commit d1f8851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ValueMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ private function decodeValue($type, $value)
case 'arrayValue':
$res = [];

if (!empty($value['fields'])) foreach ($value['values'] as $val) {
if (!empty($value['values'])) foreach ($value['values'] as $val) {
$type = array_keys($val)[0];

$res[] = $this->decodeValue($type, current($val));
Expand Down

0 comments on commit d1f8851

Please sign in to comment.