diff --git a/src/Branding/ParagraphStyle.php b/src/Branding/ParagraphStyle.php index 6062683..ef718e8 100644 --- a/src/Branding/ParagraphStyle.php +++ b/src/Branding/ParagraphStyle.php @@ -62,7 +62,7 @@ public function applyToComponent(Component $component): void $component->font($this->font); } - if ($this->bold && method_exists($component, 'bold') && $component->bold === null) { + if ($this->bold && method_exists($component, 'bold')) { $component->bold($this->bold); } @@ -74,7 +74,7 @@ public function applyToComponent(Component $component): void $component->lineHeight($this->lineHeight); } - if ($this->uppercase && method_exists($component, 'uppercase') && $component->uppercase === null) { + if ($this->uppercase && method_exists($component, 'uppercase')) { $component->uppercase($this->uppercase); } }