-
-
Notifications
You must be signed in to change notification settings - Fork 50
TypeResolver - Ignore whitespaces around tokens #57
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
@popy-dev I think we do want you to restrict this to one space after comma, while not allowing for any additional spaces elsewhere. Also, you may need to rebase against master to clear the conflict. |
@popy-dev would also be good to adjust test cases to highlight instances of the extra spacing not being allowed. |
Back from holidays, I'll have a look at this soon. Thanks for feedback ! |
Maybe i should have answered there after I submitted fixes ? Also, note that travis runs had bugs unrelated to the patch. |
Thanks for the update.I need to check this in detail. To see what is going on. And if all changes are needed. |
Thanks, this looks good. |
this change seems mostly pointless, as https://github.com/phpDocumentor/ReflectionDocBlock splits on whitespace when parsing out |
could be, but that needs to be fixed in the Docblock component. |
This is an attempt to fix issue #49. While fixing it it appeared simpler to update the preg split pattern to match (and ignore) whitespaces everywhere, which means following types will work :
If it is too open, I can change that to only ignore one|all whitespace after the
,
token.I also updated the PREG comment.