Skip to content

Commit 28a5f2b

Browse files
Backport type fixes
1 parent deb040a commit 28a5f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XPath/Translator.php

Lines changed: 1 addition & 1 deletion
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)