zircote / swagger-php

A php swagger annotation and parsing library
http://zircote.github.io/swagger-php/
Apache License 2.0
5.08k stars 933 forks source link

Update `jsonSerialize` return (`Operation`) #1576

Closed AurelienPillevesse closed 5 months ago

AurelienPillevesse commented 5 months ago

When I execute my test with the last version of packages + PHP 8.3, I have this warning :

1x: Method "JsonSerializable::jsonSerialize()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "OpenApi\Annotations\Operation" now to avoid errors or add an explicit @return annotation to suppress this message.

AurelienPillevesse commented 5 months ago

All changes in one PR, see : https://github.com/zircote/swagger-php/pull/1575