api: Can't generate API documentation.
After dingo/blueprint last update, getting message
[ErrorException]
Missing argument 4 for Dingo\Blueprint\Blueprint::generate(), called in /~/vendor/dingo/api/src/Console/Comm
and/Docs.php on line 95 and defined
after running artisan api:docs --output-file docs.md
About this issue
- Original URL
- State: open
- Created 8 years ago
- Reactions: 11
- Comments: 33 (3 by maintainers)
I’m facing the same issue
[ErrorException] Missing argument 4 for Dingo\Blueprint\Blueprint::generate(), called in vendor/dingo/api/src/Console/Command/Docs.php on line 95 and definedI put empty string as a fourth parameter in$contents = $this->blueprint->generate($this->getControllers(), $this->getDocName(), $this->getVersion(), '');at line 95 in the “handle” method inside “vendor/dingo/api/src/Console/Command/Docs.php” and it worked fine for me. it’s just a workaround and I hope it helps. thanksI try a
"dingo/api": "dev-master"but the commandartisan api:docs --output-file docs.md -vvvreturnSame issue here.
Same issue here.
Same issue here.
Same issue here.
Still getting this error :
[InvalidArgumentException] Expected a string. Got: boolean
Fixed it by commenting out https://github.com/phpDocumentor/ReflectionDocBlock/blob/master/src/DocBlockFactory.php#L84. Not sure the negative effects of this but it allows me to generate the docs which is what I need for now.
@hskrasek in fact that did work, forgot about stability settings mentioned by @johannesschobel Thank you for the temporary fix, hope this will get resolved soon. Cheers.
@mohamed-atef thanks! that worked as a dirty hack to at least get our documents published. Would be helpful if we get an official fix on this.
[Solution] checkout master branch
"dingo/api": "dev-master",add min stability and prefer stable option to composer.json
"minimum-stability": "dev","prefer-stable" : true