From 3d467f6c8fd8a44b6b4b1a709af4c3df070713d3 Mon Sep 17 00:00:00 2001 From: jmsche Date: Sat, 1 Aug 2026 14:45:02 +0200 Subject: [PATCH] Fix static analysis --- src/Wrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;