Skip to content

Commit ef86676

Browse files
committed
Apply FabBot fixups
1 parent dd5b6b7 commit ef86676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extra/html-extra/HtmlAttr/SeparatedTokenList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ public function appendFrom(mixed $newValue): mixed
5555

5656
public function getValue(): ?string
5757
{
58-
$filtered = array_filter($this->value, fn ($v) => null !== $v && false !== $v);
58+
$filtered = array_filter($this->value, static fn ($v) => null !== $v && false !== $v);
5959

6060
// Omit attribute if list contains only false or null values
6161
if (!$filtered) {
6262
return null;
6363
}
6464

6565
// true values are not printed, but result in the attribute not being omitted
66-
return trim(implode($this->separator, array_filter($filtered, fn ($v) => true !== $v)));
66+
return trim(implode($this->separator, array_filter($filtered, static fn ($v) => true !== $v)));
6767
}
6868
}

0 commit comments

Comments
 (0)