Closed LorenzBischof closed 9 years ago
It seems you have \PDO::ATTR_DEFAULT_FETCH_MODE
set to \PDO::FETCH_OBJ
rather than \PDO::FETCH_ASSOC
(or one of the other fetch modes that includes an associative array).
A quick fix for you might be to choose \PDO::FETCH_LAZY
for now, but this is definitely an oversight on my part. I need to set a fetch mode in the PdoAdapter.
Thanks for the bug report.
Thank you very much!
@Lorenzbi You're welcome!
Hello,
I am receiving following error:
127.0.0.1:52605 [200]: /login - Cannot use object of type stdClass as array in /.../vendor/jeremykendall/slim-auth/src/JeremyKendall/Slim/Auth/Adapter/Db/PdoAdapter.php on line 90
I am using following code:
I also added the cookies config and example route. Am I doing something wrong?