From bf73282f71f394f73b0d351c2fd6c2a9cae55f8f Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Wed, 27 Dec 2023 12:52:40 +1000 Subject: [PATCH] Fix helper return (#261) --- src/Livewire/Card.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Livewire/Card.php b/src/Livewire/Card.php index 0d719b39..8993274a 100644 --- a/src/Livewire/Card.php +++ b/src/Livewire/Card.php @@ -138,12 +138,12 @@ protected function aggregateTypes( * * @param string|list $types * @param 'count'|'min'|'max'|'sum'|'avg' $aggregate - * @return \Illuminate\Support\Collection + * @return float|\Illuminate\Support\Collection */ protected function aggregateTotal( array|string $types, string $aggregate, - ): Collection { + ): float|Collection { return Pulse::aggregateTotal($types, $aggregate, $this->periodAsInterval()); } }