I'm developing a WP theme and I'm commenting my PHP code using PHPDoc. I would like to add versions of large code blocks, so the customer knows when it's updated.
Let's say I release initial version 1.0.0, then I update some code in version 1.0.2. How do I document that the code is changed? Will this be correct:
/**
* Code block #1
*
* @since ThemeVersion 1.0.0
* @version 1.0.2
*/
I'm not sure this is a correct way to use @version, since on the other hand I have another case when another block of code have not been changed after the update:
/**
* Code block #2
*
* @since ThemeVersion 1.0.2
* @version 1.0.0
*/
So not sure if this makes sense.. please let me know your thoughts.
Thank you.