diff --git a/Qa/lib/validation/assert/other.php b/Qa/lib/validation/assert/other.php index 6498c67f2..5a82f79ef 100644 --- a/Qa/lib/validation/assert/other.php +++ b/Qa/lib/validation/assert/other.php @@ -42,11 +42,9 @@ function df_assert_sne(string $v, int $sl = 0):string { /** * 2016-08-09 * @used-by dfaf() - * @param Traversable|array $v * @param string|Th $m [optional] - * @return Traversable|array * @throws DFE */ -function df_assert_traversable($v, $m = null) {return is_iterable($v) ? $v : df_error($m ?: +function df_assert_traversable(iterable $v, $m = null):iterable {return is_iterable($v) ? $v : df_error($m ?: 'A variable is expected to be a Traversable or an array, ' . 'but actually it is %s.', df_type($v) );} \ No newline at end of file