You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a function callback with the link below it throws an error
get('/', function() {
echo"test";
});
However, if you change the link to literally anything else, it will work. This issue seems to only be present on / link.
The error message created is attached below.
Fatal error: Uncaught Error: Object of class Closure could not be converted to string in C:\xampp\htdocs\rbc\router.php:38 Stack trace: #0 C:\xampp\htdocs\rbc\router.php(6): route('/', Object(Closure)) #1 C:\xampp\htdocs\rbc\routes.php(14): get('/', Object(Closure)) #2 {main} thrown in C:\xampp\htdocs\rbc\router.php on line 38
This issue was tested with a brand new clone of this repo.
The text was updated successfully, but these errors were encountered:
When creating a function callback with the link below it throws an error
However, if you change the link to literally anything else, it will work. This issue seems to only be present on
/
link.The error message created is attached below.
This issue was tested with a brand new clone of this repo.
The text was updated successfully, but these errors were encountered: