cakephp/cakephp — pull request #3269 by dereuromark (2014-04-09 00:39:27+00:00)
Title: Simplify foreach()

We can continue here and save one level of deepness.

Alternatively, when it is not an array, we could just throw an exception here - as it would not be a valid rule and skipped/ignored anyway.