Skip to content

Commit 1b91ab9

Browse files
author
Martin Brecht-Precht
committed
WIP: Language level migration.
1 parent 9fb9559 commit 1b91ab9

File tree

10 files changed

+119
-105
lines changed

10 files changed

+119
-105
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
"require": {
2626
"php": "^7.1",
27+
"ext-ctype": "*",
2728
"ext-dom": "*",
2829
"ext-json": "*",
2930
"ext-mbstring": "*",

src/Dispatcher/CommonmarkDispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(string $commonmarkString)
4040
/**
4141
* @return HtmlProcessorInterface
4242
*/
43-
public function getHtmlProcessor():HtmlProcessorInterface
43+
public function getHtmlProcessor(): HtmlProcessorInterface
4444
{
4545
return $this->htmlProcessor;
4646
}
@@ -58,7 +58,7 @@ public function setHtmlProcessor(HtmlProcessorInterface $htmlProcessor)
5858
/**
5959
* @return bool
6060
*/
61-
public function isReusable():bool
61+
public function isReusable(): bool
6262
{
6363
return true;
6464
}

src/Dispatcher/CommonmarkUtil/DocumentProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class DocumentProcessor implements DocumentProcessorInterface
6363
*/
6464
public function __construct(
6565
HandlerInterface $markdomHandler,
66-
HtmlProcessorInterface $htmlProcessor = null
66+
?HtmlProcessorInterface $htmlProcessor = null
6767
) {
6868
$this->markdomHandler = $markdomHandler;
6969
if (is_null($htmlProcessor)) {

src/Dispatcher/PhpObjectDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function dispatchTo(HandlerInterface $markdomHandler)
6767
/**
6868
* @return bool
6969
*/
70-
public function isReusable():bool
70+
public function isReusable(): bool
7171
{
7272
return true;
7373
}

0 commit comments

Comments
 (0)