tuupola/slim-basic-auth

PHP Fatal error: Uncaught TypeError: Return value of Tuupola\\Middleware\\HttpBasicAuthentication::authenticator()

rodrigobrando opened this issue · 3 comments

Hello friends!
Am I facing an unprecedented error, can you help me?

PHP Fatal error: Uncaught TypeError: Return value of Tuupola\\Middleware\\HttpBasicAuthentication::authenticator() must be an instance of Tuupola\\Middleware\\void, none returned in /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php:228\nStack trace:\n#0 [internal function]: Tuupola\\Middleware\\HttpBasicAuthentication->authenticator(Object(Tuupola\\Middleware\\HttpBasicAuthentication\\PdoAuthenticator))\n#1 /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php(171): call_user_func(Array, Object(Tuupola\\Middleware\\HttpBasicAuthentication\\PdoAuthenticator))\n#2 /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php(55): uupola\\Middleware\\HttpBasicAuthentication->hydrate(Array)\n#3 /var/www/dashboard.mobi/plataforma/api/src/middleware.php(19): Tuupola\\Middleware\\HttpBasicAuthentication->__construct(Array)\n#4 /var/www/dashboard.mobi/plataforma/api/public/index.php(30): require('/var/www/dashbo...') in /var/www/dashboard.mobi/plataforma/api/vendor/tuupola/slim-basic-auth/src/HttpBasicAuthentication.php on line 228

Guys, I apologize for opening this Issue. The error was due to the PHP version of the server.
I've been hitting it for 30 hours!

Did composer install library version which was not compatible with server PHP version? If yes then I might have problem with my composer.json file.

Not the error was human, he hears a php downgrade after installation.