We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87b405e + 1b3834a commit 939f4e4Copy full SHA for 939f4e4
src/Dom/Query.php
@@ -62,7 +62,7 @@ public function setHtml($html, $charset = null)
62
* @param Closure|null $callback
63
* @return Collection|static
64
*/
65
- public function getData(Closure $callback = null)
+ public function getData(?Closure $callback = null)
66
{
67
return $this->handleData($this->data, $callback);
68
}
@@ -136,7 +136,7 @@ public function removeHead()
136
137
* @return QueryList
138
139
- public function query(Closure $callback = null)
+ public function query(?Closure $callback = null)
140
141
$this->data = $this->getList();
142
$this->data = $this->handleData($this->data, $callback);
0 commit comments