-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Error: array_unshift() expects parameter 1 to be array, object given #16
Comments
can you set YII_DEBUG to true here: https://github.com/yiisoft/yii2-apidoc/blob/master/apidoc#L11 |
MacBook-Pro-de-Francisco:roots franciscobarrento$ vendor/bin/apidoc api backend/components ./yii2docs in /Applications/MAMP/htdocs/dev/coggwheel/roots/vendor/yiisoft/yii2-apidoc/vendor/cebe/markdown/Parser.php:201 Stack trace: |
I have same problem.
|
could you provide the PHPdoc of the files you are trying to generate docs for? |
From the code of APIdoc I do not see how this could ever happen. Can you provide the versions your have installed? please paste the output of |
@karataserkan I had the same problem but updating from composer resolved the issue. |
@cebe Is it fine to use yii2-apidoc for REST api documentation? or is there any other better way? |
yii2-apidoc is for classes, methods and guide. for REST API you should use something different. e.g. |
@mushahidh thank you, issue resolved |
PHP Warning 'yii\base\ErrorException' with message 'array_unshift() expects parameter 1 to be array, object given' in Parser.php:201 (2.0.0-beta) |
@luciuz please use the latest version, not beta. |
When add a description to a function or a class the apidoc show this error:
Searching files to process... done.
Loading apidoc data from cache... done.
Checking for updated files... done.
1 file to update.
Processing files... done.
Updating cross references and backlinks... done.
Rendering files: 0% (0/2) ETA: n/a Error: array_unshift() expects parameter 1 to be array, object given
The text was updated successfully, but these errors were encountered: