Merge pull request #317 from fwiep/lib

Resolved two more curly-brace deprecation warnings
This commit is contained in:
Michel Fortin 2019-11-05 06:37:43 -05:00 committed by GitHub
commit 90e0f5f0c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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