@QuolonelQuestions Oof, TIL. I guess this is because when the class was introduced the foreach engine internals could only handle int or string keys, so I guess that was the workaround
I doubt there was ever a good excuse for removing all members requiring you to pass an empty SplObjectStorage, at which point you may as well just use the empty one you passed instead