mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #9287 from JulianAtkins/develop
fix: `ResponseInterface::setJSON()` also accepts objects
This commit is contained in:
commit
72f6a78f9d
@ -210,7 +210,7 @@ interface ResponseInterface extends MessageInterface
|
||||
/**
|
||||
* Converts the $body into JSON and sets the Content Type header.
|
||||
*
|
||||
* @param array|string $body
|
||||
* @param array|object|string $body
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user