Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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