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 https://github.com/symfony/symfony/pull/32408
Commits
-------
527bf89a27
Fix missing deprecations
This commit is contained in:
commit
350ec6cc7e
@ -26,7 +26,7 @@ class TraceableEventDispatcherTest extends TestCase
|
|||||||
public function testStopwatchSections()
|
public function testStopwatchSections()
|
||||||
{
|
{
|
||||||
$dispatcher = new TraceableEventDispatcher(new EventDispatcher(), $stopwatch = new Stopwatch());
|
$dispatcher = new TraceableEventDispatcher(new EventDispatcher(), $stopwatch = new Stopwatch());
|
||||||
$kernel = $this->getHttpKernel($dispatcher, function () { return new Response(); });
|
$kernel = $this->getHttpKernel($dispatcher, function () { return new Response('', 200, ['X-Debug-Token' => '292e1e']); });
|
||||||
$request = Request::create('/');
|
$request = Request::create('/');
|
||||||
$response = $kernel->handle($request);
|
$response = $kernel->handle($request);
|
||||||
$kernel->terminate($request, $response);
|
$kernel->terminate($request, $response);
|
||||||
|
@ -82,7 +82,7 @@ class Section
|
|||||||
*/
|
*/
|
||||||
public function open($id)
|
public function open($id)
|
||||||
{
|
{
|
||||||
if (null === $session = $this->get($id)) {
|
if (null === $id || null === $session = $this->get($id)) {
|
||||||
$session = $this->children[] = new self(microtime(true) * 1000, $this->morePrecision);
|
$session = $this->children[] = new self(microtime(true) * 1000, $this->morePrecision);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user