Skip to content

Commit 0dc369a

Browse files
jgmdevcomplex857
authored andcommitted
Fix for invalid index error when reading the variables from certain classes. (#121)
Special thanks to @jgmdev Fixes #121
1 parent 16104ba commit 0dc369a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/phpcomplete.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ function! phpcomplete#CompleteUserClass(context, base, sccontent, visibility) "
13131313
let c_var = '$'.c_var
13141314
endif
13151315
let c_variables[c_var] = ''
1316-
if g:phpcomplete_parse_docblock_comments && len(get(variables, var_index)) > 0
1316+
if g:phpcomplete_parse_docblock_comments && len(get(variables, var_index, '')) > 0
13171317
let c_doc[c_var] = phpcomplete#GetDocBlock(a:sccontent, variables[var_index])
13181318
endif
13191319
let var_index += 1

0 commit comments

Comments
 (0)