Skip to content

Commit 350ec6c

Browse files
committed
minor #32428 [Stopwatch] Fix missing deprecations (yceruto)
This PR was merged into the 4.4 branch. Discussion ---------- [Stopwatch] Fix missing deprecations | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | no needed Fix #32408 Commits ------- 527bf89 Fix missing deprecations
2 parents e1cea97 + 527bf89 commit 350ec6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TraceableEventDispatcherTest extends TestCase
2626
public function testStopwatchSections()
2727
{
2828
$dispatcher = new TraceableEventDispatcher(new EventDispatcher(), $stopwatch = new Stopwatch());
29-
$kernel = $this->getHttpKernel($dispatcher, function () { return new Response(); });
29+
$kernel = $this->getHttpKernel($dispatcher, function () { return new Response('', 200, ['X-Debug-Token' => '292e1e']); });
3030
$request = Request::create('/');
3131
$response = $kernel->handle($request);
3232
$kernel->terminate($request, $response);

src/Symfony/Component/Stopwatch/Section.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function get($id)
8282
*/
8383
public function open($id)
8484
{
85-
if (null === $session = $this->get($id)) {
85+
if (null === $id || null === $session = $this->get($id)) {
8686
$session = $this->children[] = new self(microtime(true) * 1000, $this->morePrecision);
8787
}
8888

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy