@@ -471,14 +471,14 @@ public function indexOfArray(mixed $arrayExpression, mixed $searchExpression, mi
471471 return $ this ;
472472 }
473473
474- public function indexOfBytes (mixed $ stringExpression , mixed $ substringExpression , mixed $ start = null , mixed $ end = null ): static
474+ public function indexOfBytes (mixed $ stringExpression , mixed $ substringExpression , string | int | null $ start = null , string | int | null $ end = null ): static
475475 {
476476 $ this ->expr ->indexOfBytes (...func_get_args ());
477477
478478 return $ this ;
479479 }
480480
481- public function indexOfCP (mixed $ stringExpression , mixed $ substringExpression , mixed $ start = null , mixed $ end = null ): static
481+ public function indexOfCP (mixed $ stringExpression , mixed $ substringExpression , string | int | null $ start = null , string | int | null $ end = null ): static
482482 {
483483 $ this ->expr ->indexOfCP (...func_get_args ());
484484
@@ -597,7 +597,7 @@ public function ltrim(mixed $input, mixed $chars = null): static
597597 return $ this ;
598598 }
599599
600- public function map (mixed $ input , mixed $ as , mixed $ in ): static
600+ public function map (mixed $ input , string $ as , mixed $ in ): static
601601 {
602602 $ this ->expr ->map (...func_get_args ());
603603
@@ -730,21 +730,21 @@ public function reduce(mixed $input, mixed $initialValue, mixed $in): static
730730 return $ this ;
731731 }
732732
733- public function regexFind (mixed $ input , mixed $ regex , mixed $ options = null ): static
733+ public function regexFind (mixed $ input , mixed $ regex , ? string $ options = null ): static
734734 {
735735 $ this ->expr ->regexFind (...func_get_args ());
736736
737737 return $ this ;
738738 }
739739
740- public function regexFindAll (mixed $ input , mixed $ regex , mixed $ options = null ): static
740+ public function regexFindAll (mixed $ input , mixed $ regex , ? string $ options = null ): static
741741 {
742742 $ this ->expr ->regexFindAll (...func_get_args ());
743743
744744 return $ this ;
745745 }
746746
747- public function regexMatch (mixed $ input , mixed $ regex , mixed $ options = null ): static
747+ public function regexMatch (mixed $ input , mixed $ regex , ? string $ options = null ): static
748748 {
749749 $ this ->expr ->regexMatch (...func_get_args ());
750750
0 commit comments