You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SplObjectStorage objects can also not be cloned reliably. Therefore working around the issue by looping over a clone of the original object is also not an option.
The only thing we can do here is to call rewind() after the loop. Of course, this still changes the index (if it was not on the first element). In most cases, though, I think that changing the index to the first element is "less surprising" than changing it to the last element.
Originally posted by @sebastianbergmann in #49 (comment)
The text was updated successfully, but these errors were encountered: