bryanjhv/slim-session

TypeError Session.php

Closed this issue · 4 comments

Hi, implementing the last modification: Update to work with Slim Framework 4 I find the problem in the attached photo and with this text:

Type: TypeError
Message: Argument 2 passed to Slim\Middleware\Session::__invoke() must be an instance of Psr\Http\Server\RequestHandlerInterface, instance of Slim\Http\Response given
File: /vendor/bryanjhv/slim-session/src/Slim/Middleware/Session.php
Line: 74

How can I solve it?

IMG_20200212_031401

Please add complete information.

  • PHP version
  • Used library version
  • Code used to create Slim app
  • Code used to register middleware
  • Etc

@bryanjhv

PHP version 7.3

Here's some help for you:

Kindly read it all before posting again.
Also, please make sure you know what you're doing.
For reference: you're using Slim 3 Framework this time.
Also add requested information so I don't waste my time reading.