From 2b55cfe57657ae603540d1157b6a89c8c7b485b2 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sat, 2 Nov 2024 09:49:14 +0000 Subject: [PATCH] Add type hint for parserHook On a self-closing tag the first parameter is null. Change-Id: I7a8cee1cb517a5b565617cdf5e1b1aeeb03b8de1 --- includes/Hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index 242bbd2c..43d685af 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -181,14 +181,14 @@ class Hooks implements /** * Entry point for the tag parser hook. * This loads CategoryTreeFunctions.php and calls CategoryTree::getTag() - * @param string $cat + * @param string|null $cat * @param array $argv * @param Parser|null $parser * @param PPFrame|null $frame * @return bool|string */ public function parserHook( - $cat, + ?string $cat, array $argv, ?Parser $parser = null, ?PPFrame $frame = null