akeeba / fof

Rapid Application Development framework for Joomla!™ 3 and 4
0 stars 0 forks source link

empty() returns false even when there are no items in a collection #563

Closed wilsonge closed 8 years ago

wilsonge commented 8 years ago

Haven't had time to debug why empty isn't working - I just got as far as debugging that it wasn't but this did work

wilsonge commented 8 years ago

For what it's worth as well. This comment here suggests the reset below might also be potentially dodgy with ArrayAccess but haven't had time to replicate http://php.net/manual/en/class.arrayaccess.php#117567

nikosdion commented 8 years ago

As far as I know it is a bug in ArrayAccess indeed. What can you do?