[phd] master: Replace curly brace string offset with square bracket syntax (#222)
| From: | haszi via GitHub | Date: | Wed, 26 Nov 2025 19:15:22 +0000 |
| Subject: | [phd] master: Replace curly brace string offset with square bracket syntax (#222) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-22876@lists.php.net to get a copy of this message | ||
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 <haszika80@gmail.com>
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}';