Skip to content

Commit

Permalink
Replace json_encode usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Strift committed Dec 4, 2024
1 parent 8adf445 commit 4bbf82d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Contracts/TasksQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@ public function toArray(): array
'from' => $this->from,
'limit' => $this->limit,
'canceledBy' => $this->formatArray($this->canceledBy),
'reverse' => null !== $this->reverse ? json_encode($this->reverse) : null,
'reverse' => (null !== $this->reverse ? ($this->reverse ? 'true' : 'false') : null),
]
), static function ($item) { return null !== $item; }
),
static function ($item) {
return null !== $item;
}
);
}
}

0 comments on commit 4bbf82d

Please sign in to comment.