PMCORE-3920 Create a PM table or Report Table are not working

This commit is contained in:
Roly Gutierrez
2022-08-17 09:19:35 -04:00
parent 2427b40a74
commit 73fc20af00
9 changed files with 42 additions and 18 deletions

View File

@@ -167,7 +167,7 @@ class StringHelper {
* a natural way of getting a subtring, php's circular string buffer and strange
* return values suck if you want to program strict as of C or friends
*/
public static function substring($string, $startpos, $endpos = -1) {
public static function substring(string $string, $startpos, $endpos = -1) {
$len = strlen($string);
$endpos = (int) (($endpos === -1) ? $len-1 : $endpos);
if ($startpos > $len-1 || $startpos < 0) {