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

[Bug]: UuidPropertyDescriber::describe()" method will require a new "array $context" argument in the next major version of its interface #2300

Closed
motoronik opened this issue Jun 13, 2024 · 1 comment · Fixed by #2302
Labels

Comments

@motoronik
Copy link

Version

4.27.0

Description

Hi all :)

After update on

  • nelmio/api-doc-bundle -> 4.27.0
  • zircote/swagger-php -> 1.11.0

I have deprecation record

User Deprecated: The \"Nelmio\\ApiDocBundle\\PropertyDescriber\\UuidPropertyDescriber::describe()\" method will require a new \"array $context\" argument in the next major version of its interface \"Nelmio\\ApiDocBundle\\PropertyDescriber\\PropertyDescriberInterface\", not defining it is deprecated.","context":{"exception":{"class":"ErrorException","message":"User Deprecated: The \"Nelmio\\ApiDocBundle\\PropertyDescriber\\UuidPropertyDescriber::describe()\" method will require a new \"array $context\" argument in the next major version of its interface \"Nelmio\\ApiDocBundle\\PropertyDescriber\\PropertyDescriberInterface\", not defining it is deprecated.","code":0,"file":"/var/www/app/vendor/symfony/error-handler/DebugClassLoader.php:341

I think I need to add an argument array $context = [] in UuidPropertyDescriber::describe

Should I make a pull request or will you add it yourself?

Additional context

No response

@motoronik motoronik added the bug label Jun 13, 2024
@dmamchyts
Copy link
Contributor

Same problem

DjordyKoert added a commit that referenced this issue Jun 19, 2024
DjordyKoert added a commit that referenced this issue Jun 19, 2024
…() (#2302)

| Q | A |

|---------------|---------------------------------------------------------------------------------------------------------------------------|
| Bug fix? | yes |
| New feature? | yes/no <!-- please update src/**/CHANGELOG.md files -->
|
| Deprecations? | yes/no <!-- please update UPGRADE-*.md and
src/**/CHANGELOG.md files --> |
| Issues | Fix #2300 <!-- prefix each issue number with "Fix #", no need
to create an issue if none exists, explain below instead --> |

Fixes deprecation warning from missing `context` parameter on
`UuidPropertyDescriber::describe()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants