Skip to content

Commit

Permalink
add ability to extend Strings class with Macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 5, 2020
1 parent 60e0788 commit 02a8bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ $strings = strings();
Strings are "macroable", which allows you to add additional methods to the Strings class at run time. For example, the following code adds a customMethod method to the Strings class:

```php
use Atomastic\Arrays\Strings;
use Atomastic\Strings\Strings;
use Atomastic\Macroable\Macroable;

Strings::macro('concatenate', function(string $string) {
Expand Down

0 comments on commit 02a8bc3

Please sign in to comment.