Skip to content

Commit

Permalink
Merge pull request #62 from joanhey/spread-operator
Browse files Browse the repository at this point in the history
Use spread operator
  • Loading branch information
joanhey authored Jan 5, 2024
2 parents bc97368 + d0f7ff7 commit 6662f1d
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 6662f1d

Please sign in to comment.