File tree 2 files changed +10
-2
lines changed
src/Symfony/Component/Intl
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,6 @@ public function testGetErrorMessageWithUninitializedTransliterator()
189
189
{
190
190
$ transliterator = EmojiTransliterator::create ('emoji-en ' );
191
191
192
- $ this ->assertFalse ( $ transliterator ->getErrorMessage ());
192
+ $ this ->assertSame ( '' , $ transliterator ->getErrorMessage ());
193
193
}
194
194
}
Original file line number Diff line number Diff line change @@ -70,14 +70,22 @@ public function createInverse(): self
70
70
return self ::create ($ this ->id , self ::REVERSE );
71
71
}
72
72
73
+ /**
74
+ * @return int
75
+ */
76
+ #[\ReturnTypeWillChange]
73
77
public function getErrorCode (): int |false
74
78
{
75
79
return isset ($ this ->transliterator ) ? $ this ->transliterator ->getErrorCode () : 0 ;
76
80
}
77
81
82
+ /**
83
+ * @return string
84
+ */
85
+ #[\ReturnTypeWillChange]
78
86
public function getErrorMessage (): string |false
79
87
{
80
- return isset ($ this ->transliterator ) ? $ this ->transliterator ->getErrorMessage () : false ;
88
+ return isset ($ this ->transliterator ) ? $ this ->transliterator ->getErrorMessage () : '' ;
81
89
}
82
90
83
91
public static function listIDs (): array
You can’t perform that action at this time.
0 commit comments