Skip to content

Commit

Permalink
Merge pull request #872 from xabbuh/pr-868-1.8
Browse files Browse the repository at this point in the history
[PHP 8.4] Fixes for implicit nullability deprecation
  • Loading branch information
erusev authored Jul 17, 2024
2 parents 15048b0 + 6ae0128 commit 9d00dea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Parsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ protected function blockHeader($Line)
#
# List

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

Expand Down Expand Up @@ -807,7 +807,7 @@ protected function blockRule($Line)
#
# Setext

protected function blockSetextHeader($Line, array $Block = null)
protected function blockSetextHeader($Line, ?array $Block = null)
{
if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted']))
{
Expand Down Expand Up @@ -893,7 +893,7 @@ protected function blockReference($Line)
#
# Table

protected function blockTable($Line, array $Block = null)
protected function blockTable($Line, ?array $Block = null)
{
if ( ! isset($Block) or $Block['type'] !== 'Paragraph' or isset($Block['interrupted']))
{
Expand Down

0 comments on commit 9d00dea

Please sign in to comment.