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

Commit 0f8f3ae

Browse files
committed
fix null safety issue for 4.1
1 parent 558eff5 commit 0f8f3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MarkdownExt/SyntaxHighlightingFilter.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ final class SyntaxHighlightingFilter extends Markdown\RenderFilter {
4444
}
4545

4646
$info = $node->getInfoString();
47-
if (!C\contains_key(self::KEYWORDS, $info)) {
47+
if ($info is null || (!C\contains_key(self::KEYWORDS, $info))) {
4848
return vec[$node];
4949
}
5050

0 commit comments

Comments
 (0)