Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 499af8d

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: Revert "bug #42831 [Mime] Update mime types (fabpot)" Fix implicit float to int cast [Mime] Update mime types [HttpKernel] Fix timeline in profiler
2 parents 8978de7 + cefe78d commit 499af8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Cache/Adapter/AbstractAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public static function createSystemCache(string $namespace, int $defaultLifetime
116116
return $opcache;
117117
}
118118

119-
$apcu = new ApcuAdapter($namespace, (int) $defaultLifetime / 5, $version);
119+
$apcu = new ApcuAdapter($namespace, intdiv($defaultLifetime, 5), $version);
120120
if (null !== $logger) {
121121
$apcu->setLogger($logger);
122122
}

src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function collect(Request $request, Response $response, \Throwable $except
4545
}
4646

4747
$this->data = [
48-
'token' => $response->headers->get('X-Debug-Token'),
48+
'token' => $request->attributes->get('_stopwatch_token'),
4949
'start_time' => $startTime * 1000,
5050
'events' => [],
5151
'stopwatch_installed' => class_exists(Stopwatch::class, false),

0 commit comments

Comments
 (0)