@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | * |
431 | 431 | * INFO: opposite to UTF8::ord() |
432 | 432 | * |
433 | - * @param int|string $code_point <p>The code point for which to generate a character.</p> |
|
433 | + * @param integer $code_point <p>The code point for which to generate a character.</p> |
|
434 | 434 | * @param string $encoding [optional] <p>Default is UTF-8</p> |
435 | 435 | * |
436 | 436 | * @return string|null <p>Multi-Byte character, returns null on failure or empty input.</p> |
@@ -2939,7 +2939,7 @@ discard block |
||
2939 | 2939 | * |
2940 | 2940 | * @see http://hsivonen.iki.fi/php-utf8/ |
2941 | 2941 | * |
2942 | - * @param string|string[] $str <p>The string to be checked.</p> |
|
2942 | + * @param string $str <p>The string to be checked.</p> |
|
2943 | 2943 | * @param bool $strict <p>Check also if the string is not UTF-16 or UTF-32.</p> |
2944 | 2944 | * |
2945 | 2945 | * @return bool |
@@ -3327,7 +3327,7 @@ discard block |
||
3327 | 3327 | * @param string $otherStr <p>Second string for comparison.</p> |
3328 | 3328 | * @param string $encoding [optional] <p>Set the charset for e.g. "\mb_" function</p> |
3329 | 3329 | * |
3330 | - * @return static <p>Object with its $str being the longest common substring.</p> |
|
3330 | + * @return string <p>Object with its $str being the longest common substring.</p> |
|
3331 | 3331 | */ |
3332 | 3332 | public static function longestCommonSubstring(string $str, string $otherStr, string $encoding = 'UTF-8'): string |
3333 | 3333 | { |
@@ -5515,7 +5515,7 @@ discard block |
||
5515 | 5515 | * @param string $encoding [optional] <p>Set the charset for e.g. "\mb_" function</p> |
5516 | 5516 | * @param bool $cleanUtf8 [optional] <p>Remove non UTF-8 chars from the string.</p> |
5517 | 5517 | * |
5518 | - * @return int|false <p> |
|
5518 | + * @return string <p> |
|
5519 | 5519 | * Return the numeric position of the first occurrence of needle in the haystack string,<br> |
5520 | 5520 | * or false if needle is not found. |
5521 | 5521 | * </p> |
@@ -6155,7 +6155,7 @@ discard block |
||
6155 | 6155 | * @link http://php.net/manual/en/function.mb-strrpos.php |
6156 | 6156 | * |
6157 | 6157 | * @param string $haystack <p>The string being checked, for the last occurrence of needle</p> |
6158 | - * @param string|int $needle <p>The string to find in haystack.<br>Or a code point as int.</p> |
|
6158 | + * @param string $needle <p>The string to find in haystack.<br>Or a code point as int.</p> |
|
6159 | 6159 | * @param int $offset [optional] <p>May be specified to begin searching an arbitrary number of characters |
6160 | 6160 | * into the string. Negative values will stop searching at an arbitrary point prior to |
6161 | 6161 | * the end of the string. |
@@ -6936,8 +6936,8 @@ discard block |
||
6936 | 6936 | * |
6937 | 6937 | * source: https://gist.github.com/stemar/8287074 |
6938 | 6938 | * |
6939 | - * @param string|string[] $str <p>The input string or an array of stings.</p> |
|
6940 | - * @param string|string[] $replacement <p>The replacement string or an array of stings.</p> |
|
6939 | + * @param string $str <p>The input string or an array of stings.</p> |
|
6940 | + * @param string $replacement <p>The replacement string or an array of stings.</p> |
|
6941 | 6941 | * @param int|int[] $offset <p> |
6942 | 6942 | * If start is positive, the replacing will begin at the start'th offset |
6943 | 6943 | * into string. |
@@ -6945,7 +6945,7 @@ discard block |
||
6945 | 6945 | * If start is negative, the replacing will begin at the start'th character |
6946 | 6946 | * from the end of string. |
6947 | 6947 | * </p> |
6948 | - * @param int|int[]|null $length [optional] <p>If given and is positive, it represents the length of the |
|
6948 | + * @param integer $length [optional] <p>If given and is positive, it represents the length of the |
|
6949 | 6949 | * portion of string which is to be replaced. If it is negative, it |
6950 | 6950 | * represents the number of characters from the end of string at which to |
6951 | 6951 | * stop replacing. If it is not given, then it will default to strlen( |