Skip to content

Commit

Permalink
Strings 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 5, 2020
1 parent 02a8bc3 commit 1dbe717
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
<a name="2.4.0"></a>
# [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'));
```

<a name="2.3.0"></a>
# [2.3.0](https://github.com/atomastic/strings) (2020-11-30)
* add replace() method.
Expand Down

0 comments on commit 1dbe717

Please sign in to comment.