Skip to content

Commit

Permalink
fix: expected int but got float error in reading Powerpoint presenati…
Browse files Browse the repository at this point in the history
…ons: 2007
  • Loading branch information
john-muinde committed Mar 30, 2024
1 parent 6738a06 commit d9b1fae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PhpPresentation/Shape/RichText/Paragraph.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This file is part of PHPPresentation - A pure PHP library for reading and writing
* presentations documents.
Expand Down Expand Up @@ -355,9 +356,9 @@ public function getSpacingBefore(): int
/**
* Value in points.
*/
public function setSpacingBefore(int $spacingBefore): self
public function setSpacingBefore(float $spacingBefore): self
{
$this->spacingBefore = $spacingBefore;
$this->spacingBefore = (int)$spacingBefore;

return $this;
}
Expand Down

0 comments on commit d9b1fae

Please sign in to comment.