Skip to content

Commit

Permalink
Add a deprecation note about VirtualFormAwareIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcmorales authored and nicolas-grekas committed Dec 15, 2014
1 parent ab4d9b8 commit e2a19ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Symfony/Component/Form/Util/VirtualFormAwareIterator.php
Expand Up @@ -25,6 +25,15 @@
*/
class VirtualFormAwareIterator extends \IteratorIterator implements \RecursiveIterator
{
public function __construct(\Traversable $iterator)
{
parent::__construct($iterator);

if ('Symfony\Component\Form\Util\VirtualFormAwareIterator' === get_class()) {
trigger_error('class VirtualFormAwareIterator is deprecated since version 2.7 and will be removed in 3.0. Use InheritDataAwareIterator instead.', E_USER_DEPRECATED);
}
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit e2a19ee

Please sign in to comment.