Skip to content

Commit 885a134

Browse files
author
Mehedi Hasan Nahid
committed
fixed: getFromNested() method when some node is null
1 parent e0512c9 commit 885a134

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Queriable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ protected function getFromNested($map, $node)
412412
$path = explode($this->_traveler, $node);
413413

414414
foreach ($path as $val) {
415-
if (!is_array($val)) return $val;
415+
if (!is_array($map)) return $map;
416416

417417
if (!array_key_exists($val, $map)) {
418418
$terminate = true;

src/QueryEngine.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ public function get($column = [])
323323
{
324324
$this->setSelect($column);
325325
$this->prepare();
326-
327326
return $this->prepareResult($this->_map);
328327
}
329328

0 commit comments

Comments
 (0)