@@ -61,18 +61,18 @@ class HtmlArray extends RendererAbstract
6161
6262 /**
6363 * 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.
6767 * 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
6969 * be replaced. If it is negative, it represents the number of characters from the end of string at which to
7070 * stop replacing. If it is not given, then it will default to strlen( string ); i.e. end the replacing at the
7171 * end of string. Of course, if length is zero then this function will have the effect of inserting replacement
7272 * into string at the given start offset.
7373 * @return string|array The result string is returned. If string is an array then array is returned.
7474 */
75- public function mbSubstrReplace ($ string , $ replacement , $ start , $ length = null )
75+ public function mbSubstrReplace (string $ string , string $ replacement , int $ start , int $ length = null )
7676 {
7777 if (is_array ($ string )) {
7878 $ num = count ($ string );
0 commit comments