@@ -61,18 +61,18 @@ class HtmlArray extends RendererAbstract
61
61
62
62
/**
63
63
* From https://gist.github.com/stemar/8287074
64
- * @param mixed $string The input string.
65
- * @param mixed $replacement The replacement string.
66
- * @param mixed $start If start is positive, the replacing will begin at the start'th offset into string.
64
+ * @param string $string The input string.
65
+ * @param string $replacement The replacement string.
66
+ * @param int $start If start is positive, the replacing will begin at the start'th offset into string.
67
67
* If start is negative, the replacing will begin at the start'th character from the end of string.
68
- * @param mixed $length If given and is positive, it represents the length of the portion of string which is to
68
+ * @param int $length If given and is positive, it represents the length of the portion of string which is to
69
69
* be replaced. If it is negative, it represents the number of characters from the end of string at which to
70
70
* stop replacing. If it is not given, then it will default to strlen( string ); i.e. end the replacing at the
71
71
* end of string. Of course, if length is zero then this function will have the effect of inserting replacement
72
72
* into string at the given start offset.
73
73
* @return string|array The result string is returned. If string is an array then array is returned.
74
74
*/
75
- public function mbSubstrReplace ($ string , $ replacement , $ start , $ length = null )
75
+ public function mbSubstrReplace (string $ string , string $ replacement , int $ start , int $ length = null )
76
76
{
77
77
if (is_array ($ string )) {
78
78
$ num = count ($ string );
0 commit comments