Skip to content

Commit 4db4f0b

Browse files
committed
Display the readonly modifier for readonly classes
1 parent 3c6590a commit 4db4f0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/gen_stub.php

+4
Original file line numberDiff line numberDiff line change
@@ -3017,6 +3017,10 @@ private static function createOoElement(
30173017
$ooElement->appendChild($doc->createElement('modifier', 'abstract'));
30183018
$ooElement->appendChild(new DOMText("\n$indentation "));
30193019
}
3020+
if ($classInfo->flags & Class_::MODIFIER_READONLY) {
3021+
$ooElement->appendChild($doc->createElement('modifier', 'readonly'));
3022+
$ooElement->appendChild(new DOMText("\n$indentation "));
3023+
}
30203024
}
30213025

30223026
$nameElement = $doc->createElement("{$type}name", $classInfo->name->toString());

0 commit comments

Comments
 (0)