Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

bugfix: Make sure the correct docblock is registered #9

Merged
1 commit merged into from
Dec 29, 2010
Merged

bugfix: Make sure the correct docblock is registered #9

1 commit merged into from
Dec 29, 2010

Conversation

christeredvartsen
Copy link
Contributor

Parsing code written as follows registers the wrong docblock:

/**
 * Some comment
 */
class Foo{function foo(){ /* ... */ }}

When parsing such code the foo method gets the class' docblock.

This patch should fix that problem. I have attached some tests with checks for this.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant