summaryrefslogtreecommitdiff
path: root/vendor/league/commonmark/src/Inline/Parser/HtmlInlineParser.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/league/commonmark/src/Inline/Parser/HtmlInlineParser.php')
-rw-r--r--vendor/league/commonmark/src/Inline/Parser/HtmlInlineParser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/league/commonmark/src/Inline/Parser/HtmlInlineParser.php b/vendor/league/commonmark/src/Inline/Parser/HtmlInlineParser.php
index c6db4f44d7..297f088842 100644
--- a/vendor/league/commonmark/src/Inline/Parser/HtmlInlineParser.php
+++ b/vendor/league/commonmark/src/Inline/Parser/HtmlInlineParser.php
@@ -18,12 +18,12 @@ use League\CommonMark\Inline\Element\HtmlInline;
use League\CommonMark\InlineParserContext;
use League\CommonMark\Util\RegexHelper;
-class HtmlInlineParser extends AbstractInlineParser
+class HtmlInlineParser implements InlineParserInterface
{
/**
* @return string[]
*/
- public function getCharacters()
+ public function getCharacters(): array
{
return ['<'];
}
@@ -33,7 +33,7 @@ class HtmlInlineParser extends AbstractInlineParser
*
* @return bool
*/
- public function parse(InlineParserContext $inlineContext)
+ public function parse(InlineParserContext $inlineContext): bool
{
$cursor = $inlineContext->getCursor();
if ($m = $cursor->match('/^' . RegexHelper::PARTIAL_HTMLTAG . '/i')) {