-
Notifications
You must be signed in to change notification settings - Fork 136
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
Push to PHP 7.2 #159
Push to PHP 7.2 #159
Conversation
HHVM is now definitely broken because PHPcpd relies on Symfony4.. |
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.
Excellent job! I've noticed a couple of issues with properties losing their null
default, but other than that, looks good to me! 👍 (I should probably admit that I haven't reviewed everything in detail though, due to the size of the PR).
Psalm really doesn't like those assertions... And neither do I.. |
It makes sense, after all. It's not checking the source code for the webmozart/assert library, so it doesn't have any possible way to know that after the assertion, the variable is guaranteed to have a value. In any case, I'd say psalm is serving its purpose very well... 😄 |
Can we specifically include the webmozart source to prevent these kind of issues in the future? |
If it passes the psalm tests, that could be a good idea, yes. I was already thinking about it, but I'm not sure it would pass. Also, if it breaks at some point, our builds would break with nothing we can do to fix them... |
Changes to the webmozart library are minimal, looking at their history.. I'd say we go for it. Given the nature of the xmlseclibs library, we may want to include that one too. Also not a library that has too many changes. |
xmlseclibs is failing hard nowadays. I submitted a PR to fix the issues, but would need that merged (and psalm integrated as part of the build process as well) before we can include it in our own tests. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
How do you feel about writing our own Stub-files for XMLSecLibs and Webmozart? As an alternative to including them in the Psalm-config. This is also really useful for SSP, for PHP-libs like |
OK, stubs are nice for php-libs, not for the webmozart asserts. |
Since we require PHP 7.2, we can now also move to PhpUnit 8. Only some deprecation warnings needed attention.
Minimum version is PHP 7.2
Upgrades PHPunit to 7.x