summaryrefslogtreecommitdiff
path: root/app/Report/ReportBaseElement.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-10-05 14:45:31 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-10-05 14:45:31 +0100
commit589feda391b943b928aea0b4107591eb0e7bbf89 (patch)
tree9181107385266814c3681d6bf53abbbdd420a592 /app/Report/ReportBaseElement.php
parent1121bd6832d8a9897a30155d22c635239a794d4d (diff)
downloadwebtrees-589feda391b943b928aea0b4107591eb0e7bbf89.tar.gz
webtrees-589feda391b943b928aea0b4107591eb0e7bbf89.tar.bz2
webtrees-589feda391b943b928aea0b4107591eb0e7bbf89.zip
Strict types in reports
Diffstat (limited to 'app/Report/ReportBaseElement.php')
-rw-r--r--app/Report/ReportBaseElement.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/Report/ReportBaseElement.php b/app/Report/ReportBaseElement.php
index a02188cd52..e55d263154 100644
--- a/app/Report/ReportBaseElement.php
+++ b/app/Report/ReportBaseElement.php
@@ -86,13 +86,11 @@ class ReportBaseElement
/**
* Add an end-of-line.
*
- * @return int
+ * @return void
*/
- public function addNewline(): int
+ public function addNewline()
{
$this->text .= "\n";
-
- return 0;
}
/**
@@ -111,9 +109,9 @@ class ReportBaseElement
* @param $wrapwidth
* @param $cellwidth
*
- * @return int
+ * @return float
*/
- public function setWrapWidth($wrapwidth, $cellwidth): int
+ public function setWrapWidth($wrapwidth, $cellwidth): float
{
return 0;
}