Skip to content

Firefly III: a personal finances manager

And now fix them for real.

James Cole541e1ac7b402
diff --git a/app/Helpers/Functions/helpers.php b/app/Helpers/Functions/helpers.php
index eec821d5bd..87be8c88bc 100644
--- a/app/Helpers/Functions/helpers.php
+++ b/app/Helpers/Functions/helpers.php
@@ -19,10 +19,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+declare(strict_types=1);
use FireflyIII\Exceptions\FireflyException;
use function Safe\preg_match;
use function Safe\preg_replace_callback;
+use function Safe\mb_ord;
if (!function_exists('env_default_when_empty')) {
/**
@@ -81,7 +83,7 @@ if (!function_exists('blade_escape_js')) {
}
$codepoint = mb_ord($char, 'UTF-8');
- if (0x10000 > $codepoint) {
+ if (0x10_000 > $codepoint) {
return \sprintf('\u%04X', $codepoint);
}