From 12f734d8b3952e6d2249048da43996075e094011 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 24 May 2020 14:18:07 +0200 Subject: [PATCH] [HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc(). --- .../Session/Storage/Handler/MarshallingSessionHandlerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MarshallingSessionHandlerTest.php b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MarshallingSessionHandlerTest.php index e9eb46801e..c414026faa 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MarshallingSessionHandlerTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MarshallingSessionHandlerTest.php @@ -72,9 +72,9 @@ class MarshallingSessionHandlerTest extends TestCase $marshallingSessionHandler = new MarshallingSessionHandler($this->handler, $this->marshaller); $this->handler->expects($this->once())->method('gc') - ->with('maxlifetime')->willReturn(true); + ->with(4711)->willReturn(true); - $marshallingSessionHandler->gc('maxlifetime'); + $marshallingSessionHandler->gc(4711); } public function testRead()