You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have constants in classes documented as the following sample:
/**
* @constant Invoice is solved - meaning invoice is paid and all related bookings are set to solved
*/
const STATUS_SOLVED = 900;
This parses correct. But when I cut the string in two lines (so it's below 80 characters per line) the second and subsequent lines are ignored in the resulting documentation file.
/**
* @constant Invoice is solved - meaning invoice is paid and all related
* bookings are set to solved
*/
const STATUS_SOLVED = 900;
Are there any rules that constants have to be documented in one single line?
The text was updated successfully, but these errors were encountered:
Two side notes regarding the fix for future reference:
Officially, there is no @constant annotation in phpDoc as far as I could find
The actual parsing implementation wasn't that off - it took the first line as compact summary, the following lines as description body. I changed this to be merged together. All tests are still good but I'm not fully convinced yet that won't break anything...
I have constants in classes documented as the following sample:
This parses correct. But when I cut the string in two lines (so it's below 80 characters per line) the second and subsequent lines are ignored in the resulting documentation file.
Are there any rules that constants have to be documented in one single line?
The text was updated successfully, but these errors were encountered: