Skip to content
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

route:list get_class() expects parameter 1 to be object, null given #83

Open
milanbeo opened this issue May 21, 2020 · 1 comment
Open

Comments

@milanbeo
Copy link

message: ErrorException: get_class() expects parameter 1 to be object, null given
in \bsrestoauth2\vendor\flipbox\lumen-generator\src\LumenGenerator\Console\RouteListCommand.php:65

Used in Lumen7 + dingo 3. causes part of the code in dingo routes:

$api->get(
'/',
function () {
return [
'message' => trans('messages.welcome'),
'branch' => 'dev-production',
];
}
);

It works normally in use.

@mattkomarnicki
Copy link

I have the exact same issue. Affected line is 'controller' => get_class($innerRoute->getControllerInstance()), in the RouteListCommand class.

Any chance for a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants