Skip to content

Commit 9d00dea

Browse files
authored
Merge pull request #872 from xabbuh/pr-868-1.8
[PHP 8.4] Fixes for implicit nullability deprecation
2 parents 15048b0 + 6ae0128 commit 9d00dea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Parsedown.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ protected function blockHeader($Line)
570570
#
571571
# List
572572

573-
protected function blockList($Line, array $CurrentBlock = null)
573+
protected function blockList($Line, ?array $CurrentBlock = null)
574574
{
575575
list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]{1,9}+[.\)]');
576576

@@ -807,7 +807,7 @@ protected function blockRule($Line)
807807
#
808808
# Setext
809809

810-
protected function blockSetextHeader($Line, array $Block = null)
810+
protected function blockSetextHeader($Line, ?array $Block = null)
811811
{
812812
if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted']))
813813
{
@@ -893,7 +893,7 @@ protected function blockReference($Line)
893893
#
894894
# Table
895895

896-
protected function blockTable($Line, array $Block = null)
896+
protected function blockTable($Line, ?array $Block = null)
897897
{
898898
if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted']))
899899
{

0 commit comments

Comments
 (0)