diff --git a/src/Traits/TagTrait.php b/src/Traits/TagTrait.php index 25f7593..a33f465 100644 --- a/src/Traits/TagTrait.php +++ b/src/Traits/TagTrait.php @@ -89,10 +89,10 @@ trait TagTrait $strings[] = sprintf('style="%s"', $this->styles()); } foreach ($this->attributes() as $name => $value) { - if ($value == BooleanAttribute::false) { + if ($value === BooleanAttribute::false) { // skip over false boolean attributes continue; - }elseif ($value == BooleanAttribute::true) { + }elseif ($value === BooleanAttribute::true) { // true boolean attributes render as null $strings[] = $name; }elseif (is_string($value) || is_numeric($value) || $value instanceof Stringable) {