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

Compatible issues with zircote/swagger-php #566

Closed
WartVader opened this issue Dec 12, 2023 · 1 comment · Fixed by #567
Closed

Compatible issues with zircote/swagger-php #566

WartVader opened this issue Dec 12, 2023 · 1 comment · Fixed by #567

Comments

@WartVader
Copy link

  • L5-Swagger Version: 8.5.0
  • PHP Version: 8.1
  • OS: mac OS (used with laravel sail, and on the dev server is using docker with ubuntu)

Description:

In one day on our dev server stopped working our l5-swagger:generate command and always drop an error of @OA\PathItem was not found, so we go to check what was an issue and after some research we discovered, that l5-swagger is incompatible (might be) with package zircote/swagger-php with version 4.8.1 (on local machine we got 4.7.10 and generating on local machine was fine)

Steps To Reproduce:

Set zircote/swagger-php in your require field in composer to version 4.8.1, and l5-swagger to 8.5.0 and you might get the same error on generating docs. Error that we got:
telegram-cloud-photo-size-2-5456173853106624610-y

@DarkaOnLine
Copy link
Owner

They removed doctrine/annotations https://github.com/zircote/swagger-php/pull/1516/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R8 and now it needs to be installed optionally :(

We might need to add them as requirement for this package

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

Successfully merging a pull request may close this issue.

2 participants