Problems with route and request in middleware

in my middleware
with determineRouteBeforeAppMiddleware set to true

$request->getAttributes('route')
give me an array(2)
where [“route”] is \Slim\Route

var_dump(get_class($request))
output : Slim\Http\Request where I expect to be \Psr\Http\Message\ServerRequestInterface

anyway the code is working fine

I’m not sure if there’s a problem or not… but Slim\Http\Request implements the Psr\Http\Message\ServerRequestInterface interface, so it’s working as expected.

thanks that’s right I was really distract it is an implementaion not the class

still the problem about the route it shouldn’t be an array