From 6cca22c5937d6edcd2799811ae28e20693e8b211 Mon Sep 17 00:00:00 2001 From: Massimiliano Arione Date: Wed, 29 Jul 2020 13:37:42 +0200 Subject: [PATCH] Add default value for new parameter For BC --- CHANGELOG.md | 8 ++++++-- src/Poser.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20e3cb7..c21e530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -95,7 +98,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 diff --git a/src/Poser.php b/src/Poser.php index 78c6a57..d199026 100644 --- a/src/Poser.php +++ b/src/Poser.php @@ -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);