Skip to content

Commit

Permalink
Add deprecation warning to _unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 25, 2017
1 parent 650afd8 commit d5b239f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Collection/CollectionTrait.php
Expand Up @@ -725,11 +725,12 @@ public function unwrap()
* Backwards compatible wrapper for unwrap()
*
* @return \Traversable
* @deprecated
* @deprecated 3.0.10 Will be removed in 4.0.0
*/
// @codingStandardsIgnoreLine
public function _unwrap()
{
deprecationWarning('CollectionTrait::_unwrap() is deprecated. Use CollectionTrait::unwrap() instead.');
return $this->unwrap();
}

Expand Down

0 comments on commit d5b239f

Please sign in to comment.