is there any way to preserve phpdoc? #7305
Unanswered
steamboatid
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Hi, I'm not sure I understand... Could you share minimal example code snippet with demo? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
dear all,
let's assume that the phpdoc is valid and has been checked.
i want to upgrade unmaintained legacy php code into --at least-- php8.1 fully comply code, especially on the function arguments and function return value.
current result,
rector able to add return value types and the arguments types to the functions, but it also remove the phpdoc.
expected result,
add return value types and the arguments types to the functions, but preserve the phpdoc.
fyi,
i also use phpcbf to meet the code style standards.
many thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions