recompressTracked.php: Fix typehint of RecompressTracked::dispatch()
authorUmherirrender <umherirrender_de.wp@web.de>
Wed, 4 Sep 2019 20:12:38 +0000 (22:12 +0200)
committerKrinkle <krinklemail@gmail.com>
Sun, 8 Sep 2019 04:06:27 +0000 (04:06 +0000)
Follows-up 4a55e578ff8d73e. This must be the same type as
RecompressTracked::dispatchToReplica().

Caught by PhanTypeMismatchArgument, to be enabled in I34d65fe3ff1916f.

Change-Id: Ifff0d92752e6664d7745efeb4840c8b5ddb974a4

maintenance/storage/recompressTracked.php

index 316d2d2..0d506ef 100644 (file)
@@ -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;