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:
Nicolas Grekas 2020-05-24 20:56:05 +02:00
commit bf43fa3b34
1 changed files with 2 additions and 2 deletions

View File

@ -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()