lichunqiang / yii2-swagger

yii2 with swagger-php
https://packagist.org/packages/light/yii2-swagger
MIT License
151 stars 47 forks source link

PHP 7.4 support #22

Closed aksafan closed 4 years ago

aksafan commented 4 years ago

Hello, @lichunqiang

With updating my project to php 7.4, got an exception

500 : {"name":"PHP User Warning","message":"Trying to access array offset on value of type null","code":512,"type":"yii\base\ErrorException","file":"/app/vendor/zircote/swagger-php/src/Logger.php","line":38,

It happens cause of old version of zircote/swagger-php usage and it is fixed it newer versions.

Is there any chances to update zircote/swagger-php library to v3.0.3, which has php 7.4 support (https://github.com/zircote/swagger-php/releases/tag/3.0.3)?

aksafan commented 4 years ago

@lichunqiang made pull request in order to fix this issue - https://github.com/lichunqiang/yii2-swagger/pull/23

Please check it and accept if everything is OK.

Best regards