The type tests\mocks\Psr\Http\Mes...\ServerRequestInterface was not found. Did you mean Psr\Http\Message\ServerRequestInterface? If so, make sure to prefix the type with \.
Loading history...
14
*/
15
protected $request;
16
17
/**
18
* Process method to conform to the delegate interface.
19
*
20
* @param ServerRequestInterface $request
21
* @return void
22
*/
23
public function process(ServerRequestInterface $request)
It seems like $request of type Psr\Http\Message\ServerRequestInterface is incompatible with the declared type tests\mocks\Psr\Http\Mes...\ServerRequestInterface of property $request.
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..
The expression return $this->request returns the type tests\mocks\Psr\Http\Mes...\ServerRequestInterface which is incompatible with the documented return type void.