-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
can't configure php to get docblock #71
Comments
Hi. Every language, besides C or C++, will work out-of-the-box without the use of third party. Only C and C++ require third ypart libs. You can simple do this: function greet(string $name) {
echo "Hello " . $name;
} Keep your cursor at line 1 here and press /**
* [TODO:description]
*
* @param string $name [TODO:description]
* @return [TODO:type] [TODO:description]
*/
function greet(string $name) {
echo "Hello " . $name;
} |
If you can't get it to work, then I suggest you paste your code here you try to generate documentation for. Maybe you have found a scenario that doesn't generate properly. |
public function koja(string $ggg): array
{
throw new \Exception('sfdsfdsds');
} I removed return type and it started working. Is there possibilities to show return type. And maybe there is example how template can be adjusted: I don't need all helper texts and params should be tabbed, space before return. And as I understand Exceptions are not shown, too |
the result what I want is /**
* @param string $ggg
* @param array $a
*
* @return array
* @throws \Exception
*/
public function koja(string $ggg, array $a): array
{
throw new \Exception('sfdsfdsds');
} |
Ah, yeah, since a recent php 7 version it's possible to add return types, which hasn't been supported. I'll add support for this after #65 has been merged. |
This feature has been merged and released in v2.1.0. I've added support for PHP 7 return type declarations and PHP 8 proposed union types. Feel free to submit any new issues if you experience any unwanted behavior in the future. Thanks for your contribution. |
Installed doge via Plug. Tool itself works - tried with python but I can't get it working for php. Maybe there should be some additional installs? Thought about PhpDocumentor2 but DoGe didn't start working
The text was updated successfully, but these errors were encountered: