-
Notifications
You must be signed in to change notification settings - Fork 282
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
Support PHP 8 #4289
Support PHP 8 #4289
Conversation
This one made the setup wizard working for me. |
aa6c7df
to
5a2f3b9
Compare
Note: PHP 8 doesn’t like our Mockery version (parent keyword w/o a parent class), neither us in combination with the latest Mockery version (base/derived method incompatibility). I consider the latter unfounded and a bug in PHP itself. |
3ef5f53
to
d1ba493
Compare
The changes from this PR along with 9748994 & 3ef5f53 have been included as patches in the icingaweb2 (2.8.2-2~exp1) package in Debian in preparation of the transition to php8.0. While the web interface mostly works, the dashboard does not. The browser console shows:
This appears to be caused by the JShrink, from the apache error log:
This seems to be known issue: tedious/JShrink#96 Updating Minifier.php to the unreleased version in master (tedious/JShrink@ab780a6) resolves this issue. Ondřej Surý, the maintainer of PHP in Debian, also mentioned that newer versions of Mockery and PHPUnit are required for PHP 8. |
Hello @sebastic and thank you for figuring that out! Please could you open a PR?
Yes, how to make the test also working is still TBD (#4289 (comment)). Best, |
Done: #4298 |
JShrink 1.4 with PHP 8.0 support has been released: |
d1ba493
to
fe5249f
Compare
90f96d7
to
30a0f9b
Compare
30a0f9b
to
9d94c4b
Compare
... as PHP 8 doesn't tolerate such. refs #4287
…) with an invalid index ... as PHP 8 doesn't tolerate that. refs #4287
…HP 8 ... as recommended here: https://www.php.net/manual/de/migration80.incompatible.php refs #4287
9d94c4b
to
b3eeb5a
Compare
Got the checks all working. Also, I've removed the Gonna test this myself on a PHP 8 installation now. If all works, I'll merge this today. (Also #4298, once I had a look at it) |
`ReflectionClass::newInstanceArgs()` seems to respect string keys since PHP 8. refs #4289
`ReflectionClass::newInstanceArgs()` seems to respect string keys since PHP 8. refs #4289
fixes #4287