Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
fix assignment as expression
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Dec 19, 2019
1 parent c670599 commit 7915e2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unparsed-blocks/ATXHeading.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7915e2d

Please sign in to comment.