Skip to content

Commit c1d0b10

Browse files
committed
Add CLIRequest::getCookie()
This is a placeholder method. Cookie helper may call getCookie() with a CLI Request.
1 parent df0fa73 commit c1d0b10

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

system/HTTP/CLIRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,20 @@ public function getGetPost($index = null, $filter = null, $flags = null)
272272
return $this->returnNullOrEmptyArray($index);
273273
}
274274

275+
/**
276+
* This is a place holder for calls from cookie_helper get_cookie().
277+
*
278+
* @param array|string|null $index Index for item to be fetched from $_COOKIE
279+
* @param int|null $filter A filter name to be applied
280+
* @param mixed $flags
281+
*
282+
* @return null
283+
*/
284+
public function getCookie($index = null, $filter = null, $flags = null)
285+
{
286+
return null;
287+
}
288+
275289
/**
276290
* @param array|string|null $index
277291
*

0 commit comments

Comments
 (0)