minor #36941 [HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc() (derrabus)
This PR was merged into the 5.1 branch.
Discussion
----------
[HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc()
| Q | A
| ------------- | ---
| Branch? | 5.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | #36872
| License | MIT
| Doc PR | N/A
This should fix the remaining red php 8 test of the HttpFoundation suite.
Commits
-------
12f734d8b3
[HttpFoundation] Avoid TypeError when calling \SessionHandlerInterface::gc().
This commit is contained in:
commit
bf43fa3b34
|
@ -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()
|
||||
|
|
Reference in New Issue