yiisoft / yii2-apidoc

Yii 2 apidoc extension.
https://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
258 stars 121 forks source link

PHP 8.2 not supported yet #297

Closed ondics closed 1 year ago

ondics commented 1 year ago

I built my Docker image using FROM php:8.2-bullseye.

When executing

./vendor/bin/apidoc api controllers/api ./web/apidoc

the result is:

TargetDirectory already exists. Overwrite? (yes|no) [yes]:yes
Error: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated

When building the image using FROM php:8.0-bullseye apidoc page creation works.

The supported PHP versions should be mentioned in the README.md

mtangoo commented 1 year ago

Ignore my previous (and deleted) comment. Yii support PHP8.2 with 2.0.48 version. Please update your composer https://github.com/yiisoft/yii2/releases/tag/2.0.48