Skip to content

Commit 4bbf82d

Browse files
committed
Replace json_encode usage
1 parent 8adf445 commit 4bbf82d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Contracts/TasksQuery.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,12 @@ public function toArray(): array
7575
'from' => $this->from,
7676
'limit' => $this->limit,
7777
'canceledBy' => $this->formatArray($this->canceledBy),
78-
'reverse' => null !== $this->reverse ? json_encode($this->reverse) : null,
78+
'reverse' => (null !== $this->reverse ? ($this->reverse ? 'true' : 'false') : null),
7979
]
80-
), static function ($item) { return null !== $item; }
80+
),
81+
static function ($item) {
82+
return null !== $item;
83+
}
8184
);
8285
}
8386
}

0 commit comments

Comments
 (0)