Skip to content
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

PHP 7.2 compatibility #9

Merged
merged 2 commits into from
Jul 28, 2017
Merged

PHP 7.2 compatibility #9

merged 2 commits into from
Jul 28, 2017

Conversation

xificurk
Copy link
Contributor

Fixes #8

It's ugly, but it works... The only way I could get the tests pass under PHP 7.2 was to use string to refer to Nette\Object. Using alias or FQN does not work, because it triggers autoloading during static analysis and an error is thrown due to the Nette\Object code.

@ondrejmirtes
Copy link
Member

Hi, thanks for the fix! There's no reason to leave 7.2 in allow_failures, can you remove that so that the build fails if something is wrong on 7.2?

@xificurk
Copy link
Contributor Author

Done.

@ondrejmirtes
Copy link
Member

Thanks! I'm gonna release it now as 0.8.1.

@ondrejmirtes ondrejmirtes merged commit a8f79aa into phpstan:master Jul 28, 2017
@xificurk xificurk deleted the php72-compatibility branch July 28, 2017 07:06
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.

None yet

2 participants