This commit is contained in:
1 parent
f7c532a648
commit
640bd67556
5801 files changed
+484532
-55857
No files matched your search
+3
-3
@@ -36,7 +36,7 @@ class MatchingNode extends AbstractNode
|
||||
{
|
||||
$argumentsSpecificity = array_reduce(
|
||||
$this->arguments,
|
||||
fn ($c, $n) => 1 === $n->getSpecificity()->compareTo($c) ? $n->getSpecificity() : $c,
|
||||
static fn ($c, $n) => 1 === $n->getSpecificity()->compareTo($c) ? $n->getSpecificity() : $c,
|
||||
new Specificity(0, 0, 0),
|
||||
);
|
||||
|
||||
@@ -46,10 +46,10 @@ class MatchingNode extends AbstractNode
|
||||
public function __toString(): string
|
||||
{
|
||||
$selectorArguments = array_map(
|
||||
fn ($n): string => ltrim((string) $n, '*'),
|
||||
static fn ($n): string => ltrim((string) $n, '*'),
|
||||
$this->arguments,
|
||||
);
|
||||
|
||||
return sprintf('%s[%s:is(%s)]', $this->getNodeName(), $this->selector, implode(', ', $selectorArguments));
|
||||
return \sprintf('%s[%s:is(%s)]', $this->getNodeName(), $this->selector, implode(', ', $selectorArguments));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user