Skip to content

Commit 01fedd4

Browse files
committed
rename EmojiString to EmojiText to better match what it is
1 parent d3ba463 commit 01fedd4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/EmojiString.php renamed to src/EmojiText.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @internal
1010
*/
11-
class EmojiString
11+
class EmojiText
1212
{
1313
use Configurable;
1414

src/Replacer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class Replacer
88
{
99
use Configurable;
1010

11-
public function text(string $text): EmojiString
11+
public function text(string $text): EmojiText
1212
{
13-
return (new EmojiString($text))
13+
return (new EmojiText($text))
1414
->base($this->base)
1515
->type($this->type);
1616
}

src/Twemoji.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public static function emoji(string $emoji): self
3737
return new static($normalized);
3838
}
3939

40-
public static function text(string $text): EmojiString
40+
public static function text(string $text): EmojiText
4141
{
42-
return new EmojiString($text);
42+
return new EmojiText($text);
4343
}
4444

4545
public function url(): string

0 commit comments

Comments
 (0)