X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=mdref%2FStructure.php;h=ace780b4d0c62b340be869c124cdefebc3132cda;hb=a94ecb1009610a763dd74a7eebc4754b6643d832;hp=2f1a184f1afb387f21287501be2ddf27fed038d3;hpb=9e29e618d95d400ebcaa949ae06feb859a3a0562;p=mdref%2Fmdref diff --git a/mdref/Structure.php b/mdref/Structure.php index 2f1a184..ace780b 100644 --- a/mdref/Structure.php +++ b/mdref/Structure.php @@ -129,7 +129,9 @@ class Structure { private function getConstants() : array { static $pattern = '/ \*\s+ + (?:[<]span[ ]class="constant"[>])? (?\w+) + (?:[<]\/span[>])? (?:\s*=\s*(?P.+))? (?P(?:\s*\n\s*[^\*\n#].*)*) /x'; @@ -492,7 +494,7 @@ class StructureOfVar extends StructureOf { $indent = str_repeat("\t", $level); $this->formatDesc($level, preg_split('/\s+/', $this->modifiers ." " . $this->usages, -1, PREG_SPLIT_NO_EMPTY) - + [-1 => "var " . $this->saneType($this->type)] + + [-1 => "var " . $this->saneType($this->type, false)] ); printf("%s%s %s", $indent, $this->modifiers, $this->name); $this->formatDefval();