Fix missing deprecations

This commit is contained in:
Yonel Ceruto 2019-07-08 08:57:32 -04:00
parent ea0da05cd6
commit 527bf89a27
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class TraceableEventDispatcherTest extends TestCase
public function testStopwatchSections()
{
$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('/');
$response = $kernel->handle($request);
$kernel->terminate($request, $response);

View File

@ -82,7 +82,7 @@ class Section
*/
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);
}