Use ::class for class name resolution

Change-Id: Ib75278e3728c1cd24e568f9f30f5cb32f19c5622
This commit is contained in:
Umherirrender 2023-09-20 20:59:19 +02:00
parent 1071a53446
commit 5bd33d9855

View file

@ -159,7 +159,7 @@ class Hooks {
* @return bool Always <code>true</code> * @return bool Always <code>true</code>
*/ */
public static function onParserFirstCallInit( Parser $parser ) { public static function onParserFirstCallInit( Parser $parser ) {
$parser->setFunctionHook( 'related', 'RelatedArticles\\Hooks::onFuncRelated' ); $parser->setFunctionHook( 'related', [ self::class, 'onFuncRelated' ] );
return true; return true;
} }