Bug: PHP parser not finding static method docblocks
Problem Statement
The PHP parser in Hazaar is not correctly identifying DocBlocks on static class methods. This results in missing or incomplete documentation when generating API documentation.
Who will benefit?
- Developers relying on accurate API documentation.
- Users of the Hazaar PHP parser for code analysis.
- Any application using static methods that require documentation.
Expected Behavior
- The parser should correctly detect and associate DocBlocks with static class methods.
- API documentation should include descriptions, parameters, and return types for static methods.
Actual Behavior
- DocBlocks on static methods are not being detected.
- Generated documentation is missing descriptions and annotations for static methods.
Steps to Reproduce
- Create a class with a static method and a DocBlock above it.
- Run the Hazaar PHP parser.
- Check the output and observe that the static method lacks documentation.
Priority/Severity
-
High (This will bring a huge increase in performance/productivity/usability/legislative cover) -
Medium (This will bring a good increase in performance/productivity/usability) -
Low (anything else e.g., trivial, minor improvements)