nelmio / NelmioApiDocBundle

Generates documentation for your REST API from annotations
MIT License
2.23k stars 833 forks source link

[Bug]: Deprecation errors after updating to 4.26.1 #2279

Closed deluxetom closed 4 months ago

deluxetom commented 5 months ago

Version

4.26.1

Description

I'm seeing a ton of these messages now:

deprecation.INFO: User Deprecated: Since zircote/swagger-php 4.9: Context detecting is deprecated {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since zircote/swagger-php 4.9: Context detecting is deprecated at /app/vendor/zircote/swagger-php/src/Context.php:197)"} []

Additional context

Related ticket: https://github.com/zircote/swagger-php/issues/1579

I'm not sure how we can fix that with NelmioApiDocBundle or it's an issue with swagger-php

DerManoMann commented 5 months ago

It's something I've tried before in swagger-php and I thought things got fixed here, but apparently not :/

Maybe I need a completely different approach - sigh.

D3strukt0r commented 5 months ago

For more context for everyone, came from this merge: https://github.com/zircote/swagger-php/pull/1563

DerManoMann commented 5 months ago

This should be fixed in swagger-php 4.9.2 - https://github.com/zircote/swagger-php/pull/1586

deluxetom commented 4 months ago

@DerManoMann thank you!