mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +00:00
Add type hint for parserHook
On a self-closing tag the first parameter is null. Change-Id: I7a8cee1cb517a5b565617cdf5e1b1aeeb03b8de1
This commit is contained in:
parent
36364de1a4
commit
2b55cfe576
|
@ -181,14 +181,14 @@ class Hooks implements
|
|||
/**
|
||||
* Entry point for the <categorytree> 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
|
||||
|
|
Loading…
Reference in a new issue