Skip to content

Commit 63a198b

Browse files
author
Carlos Tasada
committed
[HttpFoundation] Setting REQUEST_TIME_FLOAT when constructing a Request object
1 parent 7f49c84 commit 63a198b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Request.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ public static function create($uri, $method = 'GET', $parameters = [], $cookies
333333
'SCRIPT_FILENAME' => '',
334334
'SERVER_PROTOCOL' => 'HTTP/1.1',
335335
'REQUEST_TIME' => time(),
336+
'REQUEST_TIME_FLOAT' => microtime(true),
336337
], $server);
337338

338339
$server['PATH_INFO'] = '';

0 commit comments

Comments
 (0)