Skip to content

Commit

Permalink
Merge pull request #16 from Dhii/task/15_add-method-missing-parameter
Browse files Browse the repository at this point in the history
Added `$item` parameter to `add()`
  • Loading branch information
XedinUnknown authored Apr 9, 2018
2 parents e2b2944 + e581968 commit 0c05d09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [[*next-version*]] - YYYY-MM-DD
### Fixed
- Problem #15, where `AddCapableInterface#$add()` didn't accept the item.

## [0.2-alpha3] - 2018-04-06
### Changed
Expand Down
4 changes: 3 additions & 1 deletion src/AddCapableInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ interface AddCapableInterface
*
* @since [*next-version*]
*
* @param mixed $item The item to add.
*
* @throws RuntimeException If the item could not be added.
*/
public function add();
public function add($item);
}

0 comments on commit 0c05d09

Please # to comment.