Skip to content

Commit

Permalink
Removed the obsolete empty array check
Browse files Browse the repository at this point in the history
  • Loading branch information
zepich committed Sep 18, 2022
1 parent fea813d commit c059161
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/RequestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ public function toJson(array $data): string
{
$json = json_encode($data);

if ($json === '[]') {
$json = '{}';
}

return str_replace('[]', '{}', $json);
}
}

0 comments on commit c059161

Please sign in to comment.