We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 813d7e1 commit 4b09e08Copy full SHA for 4b09e08
ds/ds.php
@@ -762,9 +762,9 @@ public function sorted(?callable $comparator = null): Vector {}
762
* <b>Note:</b> Arrays and objects are considered equal to zero when
763
* calculating the sum.
764
* @link https://www.php.net/manual/en/ds-vector.sum.php
765
- * @return float
+ * @return float|int
766
*/
767
- public function sum(): float {}
+ public function sum(): float|int {}
768
769
/**
770
* Adds values to the front of the sequence, moving all the current
0 commit comments