diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b7b03d..48ac7f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.1] + +### Added + +- Restore `build` method on `Builder` and `Parameter` to restore backwards compatibility with previous versions. + ## [2.0.0] ### Added diff --git a/src/Builder.php b/src/Builder.php index b9a217e..09f1356 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -32,6 +32,11 @@ public function add(string $parameter, int|string $value): Builder return $this; } + public function build(): string + { + return $this->toString(); + } + public function toString(): string { return implode( diff --git a/src/Parameter.php b/src/Parameter.php index 8ae673d..46c8ec4 100644 --- a/src/Parameter.php +++ b/src/Parameter.php @@ -12,6 +12,11 @@ public function __construct( ) { } + public function build(): string + { + return $this->toString(); + } + public function toString(): string { return sprintf(