protected function getTypeOverride($type)
    {
        $typeOverrides = $this->laravel['config']->get('ide-helper.type_overrides', array());

        return isset($typeOverrides[$type]) ? $typeOverrides[$type] : $type;
    }