Skip to content

Commit d0f7ff7

Browse files
committed
Use spread operator
1 parent bc97368 commit d0f7ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public static function decode(string $recv_buffer, TcpConnection $connection): v
434434
}
435435

436436
// REQUEST
437-
$_REQUEST = \array_merge($_GET, $_POST, $_REQUEST);
437+
$_REQUEST = [...$_GET, ...$_POST, ...$_REQUEST];
438438

439439
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
440440
static::$cache[$recv_buffer]['decode'] = [

0 commit comments

Comments
 (0)