Skip to content

Commit

Permalink
Allow style values like "margin" => "0"
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Sep 26, 2024
1 parent 684a9b6 commit fff1bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Attr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;";
Expand Down

0 comments on commit fff1bb8

Please sign in to comment.