Sfoglia il codice sorgente

[DomCrawler] fixed typo in phpdoc

Fabien Potencier 14 anni fa
parent
commit
91a2f36850
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Symfony/Component/DomCrawler/Crawler.php

+ 1 - 1
src/Symfony/Component/DomCrawler/Crawler.php

@@ -238,7 +238,7 @@ class Crawler extends \SplObjectStorage
      *
      * Example:
      *
-     *     $crawler->filter('h1')->each(function ($i, $node)
+     *     $crawler->filter('h1')->each(function ($node, $i)
      *     {
      *       return $node->nodeValue;
      *     });