From: Alexander Ebert Date: Wed, 9 Mar 2022 18:28:07 +0000 (+0100) Subject: Set `toFloat()` to `protected` for compatibility X-Git-Tag: 5.4.15_dev_1~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2746ec1925b5b31294426ca2c0348ccc019781b6;p=GitHub%2FWoltLab%2FWCF.git Set `toFloat()` to `protected` for compatibility --- diff --git a/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php b/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php index 2a04b6013a..e2929d4ecf 100644 --- a/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php +++ b/wcfsetup/install/files/lib/system/option/FloatOptionType.class.php @@ -65,13 +65,14 @@ class FloatOptionType extends TextOptionType $value = $this->toFloat($value); $conditions->add("option_value.userOption" . $option->optionID . " LIKE ?", [$value]); + return true; } /** * Converts a localized string value into a float value. */ - private function toFloat($value): float + protected function toFloat($value): float { $value = \str_replace(' ', '', $value); $value = \str_replace(WCF::getLanguage()->get('wcf.global.thousandsSeparator'), '', $value);