Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/403
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 3, 2024
1 parent b64d5fd commit 7358e4c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Qa/lib/validation/assert/other.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);}

0 comments on commit 7358e4c

Please sign in to comment.