Skip to content

Commit 3303443

Browse files
committed
add PHPDocs for mixed params
1 parent 519e2a3 commit 3303443

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

system/Superglobals.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public function __construct(
6464
/**
6565
* Get a value from $_SERVER.
6666
*
67+
* @param server_items|null $default
68+
*
6769
* @return server_items|null
6870
*/
6971
public function server(string $key, mixed $default = null): array|float|int|string|null
@@ -114,6 +116,8 @@ public function setServerArray(array $array): void
114116
/**
115117
* Get a value from $_GET.
116118
*
119+
* @param get_items|null $default
120+
*
117121
* @return get_items|null
118122
*/
119123
public function get(string $key, mixed $default = null): array|string|null
@@ -164,6 +168,8 @@ public function setGetArray(array $array): void
164168
/**
165169
* Get a value from $_POST.
166170
*
171+
* @param post_items|null $default
172+
*
167173
* @return post_items|null
168174
*/
169175
public function post(string $key, mixed $default = null): array|string|null
@@ -214,6 +220,8 @@ public function setPostArray(array $array): void
214220
/**
215221
* Get a value from $_COOKIE.
216222
*
223+
* @param cookie_items|null $default
224+
*
217225
* @return cookie_items|null
218226
*/
219227
public function cookie(string $key, mixed $default = null): array|string|null
@@ -264,6 +272,8 @@ public function setCookieArray(array $array): void
264272
/**
265273
* Get a value from $_REQUEST.
266274
*
275+
* @param request_items|null $default
276+
*
267277
* @return request_items|null
268278
*/
269279
public function request(string $key, mixed $default = null): array|string|null

0 commit comments

Comments
 (0)