From d9b1fae6778e3047df7ab5f598063b31441b057a Mon Sep 17 00:00:00 2001 From: john-muinde <66753112+john-muinde@users.noreply.github.com> Date: Sat, 30 Mar 2024 09:44:08 +0300 Subject: [PATCH] fix: expected int but got float error in reading Powerpoint presenations: 2007 --- src/PhpPresentation/Shape/RichText/Paragraph.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PhpPresentation/Shape/RichText/Paragraph.php b/src/PhpPresentation/Shape/RichText/Paragraph.php index 2eb173a62..23135b28b 100644 --- a/src/PhpPresentation/Shape/RichText/Paragraph.php +++ b/src/PhpPresentation/Shape/RichText/Paragraph.php @@ -1,4 +1,5 @@ spacingBefore = $spacingBefore; + $this->spacingBefore = (int)$spacingBefore; return $this; }