Skip to content

Commit b09ca0b

Browse files
authored
Support enum display version info (#191)
1 parent 0b69000 commit b09ca0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

phpdotnet/phd/Package/PHP/XHTML.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ public function format_class_chunk($open, $name, $attrs, $props) {
10751075
public function format_reference($open, $name, $attrs, $props) {
10761076
if (isset($attrs[Reader::XMLNS_DOCBOOK]['role'])) {
10771077
if ($attrs[Reader::XMLNS_DOCBOOK]['role'] === "class"
1078+
|| $attrs[Reader::XMLNS_DOCBOOK]['role'] === "enum"
10781079
|| $attrs[Reader::XMLNS_DOCBOOK]['role'] === "exception") {
10791080
if ($open) {
10801081
$this->pushRole($attrs[Reader::XMLNS_DOCBOOK]['role']);
@@ -1089,6 +1090,7 @@ public function format_reference($open, $name, $attrs, $props) {
10891090

10901091
public function format_reference_titleabbrev_text($value, $tag) {
10911092
if ($this->getRole() === "class"
1093+
|| $this->getRole() === "enum"
10921094
|| $this->getRole() === "exception") {
10931095
return $this->format_grep_classname_text($value, $tag);
10941096
}

0 commit comments

Comments
 (0)