From 0b79eebfa6a2ed690d9e4e2b134ed139ddd1e62f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thiemo=20M=C3=A4ttig?= Date: Mon, 20 Apr 2015 15:44:50 +0200 Subject: [PATCH] Add @var LoadBalancer[] type doc This avoids a good amount of type warnings in certain IDEs, e.g. in my PHPStorm. Change-Id: Id2b99ad48fa2c0d924a1f51b7d2e382eaac7347d --- includes/GlobalFunctions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index cefa37537a..23a8bbbeba 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3755,6 +3755,7 @@ function wfWaitForSlaves( } // Figure out which clusters need to be checked + /** @var LoadBalancer[] $lbs */ $lbs = array(); if ( $cluster === '*' ) { wfGetLBFactory()->forEachLB( function ( LoadBalancer $lb ) use ( &$lbs ) { -- 2.20.1