php-pm / php-pm-httpkernel

HttpKernel adapter for use of Symfony and Laravel frameworks with PHP-PM

Repository from Github https://github.comphp-pm/php-pm-httpkernelRepository from Github https://github.comphp-pm/php-pm-httpkernel

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

seateng opened this issue · comments

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!

commented

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

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

commented

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

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

Already been fixed. Sorry!

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!

commented

Tagged 1.0.6 to take care