From b813e0badb8742d734288317623f4d38b6f469b0 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Mon, 14 Aug 2023 14:46:37 +0200 Subject: [PATCH] `Perfdata`: Fix return type for method `convert()` --- modules/monitoring/library/Monitoring/Plugin/Perfdata.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Plugin/Perfdata.php b/modules/monitoring/library/Monitoring/Plugin/Perfdata.php index 476354a66..eecf835a4 100644 --- a/modules/monitoring/library/Monitoring/Plugin/Perfdata.php +++ b/modules/monitoring/library/Monitoring/Plugin/Perfdata.php @@ -350,10 +350,10 @@ class Perfdata /** * Return the given value converted to its smallest supported representation * - * @param string $value The value to convert - * @param string $fromUnit The unit the value currently represents + * @param string $value The value to convert + * @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) {