mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +00:00
Add return type hint to function in ServiceWiring.php
This is a common pattern for service wiring functions Change-Id: Ia63bd9a5397b0ea4563f5bb426ed925fc0c40efc
This commit is contained in:
parent
677256f87e
commit
1f16baa471
|
@ -31,7 +31,7 @@ use MediaWiki\MediaWikiServices;
|
||||||
* CategoryTree wiring for MediaWiki services.
|
* CategoryTree wiring for MediaWiki services.
|
||||||
*/
|
*/
|
||||||
return [
|
return [
|
||||||
'CategoryTree.CategoryCache' => static function ( MediaWikiServices $services ) {
|
'CategoryTree.CategoryCache' => static function ( MediaWikiServices $services ): CategoryCache {
|
||||||
return new CategoryCache(
|
return new CategoryCache(
|
||||||
$services->getDBLoadBalancer()
|
$services->getDBLoadBalancer()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue