diff --git a/README.md b/README.md index c04d50d..13e3983 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ echo S::swapCase($string, 'UTF-8'); // 'fÒÔ bÀŘ' ## Implemented Interfaces -`Stringy\Stringy` implements the IteratorAggregate interface. This allows you +`Stringy\Stringy` implements the `IteratorAggregate` interface. This allows you to use `foreach` with an instance of the class: ``` php diff --git a/tests/Stringy/StringyTest.php b/tests/Stringy/StringyTest.php index 2801695..a0429cc 100644 --- a/tests/Stringy/StringyTest.php +++ b/tests/Stringy/StringyTest.php @@ -74,12 +74,12 @@ class StringyTestCase extends CommonTest { $stringy = S::create('Fòô Bàř', 'UTF-8'); - $valResult = []; + $valResult = array(); foreach ($stringy as $char) { $valResult[] = $char; } - $keyValResult = []; + $keyValResult = array(); foreach ($stringy as $pos => $char) { $keyValResult[$pos] = $char; }