Skip to content

Commit

Permalink
Fix helper return (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored Dec 27, 2023
1 parent 38983d7 commit bf73282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Livewire/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ protected function aggregateTypes(
*
* @param string|list<string> $types
* @param 'count'|'min'|'max'|'sum'|'avg' $aggregate
* @return \Illuminate\Support\Collection<string, int>
* @return float|\Illuminate\Support\Collection<string, int>
*/
protected function aggregateTotal(
array|string $types,
string $aggregate,
): Collection {
): float|Collection {
return Pulse::aggregateTotal($types, $aggregate, $this->periodAsInterval());
}
}

0 comments on commit bf73282

Please sign in to comment.