diff --git a/src/CSVelte/Collection/NumericCollection.php b/src/CSVelte/Collection/NumericCollection.php index 2a8e024..b3ec3f4 100644 --- a/src/CSVelte/Collection/NumericCollection.php +++ b/src/CSVelte/Collection/NumericCollection.php @@ -167,11 +167,11 @@ public function min() * values and values are the number of times that value occurs in * the original collection. * - * @return Collection + * @return NumericCollection */ public function counts() { - return static::factory(array_count_values($this->toArray())); + return new self(array_count_values($this->toArray())); } } \ No newline at end of file