1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Add support for true standalone type when generating methodsynopsis

This commit is contained in:
Máté Kocsis
2023-05-07 10:19:38 +02:00
parent 85338569de
commit 281669aeb4

View File

@@ -725,11 +725,7 @@ class Type {
}
} else {
$type = $this->types[0];
if ($type->isBuiltin && strtolower($type->name) === "true") {
$name = "bool";
} else {
$name = $type->name;
}
$name = $type->name;
$typeElement = $doc->createElement('type', $name);
}