-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object of class _Request could not be converted to string #15
Comments
Get this as well: PHP Catchable fatal error: Object of class _Request could not be converted to string That is apache error log output, same line. Also, was getting a ton of these warnings: PHP Notice: Undefined variable: namespace in klein.php on line 21 Is that variable suppose to be __namespace? |
@codingkevin Yeah, I was able to fix that error by changing namespace to __namespace on line 21, the original error persists after that. |
This issue was introduced in commit 38ca436. In commit e8357bf aliases were introduced for the <?php
/*if (is_callable($method)) {
$callback = $method;
$method = null;
$count_match = false;
} else*/if (is_callable($route)) {
$callback = $route;
$route = $method;
$method = null;
} This fixes the issue. However I can not tell whether I've broken any of the other code by doing so. It's very untested... |
Apologies guys, should have tested this stuff before pushing it. @samwierema was right, |
in klein.php on line 21 - according to Apache.
This code throws a 500 error.
The text was updated successfully, but these errors were encountered: