PaulB
Well-known member
- Affected version
- 2.2.13
This is just a small patch for PHP 8.3 compatibility issues that we've encountered so far.
Notably, XF\BbCode\Renderer\Html attempts to increment a bool in a couple places, a
The only other change accounts for a slight change to the phrasing of a deprecation notice that XenForo ignores. XenForo's
Notably, XF\BbCode\Renderer\Html attempts to increment a bool in a couple places, a
stopSmilies
and stopBreakConversion
can be either bools or ints. It's not clear to me why they would ever need to be incremented; as far as I can tell, they're never decremented, and those values are never checked. This is probably a bug. Prior versions of PHP would silently refuse to increment bools anyway, so the only incompatibility here is that PHP 8.3 emits a proper warning. The patch preserves the existing behavior, but this is probably unnecessary.The only other change accounts for a slight change to the phrasing of a deprecation notice that XenForo ignores. XenForo's
str_contains
test no longer works correctly in PHP 8.3 due to the change in phrasing.