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

Display the readonly modifier for readonly classes

This commit is contained in:
Máté Kocsis
2023-07-03 16:01:05 +02:00
parent 3c6590a391
commit 4db4f0ba00

View File

@@ -3017,6 +3017,10 @@ class ClassInfo {
$ooElement->appendChild($doc->createElement('modifier', 'abstract'));
$ooElement->appendChild(new DOMText("\n$indentation "));
}
if ($classInfo->flags & Class_::MODIFIER_READONLY) {
$ooElement->appendChild($doc->createElement('modifier', 'readonly'));
$ooElement->appendChild(new DOMText("\n$indentation "));
}
}
$nameElement = $doc->createElement("{$type}name", $classInfo->name->toString());