From 11c7f913c8b1808cac4f64d46980cba25e7306e9 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 15 Aug 2023 10:29:27 +0200 Subject: [PATCH] `Benchmark`: Define parameter `$what` as nullable --- library/Icinga/Application/Benchmark.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/library/Icinga/Application/Benchmark.php b/library/Icinga/Application/Benchmark.php index 6514ad569..9ff48f794 100644 --- a/library/Icinga/Application/Benchmark.php +++ b/library/Icinga/Application/Benchmark.php @@ -77,7 +77,7 @@ class Benchmark * otherwise. Use Benchmark::TIME and Benchmark::MEMORY to choose whether * you prefer to show either time or memory or both in your output * - * @param int Whether to get time and/or memory summary + * @param ?int $what Whether to get time and/or memory summary * @return string */ public static function dump($what = null) @@ -95,7 +95,7 @@ class Benchmark * Use Benchmark::TIME and Icinga::MEMORY to choose whether you prefer to * show either time or memory or both in your output * - * @param int Whether to get time and/or memory summary + * @param ?int $what Whether to get time and/or memory summary * @return string */ public static function renderToText($what = null) @@ -131,7 +131,8 @@ class Benchmark * Use Benchmark::TIME and Benchmark::MEMORY to choose whether you prefer * to show either time or memory or both in your output * - * @param int Whether to get time and/or memory summary + * @param ?int $what Whether to get time and/or memory summary + * * @return string */ public static function renderToHtml($what = null) @@ -176,8 +177,9 @@ class Benchmark * Use Benchmark::TIME and Benchmark::MEMORY to choose whether you prefer * to have either time or memory or both in your output * - * @param int Whether to get time and/or memory summary - * @return array + * @param ?int $what Whether to get time and/or memory summary + * + * @return object */ protected static function prepareDataForRendering($what = null) {