1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Joe Nahmias <jello@debian.org>
Date: Wed, 29 Oct 2025 23:09:00 -0400
Subject: fix implicit nullability for PHP 8.4
Fixes all issues that emit deprecation notices on PHP 8.4 for implicit
nullable parameter type declarations.
Based on upstream commit 6ae01284b835bddc0264a2ac4e63f570b9457357
https://github.com/erusev/parsedown/commit/6ae01284b835bddc0264a2ac4e63f570b9457357
---
Parsedown.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Parsedown.php b/Parsedown.php
index 1b9d6d5..d9b5476 100644
--- a/Parsedown.php
+++ b/Parsedown.php
@@ -712,7 +712,7 @@ class Parsedown
#
# Setext
- protected function blockSetextHeader($Line, array $Block = null)
+ protected function blockSetextHeader($Line, ?array $Block = null)
{
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
{
@@ -850,7 +850,7 @@ class Parsedown
#
# Table
- protected function blockTable($Line, array $Block = null)
+ protected function blockTable($Line, ?array $Block = null)
{
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
{
|