Skip Navigation

[Resolved] Warning compatibility PHP 8.0

This support ticket is created 3 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 3 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#2325113

Executing a php8 compatibility scan by vendor/bin/phpcs -p . --standard=PHPCompatibilityWP --runtime-set testVersion 8.0 --extensions=php --report-full=compati.txt I found:

FILE: ...Silva/projects/wp-atomic-bulletin/wp-content/plugins/types/vendor/toolset/toolset-common/lib/Twig/src/Compiler.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
194 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------------------------------------

FILE: ...ojects/wp-atomic-bulletin/wp-content/plugins/types/vendor/toolset/toolset-common/lib/Twig/src/ExpressionParser.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
60 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_arg(), no longer report the original value
| | as passed to a parameter, but will instead provide the current value. The parameter "$env" was used,
| | and possibly changed (by reference), on line 53.
------------------------------------------------------------------------------------------------------------------------

FILE: ...vo Silva/projects/wp-atomic-bulletin/wp-content/plugins/types/vendor/toolset/toolset-common/lib/Twig/src/Lexer.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
98 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
101 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------------------------------------

FILE: ...-atomic-bulletin/wp-content/plugins/types/vendor/toolset/toolset-common/lib/whip/src/messages/Whip_HostMessage.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
45 | WARNING | Passing the $glue and $pieces parameters in reverse order to implode has been deprecated since PHP 7.4;
| | $glue should be the first parameter and $pieces the second
------------------------------------------------------------------------------------------------------------------------

FILE: ...c-bulletin/wp-content/plugins/types/vendor/toolset/toolset-common/lib/whip/src/messages/Whip_UpgradePhpMessage.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
47 | WARNING | Passing the $glue and $pieces parameters in reverse order to implode has been deprecated since PHP 7.4;
| | $glue should be the first parameter and $pieces the second
------------------------------------------------------------------------------------------------------------------------

FILE: ...s/wp-atomic-bulletin/wp-content/plugins/wp-views/vendor/toolset/common-es/php/Block/Style/Attribute/Background.php
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
106 | ERROR | Using an unparenthesized expression containing a "." before a "+" or "-" has been deprecated in PHP 7.4
| | and removed in PHP 8.0
------------------------------------------------------------------------------------------------------------------------

FILE: ...va/projects/wp-atomic-bulletin/wp-content/plugins/wp-views/vendor/toolset/toolset-common/lib/Twig/src/Compiler.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
194 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------------------------------------

FILE: ...cts/wp-atomic-bulletin/wp-content/plugins/wp-views/vendor/toolset/toolset-common/lib/Twig/src/ExpressionParser.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
60 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_arg(), no longer report the original value
| | as passed to a parameter, but will instead provide the current value. The parameter "$env" was used,
| | and possibly changed (by reference), on line 53.
------------------------------------------------------------------------------------------------------------------------

FILE: ...Silva/projects/wp-atomic-bulletin/wp-content/plugins/wp-views/vendor/toolset/toolset-common/lib/Twig/src/Lexer.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
98 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
101 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------------------------------------

FILE: ...omic-bulletin/wp-content/plugins/wp-views/vendor/toolset/toolset-common/lib/whip/src/messages/Whip_HostMessage.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
45 | WARNING | Passing the $glue and $pieces parameters in reverse order to implode has been deprecated since PHP 7.4;
| | $glue should be the first parameter and $pieces the second
------------------------------------------------------------------------------------------------------------------------

FILE: ...ulletin/wp-content/plugins/wp-views/vendor/toolset/toolset-common/lib/whip/src/messages/Whip_UpgradePhpMessage.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
47 | WARNING | Passing the $glue and $pieces parameters in reverse order to implode has been deprecated since PHP 7.4;
| | $glue should be the first parameter and $pieces the second
------------------------------------------------------------------------------------------------------------------------

FILE: .../wp-atomic-bulletin/wp-content/plugins/wp-views/vendor/toolset/toolset-common/visual-editor/editor-addon.class.php
------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
775 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
788 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
788 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
------------------------------------------------------------------------------------------------------------------------

#2325127

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andres,

Thank you for getting in touch as well as providing this information to us.

We are already aware of the compatibility issues with our Toolset plugins and php version 8 and have been working on this. We should be getting ready to release a compatibility update soon so you can look forward to this in the coming weeks.

Thanks,
Shane