Skip to content

Commit 870c6be

Browse files
committed
Fix rendering of attribute constants
$this->cchunk["fieldsynopsis"]["modifier"] was not set for atrributes due to the early return, but this value is needed in order to be able to decide if the fieldsynopsis refers to a constant or a property at https://github.com/php/phd/blob/d7f700463918a466705e92b4bfd4df0afa39d944/phpdotnet/phd/Package/Generic/XHTML.php#L1608
1 parent 0e43594 commit 870c6be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpdotnet/phd/Package/Generic/XHTML.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,7 @@ public function format_fieldsynopsis($open, $name, $attrs) {
14271427
}
14281428

14291429
public function format_fieldsynopsis_modifier_text($value, $tag) {
1430+
$this->cchunk["fieldsynopsis"]["modifier"] = trim($value);
14301431
if ($this->getRole() === "attribute") {
14311432
$attribute = trim(strtolower($value), "#[]\\");
14321433
$href = Format::getFilename("class.$attribute");
@@ -1435,7 +1436,6 @@ public function format_fieldsynopsis_modifier_text($value, $tag) {
14351436
}
14361437
return false;
14371438
}
1438-
$this->cchunk["fieldsynopsis"]["modifier"] = trim($value);
14391439
return $this->TEXT($value);
14401440
}
14411441

0 commit comments

Comments
 (0)