TypeError Session.php
Closed this issue · 4 comments
Deleted user commented
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?
bryanjhv commented
Please add complete information.
- PHP version
- Used library version
- Code used to create Slim app
- Code used to register middleware
- Etc
Deleted user commented
PHP version 7.3
Deleted user commented
bryanjhv commented
Here's some help for you:
- Learn how to write on GitHub:
https://help.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax
https://help.github.com/en/github/writing-on-github/working-with-advanced-formatting - Git branching on GitHub:
https://help.github.com/en/github/administering-a-repository/viewing-branches-in-your-repository - slim-3 branch on this repository:
https://github.com/bryanjhv/slim-session/tree/slim-3
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.