Skip to content

josefadamcik/phpcomplete.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Default phpcomplete.vim does not support in-file checking of $var = new Class; so if you don't have a tags file with the variable in it already you have to hack around it by placing the comment `/* @var $yourvar YourClass */` above the line which is really kludgy.

This patch allows for in-file checking so you don't need the comment.

	$instance = new Class;
	...
	$instance->Blah(); // <-- complete without comment

It also allows support for singleton instantiations:

	$instance = Class::getInstance();
	$instance->completeMe(); // sweet completion

Other features:
 * Correct restriction of static or standard methods based on context ( show only static methods with :: and only standard with ->)
 * Real support for self:: and $this-> with the aforementioned context restriction
 * Constant variable completion (not just define(VARIABLE, 1) but const VARIABLE = 1) 

About

Improved PHP omnicompletion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published