Skip to content

Commit

Permalink
Fix return value of wrapAll() when count() is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejackson1 committed Dec 11, 2022
1 parent eaacb01 commit c6699f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/QueryMutators.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ public function wrap($markup): Query
public function wrapAll($markup)
{
if ($this->matches->count() === 0) {
return;
return $this;
}

$data = $this->prepareInsert($markup);
Expand Down

0 comments on commit c6699f9

Please sign in to comment.