Skip to content

Commit d8206f5

Browse files
Add union types
1 parent d289f5d commit d8206f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XPath/Translator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function addPseudoClass(XPathExpr $xpath, string $pseudoClass): XPathExpr
203203
/**
204204
* @throws ExpressionErrorException
205205
*/
206-
public function addAttributeMatching(XPathExpr $xpath, string $operator, string $attribute, $value): XPathExpr
206+
public function addAttributeMatching(XPathExpr $xpath, string $operator, string $attribute, ?string $value): XPathExpr
207207
{
208208
if (!isset($this->attributeMatchingTranslators[$operator])) {
209209
throw new ExpressionErrorException(sprintf('Attribute matcher operator "%s" not supported.', $operator));

0 commit comments

Comments
 (0)