private static function split(string $string): array
    {
        $chars = [];

        for ($i = 0; $i < strlen($string); $i++) {
            $chars[] = $string[$i];
        }

        return $chars;
    }
private static function split(string $string): array
    {
        $chars = [];

        for ($i = 0; $i < strlen($string); $i++) {
            $chars[] = $string[$i];
        }

        return $chars;
    }
private static function split ( string $ string ) : array { $ chars = [ ] ; for ( $ i = 0 ; $ i < strlen ( $ string ) ; $ i ++ ) { $ chars [ ] = $ string [ $ i ] ; } return $ chars ; }
Splits the string into array of characters. Type-sane version of
str_split for PHPStan.

@param string $string
@return string[]
Splits the string into array of characters . Type - sane version of str_split for PHPStan .