Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Jsonq.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Nahid\JsonQ\Exceptions\InvalidJsonException;
use Nahid\JsonQ\Exceptions\InvalidNodeException;
use Nahid\JsonQ\Exceptions\NullValueException;
use Nahid\JsonQ\Results\ValueNotFound;

class Jsonq
{
Expand Down Expand Up @@ -187,7 +188,7 @@ public function groupBy($column)
$data = [];
foreach ($this->_map as $map) {
$value = $this->getFromNested($map, $column);
if ($value) {
if (!$value instanceof ValueNotFound) {
$data[$value][] = $map;
}
}
Expand Down