This repository has been archived by the owner. It is now read-only.

Symfony 3: use IteratorAggregate to retrieve node #1

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −2
Diff settings

Always

Just for now

@@ -901,8 +901,7 @@ private function mergeForms(Form $to, Form $from)
*/
private function getCrawlerNode(Crawler $crawler)
{
- $crawler->rewind();
- $node = $crawler->current();
+ $node = $crawler->getIterator()->current();
if (null !== $node) {
return $node;