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

httpkernel-adapter/Bootstraps/Laravel.php:165 Exception #142

Closed
seateng opened this issue Sep 27, 2018 · 7 comments
Closed

httpkernel-adapter/Bootstraps/Laravel.php:165 Exception #142

seateng opened this issue Sep 27, 2018 · 7 comments

Comments

@seateng
Copy link

seateng commented Sep 27, 2018

The exception was: ArgumentCountError: ReflectionMethod::__construct() expects exactly 1 parameter, 2 given in /Users/seateng/Projects/Seateng/labs/laravel/laravel_ppm/vendor/php-pm/httpkernel-adapter/Bootstraps/Laravel.php:165

$method = new \ReflectionMethod(get_class($this->app), ['name' => 'register']);
to:
$method = new \ReflectionMethod(get_class($this->app), 'register');

Running!

@andig
Copy link
Contributor

andig commented Sep 27, 2018

I‘m confused- this class has 2 constructors? See http://php.net/manual/en/reflectionmethod.construct.php

@marcj
Copy link
Member

marcj commented Sep 27, 2018

Yeah, but it does not have (string, array), so we need to call it via (string, string).

@andig
Copy link
Contributor

andig commented Sep 27, 2018

Fair, but that should not cause the error message above? I‘ll give it another try...

@andig andig closed this as completed in f6d1250 Sep 28, 2018
@snellingio
Copy link

I can confirm this is an issue on my end. Will look at making a PR this week. Haven't run into this issue until starting a new project with the latest version of php & Laravel

@snellingio
Copy link

Already been fixed. Sorry!

@snellingio
Copy link

If you run into this issue: the current tagged versions do not have this fix. Set php-pm/httpkernel-adapter to dev-master and you're good to go!

@andig
Copy link
Contributor

andig commented Jan 2, 2019

Tagged 1.0.6 to take care

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

4 participants