Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fixed PHP 5.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Jun 12, 2018
1 parent 9dda5f9 commit 66c56a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServerRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static function fromSwoole(swoole_http_request $request)
$server,
static::normalizeFiles($files),
static::marshalUriFromServer($server, $headers),
$server['REQUEST_METHOD'] ?? 'GET',
isset($server['REQUEST_METHOD']) ? $server['REQUEST_METHOD'] : 'GET',
new SwooleStream($request),
$headers,
$cookie,
Expand Down

0 comments on commit 66c56a0

Please sign in to comment.