Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Getting Method ReflectionParameter::getClass() is deprecated on PHP 8.0.3 #10

Closed
nope123nope opened this issue Mar 30, 2021 · 1 comment

Comments

@nope123nope
Copy link

Hi, getting server error while using this package on PHP 8.0.3 in HttpRoute.php on line 130

It's fixed by

$formRequest = Collection::make($parameters)->filter(function (ReflectionParameter $parameter) {
  return $parameter->getDeclaringClass() && $parameter->getDeclaringClass()->isSubclassOf(FormRequest::class);
})->first();

Hope this will be fixed in later updates.

Thanks for your attention :)

@jkocik
Copy link
Owner

jkocik commented May 17, 2021

Hi,

Thanks for the suggestion! 2.0.3 solves the issue.

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

No branches or pull requests

2 participants