Skip to content

Commit a6be2ea

Browse files
authored
Update JSONFormatter.php
JSONFormatter should format all kinda values not only arrays.
1 parent 4872f0a commit a6be2ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Format/JSONFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class JSONFormatter implements FormatterInterface
5353
*
5454
* @return mixed
5555
*/
56-
public function format(array $data)
56+
public function format($data) : ?string
5757
{
5858
$options = JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES;
5959

0 commit comments

Comments
 (0)