From 7915e2da4c5b877ac3eeb45eb6b1f9c8b6d53a2a Mon Sep 17 00:00:00 2001 From: jjergus Date: Thu, 19 Dec 2019 12:05:22 -0800 Subject: [PATCH] fix assignment as expression --- src/unparsed-blocks/ATXHeading.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unparsed-blocks/ATXHeading.php b/src/unparsed-blocks/ATXHeading.php index f42112c..7bba617 100644 --- a/src/unparsed-blocks/ATXHeading.php +++ b/src/unparsed-blocks/ATXHeading.php @@ -30,7 +30,8 @@ public static function consume( list($first, $rest) = $lines->getFirstLineAndRest(); - $title = $level = null; + $title = null; + $level = null; foreach ($patterns as $pattern) { $matches = Regex\first_match($first, $pattern); if ($matches is nonnull) {