Use "callable" instead of "array" in doc block for ArrayUtils::findLowerBound()
authorKunal Mehta <legoktm@gmail.com>
Wed, 5 Nov 2014 21:44:43 +0000 (13:44 -0800)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 6 Nov 2014 00:08:56 +0000 (00:08 +0000)
Change-Id: I1207963c53941a8f94350aaced414c8e601fb4e4

includes/utils/ArrayUtils.php

index 1e521cb..f934021 100644 (file)
@@ -98,11 +98,11 @@ class ArrayUtils {
         *
         * @since 1.23
         *
-        * @param array $valueCallback A function to call to get the value with
+        * @param callable $valueCallback A function to call to get the value with
         *     a given array index.
         * @param int $valueCount The number of items accessible via $valueCallback,
         *     indexed from 0 to $valueCount - 1
-        * @param array $comparisonCallback A callback to compare two values, returning
+        * @param callable $comparisonCallback A callback to compare two values, returning
         *     -1, 0 or 1 in the style of strcmp().
         * @param string $target The target value to find.
         *