Improved PHP omnicompletion
Vim script
Switch branches/tags
Nothing to show
Pull request Compare This branch is 3 commits ahead, 333 commits behind shawncplus:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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)