From 1f16baa47191cfc0c3994d1c2986555f00679f28 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Wed, 31 Jan 2024 20:05:09 +0100 Subject: [PATCH] Add return type hint to function in ServiceWiring.php This is a common pattern for service wiring functions Change-Id: Ia63bd9a5397b0ea4563f5bb426ed925fc0c40efc --- includes/ServiceWiring.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index da55b85b..095bf939 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -31,7 +31,7 @@ use MediaWiki\MediaWikiServices; * CategoryTree wiring for MediaWiki services. */ return [ - 'CategoryTree.CategoryCache' => static function ( MediaWikiServices $services ) { + 'CategoryTree.CategoryCache' => static function ( MediaWikiServices $services ): CategoryCache { return new CategoryCache( $services->getDBLoadBalancer() );