`Perfdata`: Fix return type for method `convert()`

This commit is contained in:
raviks789 2023-08-14 14:46:37 +02:00
parent 8fe428f987
commit b813e0badb
1 changed files with 3 additions and 3 deletions

View File

@ -350,10 +350,10 @@ class Perfdata
/** /**
* Return the given value converted to its smallest supported representation * Return the given value converted to its smallest supported representation
* *
* @param string $value The value to convert * @param string $value The value to convert
* @param string $fromUnit The unit the value currently represents * @param string $fromUnit The unit the value currently represents
* *
* @return null|float Null in case the value is not a number * @return ThresholdRange|null|float Null in case the value is not a number
*/ */
protected static function convert($value, $fromUnit = null) protected static function convert($value, $fromUnit = null)
{ {