Skip to content

Commit 202b467

Browse files
committed
docs: fix @param types
1 parent 2bcebad commit 202b467

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

system/Format/FormatterInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface FormatterInterface
1919
/**
2020
* Takes the given data and formats it.
2121
*
22-
* @param array|string $data
22+
* @param array|object|string $data
2323
*
2424
* @return false|string
2525
*/

system/HTTP/ResponseTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function setContentType(string $mime, string $charset = 'UTF-8')
239239
/**
240240
* Converts the $body into JSON and sets the Content Type header.
241241
*
242-
* @param array|string $body
242+
* @param array|object|string $body
243243
*
244244
* @return $this
245245
*/
@@ -304,8 +304,8 @@ public function getXML()
304304
* Handles conversion of the data into the appropriate format,
305305
* and sets the correct Content-Type header for our response.
306306
*
307-
* @param array|string $body
308-
* @param string $format Valid: json, xml
307+
* @param array|object|string $body
308+
* @param string $format Valid: json, xml
309309
*
310310
* @return mixed
311311
*

0 commit comments

Comments
 (0)