Skip to content

Commit 82c3d25

Browse files
committed
Use returnNullOrEmptyArray($index) instead of null
1 parent c1d0b10 commit 82c3d25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/CLIRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public function getGetPost($index = null, $filter = null, $flags = null)
283283
*/
284284
public function getCookie($index = null, $filter = null, $flags = null)
285285
{
286-
return null;
286+
return $this->returnNullOrEmptyArray($index);
287287
}
288288

289289
/**

0 commit comments

Comments
 (0)