We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd5b6b7 commit ef86676Copy full SHA for ef86676
extra/html-extra/HtmlAttr/SeparatedTokenList.php
@@ -55,14 +55,14 @@ public function appendFrom(mixed $newValue): mixed
55
56
public function getValue(): ?string
57
{
58
- $filtered = array_filter($this->value, fn ($v) => null !== $v && false !== $v);
+ $filtered = array_filter($this->value, static fn ($v) => null !== $v && false !== $v);
59
60
// Omit attribute if list contains only false or null values
61
if (!$filtered) {
62
return null;
63
}
64
65
// 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)));
+ return trim(implode($this->separator, array_filter($filtered, static fn ($v) => true !== $v)));
67
68
0 commit comments