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 84f9257 commit 245240f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Qa/lib/validation/check.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,4 @@ function df_check_iso2($v):bool {return \Df\Zf\Validate\StringT\Iso2::s()->isVal
* @used-by df_result_s()
* @param mixed $v
*/
function df_check_s($v):bool {return is_string($v) || is_int($v) || is_null($v) || is_bool($v) || df_is_phrase($v);}

/** 2022-10-15 @see is_iterable() has been added to PHP 7.1: https://php.net/manual/function.is-iterable.php */
if (!function_exists('is_iterable')) {
/**
* 2016-08-09 http://stackoverflow.com/questions/31701517#comment59189177_31701556
* @used-by df_find()
* @used-by dfaf()
* @used-by \Df\Qa\Dumper::dumpObject()
* @used-by \Df\Sentry\Extra::adjust()
* @param mixed $v
*/
function is_iterable($v):bool {return is_array($v) || $v instanceof Traversable;}
}
function df_check_s($v):bool {return is_string($v) || is_int($v) || is_null($v) || is_bool($v) || df_is_phrase($v);}

0 comments on commit 245240f

Please sign in to comment.