CodeDoc/Parser/Var.php
authorAlan Knowles <alan@roojs.com>
Fri, 28 Oct 2016 08:26:25 +0000 (16:26 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 28 Oct 2016 08:26:25 +0000 (16:26 +0800)
CodeDoc/Parser/Var.php

index 98934fe..e5a025d 100644 (file)
@@ -41,6 +41,8 @@ class PHP_CodeDoc_Parser_Var {
         $var->isPublic = 1;
         $var->isStatic = 0;
         $var->visibility = 1;
+        $var->isConstant = $this->tokens[$this->pos][0] == T_CONST;
+        
         if (in_array(T_PRIVATE, $flags)) {
             $var->type = "Private";
             $var->isPublic = 0;