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

support or update for laravel 8 #59

Open
ap-coder opened this issue Jan 5, 2021 · 1 comment
Open

support or update for laravel 8 #59

ap-coder opened this issue Jan 5, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ap-coder
Copy link

ap-coder commented Jan 5, 2021

  • Laravel Swagger Version: dev-master
  • Laravel Version: 8
  • PHP Version: 8

Description:

First install says needs php 7.4 or higher but i have php8
i installed with --ignore-platform-req="mtrajano/laravel-swagger"

but when i try to generate i get the error below.

php artisan laravel-swagger:generate

   ErrorException

  Method ReflectionParameter::getClass() is deprecated

  at vendor/mtrajano/laravel-swagger/src/Generator.php:193
    189190$parameters = $action_instance->getParameters();
    191192foreach ($parameters as $parameter) {
  ➜ 193$class = $parameter->getClass();
    194195if (!$class) {
    196continue;
    197▕             }

      +18 vendor frames
  19  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
@ap-coder ap-coder added the bug Something isn't working label Jan 5, 2021
@viki53
Copy link

viki53 commented Mar 10, 2021

@ap-coder Hi, I missed this issue yesterday for some reason. Looks like I posted a duplicate with #60

I also posted PR #61 to fix the deprecation error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants