.. _classes-couldbeiterable: .. _this-could-be-iterable: This Could Be Iterable ++++++++++++++++++++++ An argument that is both array and `traversable `_>`_ may be typed iterable. Iterable is a more generic type than array, and allows the usage of iterators too. .. code-block:: php b as $c) { // do something } } } ?> See also `iterable `_. Connex PHP features ------------------- + `iterable `_ Suggestions ___________ * Add the iterable typehint Specs _____ +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Classes/CouldBeIterable | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Suggestions `, :ref:`Typechecks ` | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.3.3 | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | With PHP 7.1 and more recent | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+