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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user