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:
Umherirrender 2024-01-31 20:05:09 +01:00
parent 677256f87e
commit 1f16baa471

View file

@ -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()
); );