Skip to content

Commit 939f4e4

Browse files
authored
Merge pull request #188 from ken678/patch-1
Update Query.php
2 parents 87b405e + 1b3834a commit 939f4e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dom/Query.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function setHtml($html, $charset = null)
6262
* @param Closure|null $callback
6363
* @return Collection|static
6464
*/
65-
public function getData(Closure $callback = null)
65+
public function getData(?Closure $callback = null)
6666
{
6767
return $this->handleData($this->data, $callback);
6868
}
@@ -136,7 +136,7 @@ public function removeHead()
136136
* @param Closure|null $callback
137137
* @return QueryList
138138
*/
139-
public function query(Closure $callback = null)
139+
public function query(?Closure $callback = null)
140140
{
141141
$this->data = $this->getList();
142142
$this->data = $this->handleData($this->data, $callback);

0 commit comments

Comments
 (0)