Skip to content

Commit 0ead60b

Browse files
committed
use array|string|null on index, and int|null for filter
1 parent a6df5fa commit 0ead60b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/HTTP/RequestTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private function getClientIP(string $header): ?string
191191
* Fetch an item from the $_SERVER array.
192192
*
193193
* @param array|string|null $index Index for item to be fetched from $_SERVER
194-
* @param int|string|null $filter A filter name to be applied
194+
* @param int|null $filter A filter name to be applied
195195
* @param array|int|null $flags
196196
*
197197
* @return mixed
@@ -204,9 +204,9 @@ public function getServer($index = null, $filter = null, $flags = null)
204204
/**
205205
* Fetch an item from the $_ENV array.
206206
*
207-
* @param string|null $index Index for item to be fetched from $_ENV
208-
* @param int|string|null $filter A filter name to be applied
209-
* @param array|int|null $flags
207+
* @param array|string|null $index Index for item to be fetched from $_ENV
208+
* @param int|null $filter A filter name to be applied
209+
* @param array|int|null $flags
210210
*
211211
* @return mixed
212212
*/

0 commit comments

Comments
 (0)