From 44b725a382a06c6cbb17b97a307d350019a4ea0c Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 17 May 2024 12:11:01 +0200 Subject: [PATCH] PHP 8 Style. --- functions/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/functions.php b/functions/functions.php index 78278a1..750d41a 100644 --- a/functions/functions.php +++ b/functions/functions.php @@ -126,7 +126,7 @@ function get_last_value(mysqli $db, string $table, $date): float return floatval($data['last_value']) / 1000; } -function get_production_values_for_month(mysqli $db, string $table, $date) +function get_production_values_for_month(mysqli $db, string $table, $date): array { $value_query = 'SELECT date, production_og, production_eg FROM ' . $table . ' WHERE date LIKE "' . $date . '%" ORDER BY date ASC;'; $value_result = $db->query($value_query);