Skip to content

Commit

Permalink
Return in the within method to allow method chaining (#13200)
Browse files Browse the repository at this point in the history
  • Loading branch information
sileence authored and taylorotwell committed Apr 18, 2016
1 parent 767ffc9 commit 980ebf9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ public function within($element, Closure $callback)
$callback();

array_pop($this->subCrawlers);

return $this;
}

/**
Expand Down

0 comments on commit 980ebf9

Please sign in to comment.