Completed
Pull Request — master (#48)
by Lars
15:39
created
src/voku/helper/UTF8.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2668,7 +2668,7 @@  discard block
 block discarded – undo
2668 2668
   /**
2669 2669
    * Check if the input is binary... (is look like a hack).
2670 2670
    *
2671
-   * @param mixed $input
2671
+   * @param string $input
2672 2672
    *
2673 2673
    * @return bool
2674 2674
    */
@@ -5027,7 +5027,7 @@  discard block
 block discarded – undo
5027 5027
    * @param string  $encoding  [optional] <p>Set the charset for e.g. "\mb_" function.</p>
5028 5028
    * @param boolean $cleanUtf8 [optional] <p>Clean non UTF-8 chars from the string.</p>
5029 5029
    *
5030
-   * @return int|false <p>
5030
+   * @return string <p>
5031 5031
    *                   The numeric position of the first occurrence of needle in the haystack string.<br />
5032 5032
    *                   If needle is not found it returns false.
5033 5033
    *                   </p>
@@ -5303,7 +5303,7 @@  discard block
 block discarded – undo
5303 5303
    * @link http://php.net/manual/en/function.mb-strrpos.php
5304 5304
    *
5305 5305
    * @param string     $haystack  <p>The string being checked, for the last occurrence of needle</p>
5306
-   * @param string|int $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5306
+   * @param string $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5307 5307
    * @param int        $offset    [optional] <p>May be specified to begin searching an arbitrary number of characters
5308 5308
    *                              into the string. Negative values will stop searching at an arbitrary point prior to
5309 5309
    *                              the end of the string.
@@ -6388,7 +6388,7 @@  discard block
 block discarded – undo
6388 6388
    * 2) when any of these: àáâãäåæçèéêëìíîï  are followed by TWO chars from group B,
6389 6389
    * 3) when any of these: ðñòó  are followed by THREE chars from group B.
6390 6390
    *
6391
-   * @param string|string[] $str                    <p>Any string or array.</p>
6391
+   * @param string $str                    <p>Any string or array.</p>
6392 6392
    * @param bool            $decodeHtmlEntityToUtf8 <p>Set to true, if you need to decode html-entities.</p>
6393 6393
    *
6394 6394
    * @return string|string[] <p>The UTF-8 encoded string.</p>
Please login to merge, or discard this patch.