Skip to content

Commit

Permalink
Sum and average can return float or int
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanKasan committed Jun 3, 2016
1 parent a9badfc commit 3460261
Show file tree
Hide file tree
Showing 6 changed files with 376 additions and 173 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@
- Average collection function added
- Min collection function added
- Max collection function added
- ToArrray collection function added
- ToString collection function added
- **Breaking change: sum utility function removed**
- **Breaking change: average utility function removed**
- **Breaking change: min utility function removed**
- **Breaking change: max utility function removed**
- **Breaking change: concatenate utility function removed**

##8.0.0
- **Breaking change: sum function will return integer by default, float if there are float type elements**
- **Breaking change: average function will not force return float and will return integer if the sum/count result is integer**
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
}
],
"require-dev": {
"phpspec/phpspec": "~2.0",
"henrikbjorn/phpspec-code-coverage": "*",
"squizlabs/php_codesniffer": "~2.0",
"phpmd/phpmd" : "2.2.1",
"ciaranmcnulty/phpspec-typehintedmethods": "*",
"phpunit/phpunit": "4.5.*",
"symfony/console": "~2.7"
"phpspec/phpspec": "^2.0",
"henrikbjorn/phpspec-code-coverage": "^2.0",
"squizlabs/php_codesniffer": "^2.0",
"phpmd/phpmd" : "^2.0",
"ciaranmcnulty/phpspec-typehintedmethods": "^1.0",
"phpunit/phpunit": "^5.0",
"symfony/console": "^2.7"
},
"require": {
"php": ">=5.6.0"
Expand Down
Loading

0 comments on commit 3460261

Please sign in to comment.