Skip to content

Commit 527bf89

Browse files
committed
Fix missing deprecations
1 parent ea0da05 commit 527bf89

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