Resolved two more curly-brace deprecation warnings
This commit is contained in:
parent
b594a78375
commit
0c967f7c22
1 changed files with 2 additions and 2 deletions
|
|
@ -611,7 +611,7 @@ class MarkdownExtra extends \Michelf\Markdown {
|
|||
// Increase/decrease nested tag count.
|
||||
if ($tag[1] === '/') {
|
||||
$depth--;
|
||||
} else if ($tag{strlen($tag)-2} !== '/') {
|
||||
} else if ($tag[strlen($tag)-2] !== '/') {
|
||||
$depth++;
|
||||
}
|
||||
|
||||
|
|
@ -734,7 +734,7 @@ class MarkdownExtra extends \Michelf\Markdown {
|
|||
if (preg_match('{^</?' . $base_tag_name_re . '\b}', $tag)) {
|
||||
if ($tag[1] === '/') {
|
||||
$depth--;
|
||||
} else if ($tag{strlen($tag)-2} !== '/') {
|
||||
} else if ($tag[strlen($tag)-2] !== '/') {
|
||||
$depth++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue