Bug PHP 8.3 warning: Increment on type bool

There is a bug in this version
M

mqudsi

Guest
Code:

ErrorException: Template error: [E_WARNING] Increment on type bool has no effect, this will change in the next major version of PHP src/XF/BbCode/Renderer/Html.php:296

Code in question:

PHP:

Code:
        if ($rule && !empty($rule['stopSmilies']))
        {
            $options['stopSmilies']++;
        }

I'm not sure why stopSmilies is being treated as a boolean; it's initialized to an integer on line 226 in getDefaultOptions()


Stack trace:

Code:

#0...

Read more

Continue reading...