|
|
@@ -544,7 +544,7 @@ trait CollectionTrait
|
|
|
* {@inheritDoc}
|
|
|
*
|
|
|
*/
|
|
|
- public function _unwrap()
|
|
|
+ public function unwrap()
|
|
|
{
|
|
|
$iterator = $this;
|
|
|
while (get_class($iterator) === 'Cake\Collection\Collection') {
|
|
|
@@ -552,4 +552,15 @@ trait CollectionTrait
|
|
|
}
|
|
|
return $iterator;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Backwards compatible wrapper for unwrap()
|
|
|
+ *
|
|
|
+ * @return \Iterator
|
|
|
+ * @deprecated
|
|
|
+ */
|
|
|
+ public function _unwrap()
|
|
|
+ {
|
|
|
+ return $this->unwrap();
|
|
|
+ }
|
|
|
}
|