Skip to content

Commit

Permalink
Merge pull request #9287 from JulianAtkins/develop
Browse files Browse the repository at this point in the history
fix: `ResponseInterface::setJSON()` also accepts objects
  • Loading branch information
paulbalandan authored Nov 29, 2024
2 parents 713c869 + d1d5b7f commit 72f6a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/ResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 72f6a78

Please sign in to comment.