Fix PHP 8.1 compatibility when saving I18n options
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 6 Jan 2022 09:50:13 +0000 (10:50 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 6 Jan 2022 09:50:13 +0000 (10:50 +0100)
commitb46c272b28ba84892534b31c641a6dd412bb0a1e
tree05ee53e00bb3669c89794caa2d34a3319926a59f
parentb36c05106442a39f88483a95ec3701fae90229f9
Fix PHP 8.1 compatibility when saving I18n options

As I18n options are special-cased, they will not be provided in `rawValues`,
thus passing `null` to `->getData()`, which the option types are not prepared
to handle. Before PHP 8.1 this was implicitly treated as an empty string, with
the types introduced to native functions, e.g. `explode()` or `preg_replace()`
this will result in an error.
wcfsetup/install/files/lib/system/option/OptionHandler.class.php