We’re preparing to upgrade our clients to PHP 7.2 and assessing the compatibility of our plugins with this version of PHP. When we ran our tests on version of Types 3.1.2 we turned up a number of warnings, but no errors.
I’ve included the warnings below and I was wondering if we could get confirmation of if Types is compatible with PHP 7.2 and if not, if there was an estimated date when it would be.
Name: Toolset Types
FILE: /webroot/wp-content/plugins/types/vendor/twig/twig/lib/Twig/Lexer.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
87 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
91 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------------------
FILE: /webroot/wp-content/plugins/types/vendor/twig/twig/lib/Twig/Compiler.php
---------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
218 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
---------------------------------------------------------------------------------------------------------
Hi, thanks for the report. I will check with my developers and try to get some additional information about this.
Okay I have been informed that there's nothing to worry about here. The response from our developers is that one of our 3rd party libraries, Twig, checks to see if mbstring.func_overload is supported. If so, it triggers an internal (Twig) warning. It's not actually using the mbstring.func_overload feature to do anything, except to throw this warning. Shouldn't cause any functionality problems.
Great, thanks for confirming! Thank you!