We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now, it allows to generate right return type only for 'long' doc blocks, like this:
/** * Some variable * * @var string */ private $var;
And it generates getter and setter method with string return type.
string
But, it doesn't understand short doc block version:
short
/** @var string */ private $var;
It generates with mixed return type.
mixed
The text was updated successfully, but these errors were encountered:
Same problem
Sorry, something went wrong.
I didn't have time to fix this in the TS and submit a PR for it but it's fairly trivial to patch the JS to work this way.
In Property.js change the for loop to use previousline not previousline - 1
and change the end of docblock detection to just use
// Reached the end of the doc block if (!text.includes('*')) {
That seems to "just work" for me, however dirty and hacky :)
No branches or pull requests
Now, it allows to generate right return type only for 'long' doc blocks, like this:
And it generates getter and setter method with
string
return type.But, it doesn't understand
short
doc block version:It generates with
mixed
return type.The text was updated successfully, but these errors were encountered: