mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove polyfill for is_countable()
This commit is contained in:
parent
b2051f9934
commit
7e142722d4
1 changed files with 0 additions and 14 deletions
|
|
@ -740,20 +740,6 @@ function is_empty_html_content($str): bool
|
||||||
return $str === '';
|
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
|
* Polyfill for str_starts_with() in PHP < 8.0
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue