Skip to content

Commit

Permalink
Merge pull request #868 from Ayesh/php84/nullability
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 9, 2024
2 parents 232c572 + 908754b commit 26cfde9
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 @@ -571,7 +571,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 @@ -808,7 +808,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 @@ -894,7 +894,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 26cfde9

Please sign in to comment.