> How about just making those classes implement the interface instead?

Christoph pointed out that there may be classes in extensions that use
count_elements.

Also it would make userland code simpler:
is_countable($thing)
vs
is_array($thing) || $thing implements \Countable

Reply via email to