Skip to content

Commit 1e4dc32

Browse files
Merge pull request #319 from SergeiMV/master
add explicit nullable type
2 parents 1665a72 + bc26ae7 commit 1e4dc32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ElementFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ class ElementFinder implements ElementFinderInterface
6363
*/
6464
public function __construct(
6565
string $data,
66-
int $documentType = null,
67-
ExpressionTranslatorInterface $translator = null
66+
?int $documentType = null,
67+
?ExpressionTranslatorInterface $translator = null
6868
) {
6969
$this->dom = new DomDocument();
7070
$this->expressionTranslator = $translator ?? new XpathExpression();

0 commit comments

Comments
 (0)