Skip to content

Commit 281669a

Browse files
committed
Add support for true standalone type when generating methodsynopsis
1 parent 8533856 commit 281669a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

build/gen_stub.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -725,11 +725,7 @@ public function getTypeForDoc(DOMDocument $doc): DOMElement {
725725
}
726726
} else {
727727
$type = $this->types[0];
728-
if ($type->isBuiltin && strtolower($type->name) === "true") {
729-
$name = "bool";
730-
} else {
731-
$name = $type->name;
732-
}
728+
$name = $type->name;
733729

734730
$typeElement = $doc->createElement('type', $name);
735731
}

0 commit comments

Comments
 (0)