src/Psalm/Internal/FileManipulation/FunctionDocblockManipulator.php
public function setParamType($param_name, $php_type, $new_type, $phpdoc_type, $is_php_compatible)
    {
        $new_type = str_replace(['<mixed, mixed>', '<array-key, mixed>', '<empty, empty>'], '', $new_type);

        if ($php_type) {
            $this->new_php_param_types[$param_name] = $php_type;
        }
        $this->new_phpdoc_param_types[$param_name] = $phpdoc_type;
        $this->new_psalm_param_types[$param_name] = $new_type;
        $this->param_type_is_php_compatible[$param_name] = $is_php_compatible;
    }
public function setParamType($param_name, $php_type, $new_type, $phpdoc_type, $is_php_compatible)
    {
        $new_type = str_replace(['<mixed, mixed>', '<array-key, mixed>', '<empty, empty>'], '', $new_type);

        if ($php_type) {
            $this->new_php_param_types[$param_name] = $php_type;
        }
        $this->new_phpdoc_param_types[$param_name] = $phpdoc_type;
        $this->new_psalm_param_types[$param_name] = $new_type;
        $this->param_type_is_php_compatible[$param_name] = $is_php_compatible;
    }
public function setParamType ( $ param_name , $ php_type , $ new_type , $ phpdoc_type , $ is_php_compatible ) { $ new_type = str_replace ( [ '<mixed, mixed>' , '<array-key, mixed>' , '<empty, empty>' ] , '' , $ new_type ) ; if ( $ php_type ) { $ this -> new_php_param_types [ $ param_name ] = $ php_type ; } $ this -> new_phpdoc_param_types [ $ param_name ] = $ phpdoc_type ; $ this -> new_psalm_param_types [ $ param_name ] = $ new_type ; $ this -> param_type_is_php_compatible [ $ param_name ] = $ is_php_compatible ; }
Sets a new param type

@param   string      $param_name
@param   ?string     $php_type
@param   string      $new_type
@param   string      $phpdoc_type
@param   bool        $is_php_compatible

@return  void
Sets a new param type