-
Notifications
You must be signed in to change notification settings - Fork 144
[CLEANUP] Clean up ParserState
a bit
#1173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dd594f0
to
5aa7231
Compare
5aa7231
to
e04d9d4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though I wonder if the return type for consumeComment
should also be changed as part of this PR - ?
return $result; | ||
} | ||
|
||
/** | ||
* @return ($string is non-empty-string ? non-empty-string : string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know this was possible.
Are you thinking of improving the type annotation, or are you thinking it of changing it from |
Anyway, I have just created #1176 to use |
I added a review comment to the code, but it's disappeared (perhaps I forgot to click the 'Add review comment' button). I was thinking it could be change to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since #1176 has been added to capture the outstanding issue, this can be merged.
No description provided.