From 1dbe7178212e2e730b09dc53da8af62d4c03993f Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 5 Dec 2020 14:31:31 +0300 Subject: [PATCH] Strings 2.4.0 --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82f6fae..ccbed9e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ + +# [2.4.0](https://github.com/atomastic/strings) (2020-12-05) +* add copy() method. +* add ability to extend Strings class with Macros. + + ```php + use Atomastic\Strings\Strings; + use Atomastic\Macroable\Macroable; + + Strings::macro('concatenate', function(string $string) { + return $this->toString() . $string; + }); + + $strings = new Strings('Hello'); + + echo $strings->concatenate(' World')); + ``` + # [2.3.0](https://github.com/atomastic/strings) (2020-11-30) * add replace() method.