Enabling testing with the module installed on a server running PHP 7.1 returns the following error:
Fatal error: Constant expression contains invalid operations in /app/public_html/sites/all/modules/contrib/rules_forms/rules_forms.test on line 121
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3017846-3.patch | 869 bytes | joelpittet |
Comments
Comment #2
ultrabob commentedThe t() function is what is causing it to not like this being static.
Comment #3
joelpittetRemoving the t() calls.
Comment #5
joelpittetThe failures look unrelated to the patch but I could be wrong?
Comment #6
fonant commentedPatch #3 fixes the HTTP 500 error in PHP 7.2 by removing the unnecessary t() functions. Works for me.
Comment #7
sgdev commentedThere are all types of errors in the tests causing the failures, but the main patch in #3 is right. Marking as reviewed, this is a critical problem.