Skip to content

Commit c059161

Browse files
committed
Removed the obsolete empty array check
1 parent fea813d commit c059161

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/RequestHelper.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,6 @@ public function toJson(array $data): string
123123
{
124124
$json = json_encode($data);
125125

126-
if ($json === '[]') {
127-
$json = '{}';
128-
}
129-
130126
return str_replace('[]', '{}', $json);
131127
}
132128
}

0 commit comments

Comments
 (0)