Skip to content

Commit ed86b82

Browse files
haszihaszi
andauthored
Replace curly brace string offset with square bracket syntax (#222)
Co-authored-by: haszi <[email protected]>
1 parent 5b4703a commit ed86b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpdotnet/phd/Package/PEAR/XHTML.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ public function format_phd_pearapi($open, $name, $attrs, $props)
643643
if (count($arLinkend) == 1) {
644644
//link to class
645645
$linktpl = '{$package}/docs/latest/{$package}/{$class}.html';
646-
} else if ($arLinkend[1]{0} == '$') {
646+
} else if ($arLinkend[1][0] == '$') {
647647
//link to class variable
648648
$variable = $arLinkend[1];
649649
$linktpl = '{$package}/docs/latest/{$package}/{$class}.html#var{$variable}';

0 commit comments

Comments
 (0)