diff --git a/framework/helpers/BaseArrayHelper.php b/framework/helpers/BaseArrayHelper.php index 1ff90bc..77f8007 100644 --- a/framework/helpers/BaseArrayHelper.php +++ b/framework/helpers/BaseArrayHelper.php @@ -401,7 +401,7 @@ class BaseArrayHelper * `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`. * Please refer to [PHP manual](http://php.net/manual/en/function.sort.php) * for more details. When sorting by multiple keys with different sort flags, use an array of sort flags. - * @throws InvalidParamException if the $descending or $sortFlag parameters do not have + * @throws InvalidParamException if the $direction or $sortFlag parameters do not have * correct number of elements as that of $key. */ public static function multisort(&$array, $key, $direction = SORT_ASC, $sortFlag = SORT_REGULAR) @@ -414,7 +414,7 @@ class BaseArrayHelper if (is_scalar($direction)) { $direction = array_fill(0, $n, $direction); } elseif (count($direction) !== $n) { - throw new InvalidParamException('The length of $descending parameter must be the same as that of $keys.'); + throw new InvalidParamException('The length of $direction parameter must be the same as that of $keys.'); } if (is_scalar($sortFlag)) { $sortFlag = array_fill(0, $n, $sortFlag);