@@ -144,12 +144,12 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * Factory method to create a new Gears\String\Str object. |
146 | 146 | * |
147 | - * @param mixed $string Must be a scalar string or an object |
|
147 | + * @param string $string Must be a scalar string or an object |
|
148 | 148 | * that implements the __toString() method |
149 | 149 | * or a value that is castable to a scalar |
150 | 150 | * string. |
151 | 151 | * |
152 | - * @param string $encoding The character encoding to use for this |
|
152 | + * @param string string The character encoding to use for this |
|
153 | 153 | * string. If not specified, defaults to |
154 | 154 | * the value returned from |
155 | 155 | * mb_internal_encoding(). |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | * |
273 | 273 | * @param mixed $offset The index from which to retrieve the char |
274 | 274 | * |
275 | - * @return string The character at the specified index |
|
275 | + * @return Base The character at the specified index |
|
276 | 276 | * @throws \OutOfBoundsException If the positive or negative offset does |
277 | 277 | * not exist |
278 | 278 | */ |
@@ -18,9 +18,9 @@ |
||
18 | 18 | /** |
19 | 19 | * Replaces all occurrences of $search in $str by $replacement. |
20 | 20 | * |
21 | - * @param string|array $search The needle to search for. |
|
21 | + * @param string $search The needle to search for. |
|
22 | 22 | * |
23 | - * @param string|array $replacement The string to replace with. |
|
23 | + * @param string $replacement The string to replace with. |
|
24 | 24 | * |
25 | 25 | * @param bool $caseSensitive To enforce case-sensitivity or not. |
26 | 26 | * |