Skip to content

Commit

Permalink
Prepare 6.1.0 release
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed May 5, 2021
1 parent c557f26 commit cd5684e
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG-6.x.md
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/support`.

## 6.1.0

Released: 2021-05-05

### Breaking Changes

* Rename `Orchestra\Support\Str::replace()` to `Orchestra\Support\Str::translate()`.

## 6.0.0

Released: 2021-04-18
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -20,7 +20,7 @@
},
"require": {
"php": "^7.3 || ^8.0",
"illuminate/support": "^8.0",
"illuminate/support": "^8.40",
"orchestra/contracts": "^6.0",
"statamic/stringy": "^3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/composer.json
Expand Up @@ -18,7 +18,7 @@
},
"require": {
"php": "^7.3 || ^8.0",
"illuminate/support": "^8.0"
"illuminate/support": "^8.40"
},
"extra": {
"branch-alias": {
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/composer.json
Expand Up @@ -18,7 +18,7 @@
},
"require": {
"php": "^7.3 || ^8.0",
"illuminate/support": "^8.0",
"illuminate/support": "^8.40",
"orchestra/contracts": "^6.0"
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Str.php
Expand Up @@ -46,7 +46,7 @@ public static function humanize(string $text): string
*
* @return string|array
*/
public static function replace(
public static function translate(
$text,
array $replacements = [],
string $prefix = '{',
Expand Down
2 changes: 1 addition & 1 deletion src/Support/composer.json
Expand Up @@ -18,7 +18,7 @@
},
"require": {
"php": "^7.3 || ^8.0",
"illuminate/support": "^8.0",
"illuminate/support": "^8.40",
"orchestra/contracts": "^6.0",
"statamic/stringy": "^3.1"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/StrTest.php
Expand Up @@ -21,7 +21,7 @@ public function it_can_humanize_string()
public function it_can_replace_string()
{
$expected = 'Orchestra Platform is awesome';
$output = Str::replace('{name} is awesome', ['name' => 'Orchestra Platform']);
$output = Str::translate('{name} is awesome', ['name' => 'Orchestra Platform']);

$this->assertEquals($expected, $output);

Expand All @@ -34,7 +34,7 @@ public function it_can_replace_string()
'{name} is awesome',
'{name} is not a {foo}',
];
$output = Str::replace($data, ['name' => 'Orchestra Platform', 'foo' => 'foobar']);
$output = Str::translate($data, ['name' => 'Orchestra Platform', 'foo' => 'foobar']);

$this->assertEquals($expected, $output);
}
Expand Down

0 comments on commit cd5684e

Please sign in to comment.