Skip to content

Commit

Permalink
fix: undefined index error #8
Browse files Browse the repository at this point in the history
  • Loading branch information
morrislaptop committed Nov 18, 2018
1 parent 2ba355e commit 39a40fa
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 @@ -308,7 +308,7 @@ private function decodeValue($type, $value)
case 'mapValue':
$res = [];

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

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

0 comments on commit 39a40fa

Please sign in to comment.