diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-08-26 10:29:47 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-08-26 12:39:03 +0100 |
| commit | da46f7cdaaf12e014e1b5ceaa28efcc05e5dbde3 (patch) | |
| tree | 867692157a4cfd0d89033bfb8baa4285108709ca /app/Report/ReportParserGenerate.php | |
| parent | a45f98897789fc9ff88705eb09ae5f037bf49c10 (diff) | |
| download | webtrees-da46f7cdaaf12e014e1b5ceaa28efcc05e5dbde3.tar.gz webtrees-da46f7cdaaf12e014e1b5ceaa28efcc05e5dbde3.tar.bz2 webtrees-da46f7cdaaf12e014e1b5ceaa28efcc05e5dbde3.zip | |
StrictTypes
Diffstat (limited to 'app/Report/ReportParserGenerate.php')
| -rw-r--r-- | app/Report/ReportParserGenerate.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Report/ReportParserGenerate.php b/app/Report/ReportParserGenerate.php index 3cc988bcd9..ac18f8d94e 100644 --- a/app/Report/ReportParserGenerate.php +++ b/app/Report/ReportParserGenerate.php @@ -1178,7 +1178,7 @@ class ReportParserGenerate extends ReportParserBase $this->desc, ], $var); if (preg_match('/^I18N::number\((.+)\)$/', $var, $match)) { - $var = I18N::number($match[1]); + $var = I18N::number((int) $match[1]); } elseif (preg_match('/^I18N::translate\(\'(.+)\'\)$/', $var, $match)) { $var = I18N::translate($match[1]); } elseif (preg_match('/^I18N::translateContext\(\'(.+)\', *\'(.+)\'\)$/', $var, $match)) { @@ -1375,7 +1375,7 @@ class ReportParserGenerate extends ReportParserBase $i++; } if (preg_match('/^I18N::number\((.+)\)$/', $value, $match)) { - $value = I18N::number($match[1]); + $value = I18N::number((int) $match[1]); } elseif (preg_match('/^I18N::translate\(\'(.+)\'\)$/', $value, $match)) { $value = I18N::translate($match[1]); } elseif (preg_match('/^I18N::translateContext\(\'(.+)\', *\'(.+)\'\)$/', $value, $match)) { |
