Skip to content

Commit

Permalink
Use spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Jan 5, 2024
1 parent bc97368 commit d0f7ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public static function decode(string $recv_buffer, TcpConnection $connection): v
}

// REQUEST
$_REQUEST = \array_merge($_GET, $_POST, $_REQUEST);
$_REQUEST = [...$_GET, ...$_POST, ...$_REQUEST];

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

0 comments on commit d0f7ff7

Please sign in to comment.