mirror of
https://github.com/doctrine/reflection.git
synced 2026-03-24 08:42:07 +01:00
DocComment for the main class is incorrect when an anonymous class is used inside. #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xopoc14 on GitHub (Mar 21, 2019).
Example of the class:
Then I try to get DocComment by next code:
expected result:
actual result: empty string.
After debugging I found out that the parse overrides DocComment for the main class by DocComment of an anonymous class which is empty.
@Ocramius commented on GitHub (Mar 24, 2019):
@xopoc14 would you be able to integrate a test scenario with the existing test suite (as a pull request) on 1.x?
@xopoc14 commented on GitHub (May 13, 2019):
@Ocramius added #20