Skip to content

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

Closed
wants to merge 3 commits into from
Closed

Support PHP7.1 nullable types #292

wants to merge 3 commits into from

Conversation

felixfbecker
Copy link
Owner

Closes #290

if (is_string($node)) {
// Resolve a string like "bool" to a type object
return $this->typeResolver->resolve($node->returnType);
}
Copy link

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.

Copy link
Owner Author

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)

@ghost
Copy link

ghost commented Feb 11, 2017

I applied this patch locally (with the string case fix) and it seemed to work.

@felixfbecker
Copy link
Owner Author

Cool, thanks for trying out! Tests are failing though, this seems to have caused some side-effect

@ghost
Copy link

ghost commented Feb 11, 2017

yeah, I cared more about getting rid of the problems window constantly popping up than I did about making sure it properly worked :(

@jens1o
Copy link
Contributor

jens1o commented Apr 17, 2017

any news on this? It seems with latest master the tests shouldn't fail anymore.

@jens1o
Copy link
Contributor

jens1o commented Apr 17, 2017

cursed...

@ghost
Copy link

ghost commented Jun 26, 2017

this can be closed now, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants