Merge pull request #872 from xabbuh/pr-868-1.8

[PHP 8.4] Fixes for implicit nullability deprecation
This commit is contained in:
Emanuil Rusev 2024-07-17 09:19:21 +03:00 committed by GitHub
commit 9d00deadcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -570,7 +570,7 @@ class Parsedown
#
# 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}+[.\)]');
@ -807,7 +807,7 @@ class Parsedown
#
# 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']))
{
@ -893,7 +893,7 @@ class Parsedown
#
# 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']))
{