[DOC-CVS] [phd] master: Replace curly brace string offset with square bracket syntax (#222)
[email protected] (haszi via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: haszi (haszi) Committer: GitHub (web-flow) Pusher: haszi Date: 2025-11-26T20:15:20+01:00 Commit: https://github.com/php/phd/commit/ed86b82d16edef210ea823e463acd6c88103637b Raw diff: https://github.com/php/phd/commit/ed86b82d16edef210ea823e463acd6c88103637b.diff Replace curly brace string offset with square bracket syntax (#222) Co-authored-by: haszi <[email protected]> Changed paths: M phpdotnet/phd/Package/PEAR/XHTML.php Diff: diff --git a/phpdotnet/phd/Package/PEAR/XHTML.php b/phpdotnet/phd/Package/PEAR/XHTML.php index dcbc8cd7..36580038 100755 --- a/phpdotnet/phd/Package/PEAR/XHTML.php +++ b/phpdotnet/phd/Package/PEAR/XHTML.php @@ -643,7 +643,7 @@ public function format_phd_pearapi($open, $name, $attrs, $props) if (count($arLinkend) == 1) { //link to class $linktpl = '{$package}/docs/latest/{$package}/{$class}.html'; - } else if ($arLinkend[1]{0} == '$') { + } else if ($arLinkend[1][0] == '$') { //link to class variable $variable = $arLinkend[1]; $linktpl = '{$package}/docs/latest/{$package}/{$class}.html#var{$variable}';