Merge pull request #200 from deftx/master

Added visibility to static variable declarations
This commit is contained in:
Adam Bard 2013-08-13 07:45:16 -07:00
commit d7823eab22

View File

@ -440,6 +440,11 @@ class MyClass
static $staticVar = 'static';
// Static variables and their visibility
public static $publicStaticVar = 'publicStatic';
private static $privateStaticVar = 'privateStatic'; // Accessible within the class only
protected static $protectedStaticVar = 'protectedStatic'; // Accessible from the class and subclasses
// Properties must declare their visibility
public $property = 'public';
public $instanceProp;