Completed
Pull Request — master (#52)
by Lars
03:19
created
src/voku/helper/UTF8.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2730,7 +2730,7 @@  discard block
 block discarded – undo
2730 2730
   /**
2731 2731
    * Check if the input is binary... (is look like a hack).
2732 2732
    *
2733
-   * @param mixed $input
2733
+   * @param string $input
2734 2734
    *
2735 2735
    * @return bool
2736 2736
    */
@@ -5449,7 +5449,7 @@  discard block
 block discarded – undo
5449 5449
    * @link http://php.net/manual/en/function.mb-strrpos.php
5450 5450
    *
5451 5451
    * @param string     $haystack  <p>The string being checked, for the last occurrence of needle</p>
5452
-   * @param string|int $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5452
+   * @param string $needle    <p>The string to find in haystack.<br />Or a code point as int.</p>
5453 5453
    * @param int        $offset    [optional] <p>May be specified to begin searching an arbitrary number of characters
5454 5454
    *                              into the string. Negative values will stop searching at an arbitrary point prior to
5455 5455
    *                              the end of the string.
@@ -6108,8 +6108,8 @@  discard block
 block discarded – undo
6108 6108
    *
6109 6109
    * source: https://gist.github.com/stemar/8287074
6110 6110
    *
6111
-   * @param string|string[] $str              <p>The input string or an array of stings.</p>
6112
-   * @param string|string[] $replacement      <p>The replacement string or an array of stings.</p>
6111
+   * @param string $str              <p>The input string or an array of stings.</p>
6112
+   * @param string $replacement      <p>The replacement string or an array of stings.</p>
6113 6113
    * @param int|int[]       $start            <p>
6114 6114
    *                                          If start is positive, the replacing will begin at the start'th offset
6115 6115
    *                                          into string.
@@ -6117,7 +6117,7 @@  discard block
 block discarded – undo
6117 6117
    *                                          If start is negative, the replacing will begin at the start'th character
6118 6118
    *                                          from the end of string.
6119 6119
    *                                          </p>
6120
-   * @param int|int[]|void  $length           [optional] <p>If given and is positive, it represents the length of the
6120
+   * @param integer  $length           [optional] <p>If given and is positive, it represents the length of the
6121 6121
    *                                          portion of string which is to be replaced. If it is negative, it
6122 6122
    *                                          represents the number of characters from the end of string at which to
6123 6123
    *                                          stop replacing. If it is not given, then it will default to strlen(
@@ -6521,7 +6521,7 @@  discard block
 block discarded – undo
6521 6521
    * <li>WARNING: It does not remove invalid UTF-8 characters, so you maybe need to use "UTF8::clean()" for this case.</li>
6522 6522
    * </ul>
6523 6523
    *
6524
-   * @param string|string[] $str                    <p>Any string or array.</p>
6524
+   * @param string $str                    <p>Any string or array.</p>
6525 6525
    * @param bool            $decodeHtmlEntityToUtf8 <p>Set to true, if you need to decode html-entities.</p>
6526 6526
    *
6527 6527
    * @return string|string[] <p>The UTF-8 encoded string.</p>
Please login to merge, or discard this patch.