@@ -10,7 +10,7 @@ class Emoji {
10
10
* Get the Emojis from emoji.php
11
11
* @return array
12
12
*/
13
- private function getEmojis ()
13
+ private function getEmojis () : array
14
14
{
15
15
return require ("Emojis/emoji.php " );
16
16
}
@@ -22,7 +22,7 @@ private function getEmojis()
22
22
* @throws \Unicodeveloper\Emoji\Exceptions\IsNull
23
23
* @throws \Unicodeveloper\Emoji\Exceptions\UnknownUnicode
24
24
*/
25
- public function findByAlias ($ emojiName = null )
25
+ public function findByAlias ($ emojiName = null ) : string
26
26
{
27
27
if (is_null ($ emojiName )) {
28
28
throw IsNull::create ("Please provide the name of the emoji you are looking for " );
@@ -43,7 +43,7 @@ public function findByAlias($emojiName = null)
43
43
* @param string $emojiName
44
44
* @return unicode
45
45
*/
46
- public function findByName ($ emojiName = null )
46
+ public function findByName ($ emojiName = null ) : string
47
47
{
48
48
return $ this ->findByAlias ($ emojiName );
49
49
}
@@ -55,7 +55,7 @@ public function findByName($emojiName = null)
55
55
* @throws \Unicodeveloper\Emoji\Exceptions\IsNull
56
56
* @throws \Unicodeveloper\Emoji\Exceptions\UnknownUnicode
57
57
*/
58
- public function findByUnicode ($ unicode = null )
58
+ public function findByUnicode ($ unicode = null ) : string
59
59
{
60
60
if (is_null ($ unicode )) {
61
61
throw IsNull::create ("Please provide a valid UTF-8 Unicode value " );
0 commit comments