Is it possible to generate methods' phpdoc comments when they are missing? #6963
Replies: 3 comments
-
I made my own extended fixer which puts in a TODO comment when missing, just to provide some kind of documentation to satisfy the phpdocfixer, since my team does not have the time currently to document everything all at once ;) |
Beta Was this translation helpful? Give feedback.
-
I'm backing this request it will be quite nice! |
Beta Was this translation helpful? Give feedback.
-
Personally I believe that with PHP as a language moving more and more towards strict typing it does not make sense to enforce phpDoc where it's missing. There are even fixers for removing superfluous phpDoc annotations or phpDoc comments and this is the direction which we should encourage. There are tools like PHPStan which can help with catching those missing types. Having said that, we probably won't support such fixer, even if it was contributed by community. But that's only my opinion, last work goes to @keradus 😉. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions