fix weak property types
authorMichael Wallner <mike@php.net>
Mon, 8 Mar 2021 12:58:24 +0000 (13:58 +0100)
committerMichael Wallner <mike@php.net>
Mon, 8 Mar 2021 12:58:24 +0000 (13:58 +0100)
mdref/Structure.php

index 2f1a184f1afb387f21287501be2ddf27fed038d3..70233cbbc6fe99914313184e27f1299e762f0f6c 100644 (file)
@@ -492,7 +492,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();