Skip to content

Commit 85af863

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: Update testing.rst
2 parents 8bf9c1c + 3c71d7e commit 85af863

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)