From: Umherirrender Date: Wed, 4 Sep 2019 20:12:38 +0000 (+0200) Subject: recompressTracked.php: Fix typehint of RecompressTracked::dispatch() X-Git-Tag: 1.34.0-rc.0~330^2 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=697900e477430a4c98ea771d57bce1d0198e1488;p=lhc%2Fweb%2Fwiklou.git recompressTracked.php: Fix typehint of RecompressTracked::dispatch() Follows-up 4a55e578ff8d73e. This must be the same type as RecompressTracked::dispatchToReplica(). Caught by PhanTypeMismatchArgument, to be enabled in I34d65fe3ff1916f. Change-Id: Ifff0d92752e6664d7745efeb4840c8b5ddb974a4 --- diff --git a/maintenance/storage/recompressTracked.php b/maintenance/storage/recompressTracked.php index 316d2d2319..0d506ef767 100644 --- a/maintenance/storage/recompressTracked.php +++ b/maintenance/storage/recompressTracked.php @@ -275,7 +275,7 @@ class RecompressTracked { /** * Dispatch a command to the next available replica DB. * This may block until a replica DB finishes its work and becomes available. - * @param array ...$args + * @param array|string ...$args */ function dispatch( ...$args ) { $pipes = $this->replicaPipes;