symfony/DomCrawler — pull request #16 by Youpie (2013-11-29 00:05:54+00:00)
Title: Fix `extract` method to avoid recalculating count() for each iteration.

Cache the value of `count($attributes)` to avoid recalculating it for each iteration of the loop.

Since this count will never change during the method execution, this change make the code a bit more efficient.