File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,6 @@ public function testGetErrorMessageWithUninitializedTransliterator()
189189 {
190190 $ transliterator = EmojiTransliterator::create ('emoji-en ' );
191191
192- $ this ->assertFalse ( $ transliterator ->getErrorMessage ());
192+ $ this ->assertSame ( '' , $ transliterator ->getErrorMessage ());
193193 }
194194}
Original file line number Diff line number Diff line change @@ -70,14 +70,22 @@ public function createInverse(): self
7070 return self ::create ($ this ->id , self ::REVERSE );
7171 }
7272
73+ /**
74+ * @return int
75+ */
76+ #[\ReturnTypeWillChange]
7377 public function getErrorCode (): int |false
7478 {
7579 return isset ($ this ->transliterator ) ? $ this ->transliterator ->getErrorCode () : 0 ;
7680 }
7781
82+ /**
83+ * @return string
84+ */
85+ #[\ReturnTypeWillChange]
7886 public function getErrorMessage (): string |false
7987 {
80- return isset ($ this ->transliterator ) ? $ this ->transliterator ->getErrorMessage () : false ;
88+ return isset ($ this ->transliterator ) ? $ this ->transliterator ->getErrorMessage () : '' ;
8189 }
8290
8391 public static function listIDs (): array
You can’t perform that action at this time.
0 commit comments