Skip to content

Commit

Permalink
Merge pull request #53 from badges/garak-patch-1
Browse files Browse the repository at this point in the history
Add default value for new parameter
  • Loading branch information
JellyBellyDev committed Jul 29, 2020
2 parents 8bbce0f + 6cca22c commit ded7ae4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [Unreleased]
## [v2.0.1] - 2020-07-29

### Changed
* fix last argument of generate method to be back-compatible with v1

## [v2.0.0] - 2020-07-29

Expand Down Expand Up @@ -96,7 +99,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- stable release for poser


[Unreleased]: https://github.com/badges/poser/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/badges/poser/compare/v2.0.1...HEAD
[v2.0.1]: https://github.com/badges/poser/tree/v2.0.1
[v2.0.0]: https://github.com/badges/poser/tree/v2.0.0
[v1.4.1]: https://github.com/badges/poser/tree/v1.4.1
[v1.4.0]: https://github.com/badges/poser/tree/v1.4.0
Expand Down
2 changes: 1 addition & 1 deletion src/Poser.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct($renders)
* @param $style
* @param $format
*/
public function generate(string $subject, string $status, string $color, string $style, string $format): Image
public function generate(string $subject, string $status, string $color, string $style, string $format = Badge::DEFAULT_FORMAT): Image
{
$badge = new Badge($subject, $status, $color, $style, $format);

Expand Down

0 comments on commit ded7ae4

Please sign in to comment.