Skip to content

Commit 75ca34b

Browse files
committed
docs: fix PHPDoc type mixed in HTTP
1 parent 3cd568a commit 75ca34b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

system/HTTP/IncomingRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ public function getUserAgent()
671671
* with redirect_with_input(). It first checks for the data in the old
672672
* POST data, then the old GET data and finally check for dot arrays
673673
*
674-
* @return mixed
674+
* @return array|string|null
675675
*/
676676
public function getOldInput(string $key)
677677
{

system/HTTP/ResponseInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function setJSON($body, bool $unencoded = false);
202202
/**
203203
* Returns the current body, converted to JSON is it isn't already.
204204
*
205-
* @return mixed|string
205+
* @return string|null
206206
*
207207
* @throws InvalidArgumentException If the body property is not array.
208208
*/

system/HTTP/ResponseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function setJSON($body, bool $unencoded = false)
252252
/**
253253
* Returns the current body, converted to JSON is it isn't already.
254254
*
255-
* @return mixed|string
255+
* @return string|null
256256
*
257257
* @throws InvalidArgumentException If the body property is not array.
258258
*/

0 commit comments

Comments
 (0)