minor #24564 add DOMElement as return type in Crawler::getIterator to support foreach support in ide (Haehnchen)
minor #24564 add DOMElement as return type in Crawler::getIterator to support foreach support in ide (Haehnchen)

This PR was merged into the 3.3 branch.

Discussion
----------

add DOMElement as return type in Crawler::getIterator to support foreach support in ide

| Q             | A
| ------------- | ---
| Branch?       | 3.3
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

In `Crawler::getIterator` return type is missing so ide (PhpStorm) is not able to provide completion inside foreach statements. This PR adds `DOMElement[]` to it

```php
$crawler = new Crawler('foobar');
foreach($crawler->filter('a') as $link) {
   # support completion
   $link->...
}
```

Commits
-------

2350597288 add DOMElement as return type in Crawler::getIterator to support foreach support in ide

curry684/symfony,frankdejonge/symfony,zcodes/symfony,mnapoli/symfony,derrabus/symfony,oleg-andreyev/symfony,tgalopin/symfony,weaverryan/symfony,jvasseur/symfony,Koc/symfony,docteurklein/symfony,hacfi/symfony,jakzal/symfony,jakzal/symfony,OskarStark/symfony,lyrixx/symfony,mweimerskirch/symfony,shieldo/symfony,1ed/symfony,OskarStark/symfony,iltar/symfony,1ed/symfony,gimler/symfony,zorn-v/symfony,lstrojny/symfony,voronkovich/symfony,xabbuh/symfony,e-moe/symfony,ragboyjr/symfony,pierredup/symfony,sroze/symfony,yceruto/symfony,sgehrig/symfony,docteurklein/symfony,gnat42/symfony,gnat42/symfony,MatTheCat/symfony,zerkms/symfony,phramz/symfony,localheinz/symfony,Einenlum/symfony,docteurklein/symfony,jderusse/symfony,Pierstoval/symfony,phramz/symfony,joelwurtz/symfony,hhamon/symfony,joelwurtz/symfony,josephdpurcell/symfony,gonzalovilaseca/symfony,Tobion/symfony,mweimerskirch/symfony,ro0NL/symfony,damienalexandre/symfony,Einenlum/symfony,ogizanagi/symfony,josephdpurcell/symfony,Simperfit/symfony,maidmaid/symfony,ro0NL/symfony,derrabus/symfony,nicolas-grekas/symfony,oleg-andreyev/symfony,paradajozsef/symfony,d-ph/symfony,mnapoli/symfony,mnapoli/symfony,bendavies/symfony,bendavies/symfony,Tobion/symfony,Taluu/symfony,oleg-andreyev/symfony,ogizanagi/symfony,WhiteEagle88/symfony,mnapoli/symfony,localheinz/symfony,gonzalovilaseca/symfony,MatTheCat/symfony,curry684/symfony,HeahDude/symfony,Slamdunk/symfony,mpdude/symfony,shieldo/symfony,sroze/symfony,yceruto/symfony,phramz/symfony,tucksaun/symfony,vincentaubert/symfony,1ed/symfony,mpdude/symfony,sgehrig/symfony,curry684/symfony,alekitto/symfony,ro0NL/symfony,gonzalovilaseca/symfony,romaricdrigon/symfony,chalasr/symfony,symfony/symfony,Simperfit/symfony,jzawadzki/symfony,andrerom/symfony,alekitto/symfony,michaelperrin/symfony,Pierstoval/symfony,zcodes/symfony,xabbuh/symfony,Deamon/symfony,gimler/symfony,Taluu/symfony,shieldo/symfony,Einenlum/symfony,pamil/symfony,Taluu/symfony,zerkms/symfony,tgalopin/symfony,MatTheCat/symfony,Koc/symfony,andrerom/symfony,sroze/symfony,nicolas-grekas/symfony,Simperfit/symfony,ajgarlag/symfony,chalasr/symfony,d-ph/symfony,mweimerskirch/symfony,michaelperrin/symfony,HeahDude/symfony,fabpot/symfony,Deamon/symfony,joelwurtz/symfony,gencer/symfony,zcodes/symfony,apetitpa/symfony,localheinz/symfony,frankdejonge/symfony,docteurklein/symfony,fabpot/symfony,iltar/symfony,yceruto/symfony,Slamdunk/symfony,Tobion/symfony,bendavies/symfony,Deamon/symfony,michaelperrin/symfony,gonzalovilaseca/symfony,e-moe/symfony,e-moe/symfony,tucksaun/symfony,voronkovich/symfony,jakzal/symfony,apetitpa/symfony,jakzal/symfony,gnat42/symfony,symfony/symfony,maidmaid/symfony,mnapoli/symfony,lstrojny/symfony,oleg-andreyev/symfony,xabbuh/symfony,arjenm/symfony,pierredup/symfony,derrabus/symfony,Deamon/symfony,dmaicher/symfony,Pierstoval/symfony,nicolas-grekas/symfony,phramz/symfony,Slamdunk/symfony,Taluu/symfony,pamil/symfony,garak/symfony,MatTheCat/symfony,OskarStark/symfony,pyrech/symfony,jean-gui/symfony,andrerom/symfony,dmaicher/symfony,michaelperrin/symfony,jvasseur/symfony,shieldo/symfony,tucksaun/symfony,d-ph/symfony,smatyas/symfony,OskarStark/symfony,nasimnabavi/symfony,maidmaid/symfony,nasimnabavi/symfony,Simperfit/symfony,garak/symfony,c960657/symfony,andreia/symfony,fabpot/symfony,andreia/symfony,zerkms/symfony,gencer/symfony,lstrojny/symfony,dunglas/symfony,c960657/symfony,ajgarlag/symfony,voronkovich/symfony,curry684/symfony,kbond/symfony,hhamon/symfony,maidmaid/symfony,HeahDude/symfony,damienalexandre/symfony,lyrixx/symfony,smatyas/symfony,pierredup/symfony,zerkms/symfony,Nyholm/symfony,gimler/symfony,gimler/symfony,Pierstoval/symfony,jzawadzki/symfony,paradajozsef/symfony,apetitpa/symfony,damienalexandre/symfony,weaverryan/symfony,mweimerskirch/symfony,Simperfit/symfony,pierredup/symfony,zorn-v/symfony,damienalexandre/symfony,jderusse/symfony,hhamon/symfony,pyrech/symfony,chalasr/symfony,smatyas/symfony,zorn-v/symfony,jean-gui/symfony,ragboyjr/symfony,iltar/symfony,Slamdunk/symfony,jderusse/symfony,lyrixx/symfony,dunglas/symfony,jean-gui/symfony,arjenm/symfony,deguif/symfony,localheinz/symfony,garak/symfony,sroze/symfony,yceruto/symfony,arjenm/symfony,jvasseur/symfony,tucksaun/symfony,vincentaubert/symfony,dunglas/symfony,nasimnabavi/symfony,andrerom/symfony,romaricdrigon/symfony,xabbuh/symfony,alekitto/symfony,dmaicher/symfony,vincentaubert/symfony,weaverryan/symfony,sgehrig/symfony,ragboyjr/symfony,voronkovich/symfony,ragboyjr/symfony,pyrech/symfony,e-moe/symfony,Nyholm/symfony,andreia/symfony,WhiteEagle88/symfony,Deamon/symfony,iltar/symfony,mpdude/symfony,stof/symfony,jvasseur/symfony,weaverryan/symfony,stof/symfony,ogizanagi/symfony,ajgarlag/symfony,hhamon/symfony,josephdpurcell/symfony,teohhanhui/symfony,mweimerskirch/symfony,tgalopin/symfony,kbond/symfony,kbond/symfony,gnat42/symfony,mpdude/symfony,lyrixx/symfony,chalasr/symfony,sgehrig/symfony,docteurklein/symfony,tgalopin/symfony,Einenlum/symfony,teohhanhui/symfony,c960657/symfony,stof/symfony,Koc/symfony,HeahDude/symfony,dmaicher/symfony,derrabus/symfony,Tobion/symfony,vincentaubert/symfony,deguif/symfony,zcodes/symfony,pyrech/symfony,symfony/symfony,paradajozsef/symfony,garak/symfony,paradajozsef/symfony,arjenm/symfony,joelwurtz/symfony,jzawadzki/symfony,frankdejonge/symfony,teohhanhui/symfony,apetitpa/symfony,hacfi/symfony,pamil/symfony,andreia/symfony,jean-gui/symfony,pamil/symfony,WhiteEagle88/symfony,fabpot/symfony,d-ph/symfony,hacfi/symfony,jderusse/symfony,ogizanagi/symfony,ajgarlag/symfony,kbond/symfony,teohhanhui/symfony,c960657/symfony,frankdejonge/symfony,1ed/symfony,gencer/symfony,nicolas-grekas/symfony,smatyas/symfony,romaricdrigon/symfony,nasimnabavi/symfony,smatyas/symfony,deguif/symfony,ro0NL/symfony,symfony/symfony,deguif/symfony,zorn-v/symfony,Koc/symfony,Nyholm/symfony,bendavies/symfony,Nyholm/symfony,alekitto/symfony,romaricdrigon/symfony,stof/symfony