-
Notifications
You must be signed in to change notification settings - Fork 185
Support PHP7.1 nullable types #292
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
src/DefinitionResolver.php
Outdated
if (is_string($node)) { | ||
// Resolve a string like "bool" to a type object | ||
return $this->typeResolver->resolve($node->returnType); | ||
} |
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.
this can't work if $node is a 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.
woops, this is meant to read resolve($node)
I applied this patch locally (with the string case fix) and it seemed to work. |
Cool, thanks for trying out! Tests are failing though, this seems to have caused some side-effect |
yeah, I cared more about getting rid of the problems window constantly popping up than I did about making sure it properly worked :( |
any news on this? It seems with latest master the tests shouldn't fail anymore. |
cursed... |
this can be closed now, right? |
Closes #290