Skip to content
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

PHP7.4 Return type not being detected #469

Open
leon-v opened this issue Aug 13, 2020 · 1 comment
Open

PHP7.4 Return type not being detected #469

leon-v opened this issue Aug 13, 2020 · 1 comment

Comments

@leon-v
Copy link

leon-v commented Aug 13, 2020

<?
/**
 * [test description]
 * @param  bool|boolean $test [description]
 * @return [type]             [description]
 */
function test(bool $test = true) : bool {
	return false;
}
?>

The return type above is specified as bool, but [type] is used in the auto-generated docblock.

Expected result is:

<?
/**
 * [test description]
 * @param  bool|boolean $test [description]
 * @return bool               [description]
 */
function test(bool $test = true) : bool {
	return false;
}
?>
@8ctopus
Copy link

8ctopus commented Sep 25, 2023

Problem is fixed if you override jsdocs.py with this one: https://github.com/CodeByZach/sublime_docblockr/blob/5c15a26789577d63f692f5ead11aab4aefffb505/jsdocs.py

To override, create directory DocBlockr inside the Packages dir then add the jsdocs.py file inside the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants