Skip to content

Commit

Permalink
Merge pull request #188 from ken678/patch-1
Browse files Browse the repository at this point in the history
Update Query.php
  • Loading branch information
jae-jae authored Dec 13, 2024
2 parents 87b405e + 1b3834a commit 939f4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dom/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function setHtml($html, $charset = null)
* @param Closure|null $callback
* @return Collection|static
*/
public function getData(Closure $callback = null)
public function getData(?Closure $callback = null)
{
return $this->handleData($this->data, $callback);
}
Expand Down Expand Up @@ -136,7 +136,7 @@ public function removeHead()
* @param Closure|null $callback
* @return QueryList
*/
public function query(Closure $callback = null)
public function query(?Closure $callback = null)
{
$this->data = $this->getList();
$this->data = $this->handleData($this->data, $callback);
Expand Down

0 comments on commit 939f4e4

Please sign in to comment.