mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Clean up usage of is_countable()
This commit is contained in:
parent
67a9aba082
commit
494e0ee028
8 changed files with 10 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue