Clean up usage of is_countable()

This commit is contained in:
Kijin Sung 2020-06-08 20:35:54 +09:00
parent 67a9aba082
commit 494e0ee028
8 changed files with 10 additions and 14 deletions

View file

@ -694,9 +694,10 @@ function is_empty_html_content($str)
}
/**
* https://wiki.php.net/rfc/is-countable
* Check if there is 'is_countable' function (PHP 7.3)
* If there is no 'is_countable' function, define it for check Countable objects
* If there is no 'is_countable' function, define it to check for Countable objects.
*
* cf. https://wiki.php.net/rfc/is-countable
*
* @param string $str The input string
* @return bool
@ -707,4 +708,4 @@ if (!function_exists('is_countable'))
{
return is_array($var) || $var instanceof Countable;
}
}
}