diff --git a/src/Wrapper.php b/src/Wrapper.php index e39cba6..df99c1b 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -103,7 +103,7 @@ private function prepareAttributes(array $attributes = []): string $result = ''; foreach ($attributes as $key => $value) { - if (\in_array($key, [null, ''], true)) { + if ('' === $key) { $result .= ' ' . $value; } else { $result .= ' -' . $key;