Hi everybody

I'd like to propose the introduction of warning when counting objects that
can't be counted.

The default behaviour is to return 1 for these objects, which can be
misleading and hide bugs when attempting to count iterable objects (eg
Generators). Adding a warning would alert developers to the issue

https://wiki.php.net/rfc/counting_non_countables

Thanks,
Craig

Reply via email to