From d1d5b7f29584d89f920c5d919a12e24883567fce Mon Sep 17 00:00:00 2001 From: Julian Atkins <156084296+JulianAtkins@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:58:38 +0200 Subject: [PATCH] fix: The function setJSON also accepts objects --- system/HTTP/ResponseInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/HTTP/ResponseInterface.php b/system/HTTP/ResponseInterface.php index 827eea44e298..382a2847c503 100644 --- a/system/HTTP/ResponseInterface.php +++ b/system/HTTP/ResponseInterface.php @@ -210,7 +210,7 @@ public function setContentType(string $mime, string $charset = 'UTF-8'); /** * Converts the $body into JSON and sets the Content Type header. * - * @param array|string $body + * @param array|object|string $body * * @return $this */