Skip to content

Commit 8b6d1b9

Browse files
committed
Fixed deprecation warnings about passing null as parameter
1 parent 1c2fd24 commit 8b6d1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ private function getNextEmbedBlock(int $indentation = null, bool $inSequence = f
616616
$data = [];
617617

618618
if ($this->getCurrentLineIndentation() >= $newIndent) {
619-
$data[] = substr($this->currentLine, $newIndent);
619+
$data[] = substr($this->currentLine, $newIndent ?? 0);
620620
} elseif ($this->isCurrentLineEmpty() || $this->isCurrentLineComment()) {
621621
$data[] = $this->currentLine;
622622
} else {

0 commit comments

Comments
 (0)