Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hxtree committed Mar 5, 2021
1 parent dc2843f commit 118c90d
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 42 deletions.
81 changes: 41 additions & 40 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Collection implements
* @param int $modifier
* @param int $multiplier
*/
public function __construct(int $amount, int $sides, int $modifier, int $multiplier)
public function __construct(int $amount, int $sides, int $modifier = 1, int $multiplier = 1)
{
if ($amount < 1) {
throw new OutOfRangeException('A collection must have at least one dice.');
Expand Down
Loading

0 comments on commit 118c90d

Please sign in to comment.