Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add function is_countable() as a polyfill for environments with PHP <…
… 7.3.0 (#357) After this issue came up in this thread: https://forum.wbce.org/viewtopic.php?pid=20226#p20226 I decided to implement this function into functions.php so it's ready to go, as checking with is_array() won't always do. This function will be implemented in PHP since version 7.3.0. This polyfill function will allow the use of this function also on environments with a PHP lower than 7.3.0 see also: http://php.net/manual/en/function.is-countable.php
- Loading branch information