Skip to content

Commit

Permalink
change empty with isset
Browse files Browse the repository at this point in the history
  • Loading branch information
Othman-Charai committed Mar 11, 2024
1 parent ce21fb7 commit b32d3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryOptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function createFromArray(array $attributes): QueryOption
$queryFilters = new QueryFilterCollection();

foreach ((array)Arr::get($attributes, 'filters', []) as $filter) {
if (!Arr::has($filter, ['field', 'value']) || empty($filter['field']) || empty($filter['value'])) {
if (!Arr::has($filter, ['field', 'value']) || empty($filter['field']) || !isset($filter['value'])) {
continue;
}

Expand Down

0 comments on commit b32d3ef

Please sign in to comment.