From f801fef42b5274daa0c09645caefdb50f4bfece1 Mon Sep 17 00:00:00 2001 From: erikmh Date: Thu, 15 Feb 2024 10:26:00 -0500 Subject: [PATCH] Add PR #279 which fixes a ParseDown extra PHP 8.2 deprecation notice --- .../parsedown-extra/ParsedownExtra.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php b/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php index a57bad80..4f68a703 100755 --- a/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php +++ b/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php @@ -508,7 +508,8 @@ class ParsedownExtra extends Parsedown ), ); - uasort($this->DefinitionData['Footnote'], 'self::sortFootnotes'); + // RJC https://github.com/processwire/processwire/pull/279 + uasort($this->DefinitionData['Footnote'], self::class . '::sortFootnotes'); foreach ($this->DefinitionData['Footnote'] as $definitionId => $DefinitionData) {