Resolved two more curly-brace deprecation warnings

This commit is contained in:
Frans-Willem Post 2019-11-05 10:51:56 +01:00
parent b594a78375
commit 0c967f7c22

View file

@ -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++;
}
}