Skip to content

Commit

Permalink
Fix Parsedown classes for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Nov 21, 2024
1 parent cf19688 commit dcb9592
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dependencies/parsedown-extra/ParsedownExtra.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ParsedownExtra extends Parsedown
{
# ~

public const version = '0.8.0-beta-1';
public const version = '0.8.0-beta-2';

# ~

Expand Down Expand Up @@ -297,7 +297,7 @@ protected function blockMarkupComplete($Block)
#
# Setext

protected function blockSetextHeader($Line, array $Block = null)
protected function blockSetextHeader($Line, array|null $Block = null)
{
$Block = parent::blockSetextHeader($Line, $Block);

Expand Down
8 changes: 4 additions & 4 deletions dependencies/parsedown/Parsedown.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Parsedown
{
# ~

public const version = '1.8.0-beta-7';
public const version = '1.8.0-beta-8';

# ~

Expand Down Expand Up @@ -526,7 +526,7 @@ protected function blockHeader($Line)
#
# List

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

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

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

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

0 comments on commit dcb9592

Please sign in to comment.