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
The first parameter to @version tag is ignored, and version field is blank in the output #1054
Comments
Until this issue is resolved, I am using
As long as the first parameter (vector) to
The following works too.
The above usage seems like the intended usage of this tag as is evident from the code examples in the following URLs:
For The following works fine in a docblock for a file.
The following works fine in a docblock for a class.
The above two examples of
|
Note that the only reason this workaround works is because "GIT: 0.1" is not actually a valid "GIT" version vector, and is therefore treated as part of a plain text description. The version vector is supposed to be enclosed within "$" (see first and second example you gave). |
This item should be verified before version 2.4 is released to see if all mentioned issues are resolved |
@mvriel This is not resolved in 2.4. @boenrobot Is the version number always supposed to be enclosed within |
The two forms shown in the docs are the two supported ones - a number without any sort of prefix, and a VCS vector enclosed with "$". As I noted above, the reason you are seeing the version (whether it's when you prefix it with "v" or not enclose a VCS vector in "$") is because THOSE forms are considered invalid. Thus, phpDocumentor treats them as plain text descriptions, which are shown without a problem. phpDocumentor should display recognized version vectors alongside the description (perhaps bolded or whatever), but apparently, it's still not doing that. |
Are we going to see this? It seems like it is still not working correctly... |
@TheCodePianist can you confirm this issue is solved with the version that is currently available in master? I think it is solved. |
I'm using phpDocumentor 2.9.0 but this document |
I am using phpdoc 2.0.1 on Debian Testing version (Jessie).
Here is a test script foo.php to reproduce the issue:
After executing
phpdoc -d . -t docs
to generate thedocumentation, this is what I see:
You can see that the 'Version' field appears to be blank.
However if I change the
@version
tag fromto
then I see the following output:
It looks like only the second parameter to
@version
tag isdisplayed in the output. From the documentation at
http://www.phpdoc.org/docs/latest/for-users/phpdoc/tags/version.html
it looks like,
@version 0.1
should also work, i.e. the firstparameter to
@version
tag should also be displayed in theoutput.
This issue occurs for
@since
tag too.The text was updated successfully, but these errors were encountered: