Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
21 | 1 | public function processRequest(ServerRequestInterface $request): ServerRequestInterface |
|
22 | { |
||
23 | 1 | $sessionManager = new SessionManager($this->zendSessionConfig); |
|
24 | 1 | $container = new Container(str_replace('.', '_', $request->getUri()->getHost()), $sessionManager); |
|
25 | |||
26 | 1 | $session = new ZendSession($sessionManager, $container); |
|
27 | 1 | return $request->withAttribute('session', $session); |
|
28 | } |
||
29 | |||
35 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..