Remove polyfill for is_countable()

This commit is contained in:
Kijin Sung 2024-11-19 00:00:45 +09:00
parent b2051f9934
commit 7e142722d4

View file

@ -740,20 +740,6 @@ function is_empty_html_content($str): bool
return $str === '';
}
/**
* Polyfill for is_countable() in PHP < 7.3
*
* @param mixed $var
* @return bool
**/
if (!function_exists('is_countable'))
{
function is_countable($var)
{
return is_array($var) || $var instanceof Countable;
}
}
/**
* Polyfill for str_starts_with() in PHP < 8.0
*