Skip to content

Commit

Permalink
[HttpFoundation] Setting REQUEST_TIME_FLOAT when constructing a Req…
Browse files Browse the repository at this point in the history
…uest object
  • Loading branch information
Carlos Tasada committed Jan 31, 2021
1 parent 7f49c84 commit 63a198b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ public static function create($uri, $method = 'GET', $parameters = [], $cookies
'SCRIPT_FILENAME' => '',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_TIME' => time(),
'REQUEST_TIME_FLOAT' => microtime(true),
], $server);

$server['PATH_INFO'] = '';
Expand Down

0 comments on commit 63a198b

Please sign in to comment.