diff options
| author | 2023-11-18 23:21:20 +0100 | |
|---|---|---|
| committer | 2023-11-18 23:21:20 +0100 | |
| commit | b65ea979010eb488cc9c1fb1d0f082e868c191d5 (patch) | |
| tree | be2c1b06aa5fcea8d33d43ba76acbfff3e4f0f0e /lib | |
| parent | 445e49db15ea7ae41dc55efea2d67903557f9182 (diff) | |
Fix PHP 7 compatibility strict_types (#5893)
* Fix PHP 7 compatibility
https://github.com/FreshRSS/FreshRSS/discussions/5892
* Multiple PHP 7 fixes
* PHPStan
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_rss.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 7a65a0433..0ab49e25e 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -171,7 +171,7 @@ function escapeToUnicodeAlternative(string $text, bool $extended = true): string function format_number($n, int $precision = 0): string { // number_format does not seem to be Unicode-compatible return str_replace(' ', ' ', // Thin non-breaking space - number_format($n, $precision, '.', ' ') + number_format((float)$n, $precision, '.', ' ') ); } |
