Completed
Push — master ( 59da85...5b7121 )
by Lars
02:53
created
src/voku/helper/UTF8.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2807,7 +2807,7 @@  discard block
 block discarded – undo
2807 2807
   /**
2808 2808
    * Check if the input is binary... (is look like a hack).
2809 2809
    *
2810
-   * @param mixed $input
2810
+   * @param string|false $input
2811 2811
    *
2812 2812
    * @return bool
2813 2813
    */
@@ -5631,7 +5631,7 @@  discard block
 block discarded – undo
5631 5631
    * @link http://php.net/manual/en/function.mb-strrpos.php
5632 5632
    *
5633 5633
    * @param string     $haystack  <p>The string being checked, for the last occurrence of needle</p>
5634
-   * @param string|int $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5634
+   * @param string $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5635 5635
    * @param int        $offset    [optional] <p>May be specified to begin searching an arbitrary number of characters
5636 5636
    *                              into the string. Negative values will stop searching at an arbitrary point prior to
5637 5637
    *                              the end of the string.
@@ -6304,8 +6304,8 @@  discard block
 block discarded – undo
6304 6304
    *
6305 6305
    * source: https://gist.github.com/stemar/8287074
6306 6306
    *
6307
-   * @param string|string[] $str              <p>The input string or an array of stings.</p>
6308
-   * @param string|string[] $replacement      <p>The replacement string or an array of stings.</p>
6307
+   * @param string $str              <p>The input string or an array of stings.</p>
6308
+   * @param string $replacement      <p>The replacement string or an array of stings.</p>
6309 6309
    * @param int|int[]       $start            <p>
6310 6310
    *                                          If start is positive, the replacing will begin at the start'th offset
6311 6311
    *                                          into string.
@@ -6313,7 +6313,7 @@  discard block
 block discarded – undo
6313 6313
    *                                          If start is negative, the replacing will begin at the start'th character
6314 6314
    *                                          from the end of string.
6315 6315
    *                                          </p>
6316
-   * @param int|int[]|void  $length           [optional] <p>If given and is positive, it represents the length of the
6316
+   * @param integer|null  $length           [optional] <p>If given and is positive, it represents the length of the
6317 6317
    *                                          portion of string which is to be replaced. If it is negative, it
6318 6318
    *                                          represents the number of characters from the end of string at which to
6319 6319
    *                                          stop replacing. If it is not given, then it will default to strlen(
@@ -6745,7 +6745,7 @@  discard block
 block discarded – undo
6745 6745
    * case.</li>
6746 6746
    * </ul>
6747 6747
    *
6748
-   * @param string|string[] $str                    <p>Any string or array.</p>
6748
+   * @param string|false $str                    <p>Any string or array.</p>
6749 6749
    * @param bool            $decodeHtmlEntityToUtf8 <p>Set to true, if you need to decode html-entities.</p>
6750 6750
    *
6751 6751
    * @return string|string[] <p>The UTF-8 encoded string.</p>
Please login to merge, or discard this patch.