Skip to content

Commit cd36d87

Browse files
author
Andrew Scott
committed
Fix 8.4 deprecation's
1 parent 887b312 commit cd36d87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NodeList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class NodeList extends NodeCollection
3030
* @param Document $document
3131
* @param iterable $nodes
3232
*/
33-
public function __construct(Document $document = null, ?iterable $nodes = null) {
33+
public function __construct(?Document $document = null, ?iterable $nodes = null) {
3434
parent::__construct($nodes);
3535

3636
$this->document = $document;

src/Traits/TraversalTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function eq(int $index): ?\DOMNode {
297297
*
298298
* @return NodeList
299299
*/
300-
public function parents(string $selector = null): NodeList {
300+
public function parents(?string $selector = null): NodeList {
301301
return $this->parentsUntil(null, $selector);
302302
}
303303

0 commit comments

Comments
 (0)