From fff1bb8ead6da6d22ca0e8f18b1309bd11533a9c Mon Sep 17 00:00:00 2001 From: Rasso Hilber Date: Thu, 26 Sep 2024 15:17:51 +0200 Subject: [PATCH] Allow style values like "margin" => "0" --- src/Attr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Attr.php b/src/Attr.php index 6fd9ed1..0105c2b 100644 --- a/src/Attr.php +++ b/src/Attr.php @@ -95,7 +95,7 @@ private static function arrayToStyles( ): string { $styles = []; foreach ($directives as $property => $value) { - if (in_array($value, [false, null, ""])) { + if (in_array($value, [false, null, ""], true)) { continue; } $styles[] = "$property: $value;";