Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 ftplugin
Octocat-spinner-32 README
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) 
Something went wrong with that request. Please try again.