-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Revert PR - comments format #3555
Comments
Does OpenMage/Magento have a public phpDocumentor archive or why is that important to keep? |
ah ok so this is the documentation (I searched for that before creating the PR and couldn't find): In short, it duplicates the doc in the template for all the "vars". I'd agree to revert if the doc had types but it seems to me that it only has descriptions (https://github.com/OpenMage/magento-lts/pull/3552/files) so I don't see the point of having a template just for a generic description of multiple constants, which don't even explain what the constant does :-\ eg: But if people think it's important let's revert it. |
The arguments offered are in favor of a revert. I have no idea how useful will be those comments in the future. |
@addison74 actually I said the opposite 😅 and from the emoj reaction I think @elidrissidev agree. @pquerner just asked a question. so let's see if somebody else participates in the discussion. |
I do not oppose reverting the PR as @sreichel's point is completely valid, but the comments that were removed are not adding much value anyways and the description of the constants as well as their type can be easily inferred from their names. Anyways I'll approve it if someone creates it. |
I don't think there's any value in reverting so I'll not participate, but I'll not oppose, obviously. edit: actually I think the source is far less readable and it would be so much better to have single comments for every const/variable, but with proper description/typing, otherwise what's the point. |
What I see its a functionality to copy comments onto multiple variables? My first question would be, is it supported by phpstan for type informations? (or phpstorm?) Its also documented in their code, although not in their documentation https://github.com/phpDocumentor/ReflectionDocBlock/blob/7b217217725dc991a0ae7b995041cee1d5019561/src/DocBlock.php#L98-L117 |
I can create a PR in like 15 minutes to convert those few "real" tags that we lost (1 deprecated and a couple of "mixed" types) if wanted |
There is no public one, but maybe private? With #3552 phpDocumentor looses some descriptions - for absolutly no reason. I am also pretty sure we had a similar PR years ago, that was closed for same reason. (cant find it) |
Closed with #3558 |
Ref #3552
Please check https://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#basics.docblock
The text was updated successfully, but these errors were encountered: