From 02e5379127daa9c9f91b4ada6a83b6081a5ba799 Mon Sep 17 00:00:00 2001 From: Erik Bernskiold Date: Sun, 18 Feb 2024 17:38:46 +0100 Subject: [PATCH] Fix non-null applys --- src/Branding/ParagraphStyle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }