8000 minor #32428 [Stopwatch] Fix missing deprecations (yceruto) · symfony/symfony@350ec6c · GitHub
[go: up one dir, main page]

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)
0