PHP8 Compatibility
-
Hello,
thank you for your great plugin. I’m doing first tests with WordPress 5.6, Ninja Forms 3.4.33 on a PHP8 system. At first i got a hard error at line 247 of:
ninja-forms/deprecated/includes/admin/edit-field/li.php
which stated that curly brackets are not allowed for accessing arrays. So i changed it to:
…
} elseif ( !empty($v) && is_string($v) && ( ('{' == $v[0] && '}' == $v[strlen($v) - 1]) || ('[' == $v[0] && ']' == $v[strlen($v) - 1]) || preg_match('/^\(?function ?\(/', $v) ) ) {
…
which seems to work for now. But i’m a little bit afraid that there are more issues hidden in the code which are currently not shown just because code is not entered.Is there PHP8 compatibility planned?
Thank you very much!
Best regards
Benjamin
- The topic ‘PHP8 Compatibility’ is closed to new replies.