From 5bd33d9855d39125cde68aca92b6b6b343428616 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Wed, 20 Sep 2023 20:59:19 +0200 Subject: [PATCH] Use ::class for class name resolution Change-Id: Ib75278e3728c1cd24e568f9f30f5cb32f19c5622 --- includes/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index 2bc6e1f4..4de5048f 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -159,7 +159,7 @@ class Hooks { * @return bool Always true */ public static function onParserFirstCallInit( Parser $parser ) { - $parser->setFunctionHook( 'related', 'RelatedArticles\\Hooks::onFuncRelated' ); + $parser->setFunctionHook( 'related', [ self::class, 'onFuncRelated' ] ); return true; }