@@ -120,7 +120,7 @@ public function asort(array &$array, int $flags = self::SORT_REGULAR)
120
120
/**
121
121
* Not supported. Compare two Unicode strings.
122
122
*
123
- * @return bool| int
123
+ * @return int|false
124
124
*
125
125
* @see https://php.net/collator.compare
126
126
*
@@ -134,7 +134,7 @@ public function compare(string $string1, string $string2)
134
134
/**
135
135
* Not supported. Get a value of an integer collator attribute.
136
136
*
137
- * @return bool| int The attribute value on success or false on error
137
+ * @return int|false The attribute value on success or false on error
138
138
*
139
139
* @see https://php.net/collator.getattribute
140
140
*
@@ -148,7 +148,7 @@ public function getAttribute(int $attribute)
148
148
/**
149
149
* Returns collator's last error code. Always returns the U_ZERO_ERROR class constant value.
150
150
*
151
- * @return int The error code from last collator call
151
+ * @return int|false The error code from last collator call
152
152
*/
153
153
public function getErrorCode ()
154
154
{
@@ -158,7 +158,7 @@ public function getErrorCode()
158
158
/**
159
159
* Returns collator's last error message. Always returns the U_ZERO_ERROR_MESSAGE class constant value.
160
160
*
161
- * @return string The error message from last collator call
161
+ * @return string|false The error message from last collator call
162
162
*/
163
163
public function getErrorMessage ()
164
164
{
@@ -168,8 +168,8 @@ public function getErrorMessage()
168
168
/**
169
169
* Returns the collator's locale.
170
170
*
171
- * @return string The locale used to create the collator. Currently always
172
- * returns "en".
171
+ * @return string|false The locale used to create the collator. Currently
172
+ * always returns "en".
173
173
*/
174
174
public function getLocale (int $ type = Locale::ACTUAL_LOCALE )
175
175
{
@@ -179,7 +179,7 @@ public function getLocale(int $type = Locale::ACTUAL_LOCALE)
179
179
/**
180
180
* Not supported. Get sorting key for a string.
181
181
*
182
- * @return string The collation key for $string
182
+ * @return string|false The collation key for $string
183
183
*
184
184
* @see https://php.net/collator.getsortkey
185
185
*
@@ -193,7 +193,7 @@ public function getSortKey(string $string)
193
193
/**
194
194
* Not supported. Get current collator's strength.
195
195
*
196
- * @return bool| int The current collator's strength or false on failure
196
+ * @return int The current collator's strength or false on failure
197
197
*
198
198
* @see https://php.net/collator.getstrength
199
199
*
0 commit comments