Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure we stop looking for file phpdoc block asap
Previously, we were allowing the getDocTagFromOpenTag() method to advance too much when looking for file phpdoc blocks. Now we stop as soon as any of the stop tokens is found. Note that this case is very edge one, only reproducible when there are lots of missing class/function phpdoc block, causing some other phpdoc block to be picked. In any case, I think that it's perfectly ok to shortcut the search that way, it can save us some precious iterations. Fixes moodlehq#172
- Loading branch information