Fix the parameters for `attach` method of SplObjectStorage class