Skip to content

Commit b302f53

Browse files
committed
minor #20287 [DomCrawler] Fixing code typo (ThomasLandauer)
This PR was merged into the 6.4 branch. Discussion ---------- [DomCrawler] Fixing code typo Page: https://symfony.com/doc/6.4/components/dom_crawler.html#accessing-node-values Commits ------- cc5d2a1 [DomCrawler] Fixing code typo
2 parents 7b081aa + cc5d2a1 commit b302f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dom_crawler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ The result is an array of values returned by the anonymous function calls.
277277
When using nested crawler, beware that ``filterXPath()`` is evaluated in the
278278
context of the crawler::
279279

280-
$crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): avoid {
280+
$crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): void {
281281
// DON'T DO THIS: direct child can not be found
282282
$subCrawler = $parentCrawler->filterXPath('sub-tag/sub-child-tag');
283283

0 commit comments

Comments
 (0)