Skip to content

Commit 8d75870

Browse files
committed
Merge branch '4.3'
* 4.3: Update testing.rst
2 parents 3e67b82 + 85af863 commit 8d75870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ narrow down your node selection by chaining the method calls::
669669
$crawler
670670
->filter('h1')
671671
->reduce(function ($node, $i) {
672-
if (!$node->getAttribute('class')) {
672+
if (!$node->attr('class')) {
673673
return false;
674674
}
675675
})

0 commit comments

Comments
 (0)