From 0c967f7c2267a89b909cb82ea87f62067294f4e0 Mon Sep 17 00:00:00 2001 From: Frans-Willem Post Date: Tue, 5 Nov 2019 10:51:56 +0100 Subject: [PATCH] Resolved two more curly-brace deprecation warnings --- Michelf/MarkdownExtra.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Michelf/MarkdownExtra.php b/Michelf/MarkdownExtra.php index 918cfc7..1516f45 100644 --- a/Michelf/MarkdownExtra.php +++ b/Michelf/MarkdownExtra.php @@ -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('{^