[4.2] Some substitutions of typehint (helpers.php)