We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b816664 commit b8d2a77Copy full SHA for b8d2a77
Core/Lib/Email/MailNotifier.php
@@ -1,7 +1,7 @@
1
<?php
2
/**
3
* This file is part of FacturaScripts
4
- * Copyright (C) 2022-2023 Carlos Garcia Gomez <carlos@facturascripts.com>
+ * Copyright (C) 2022-2025 Carlos Garcia Gomez <carlos@facturascripts.com>
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as
@@ -37,7 +37,7 @@ class MailNotifier
37
public static function getText(string $text, array $params): string
38
{
39
foreach ($params as $key => $value) {
40
- if (is_string($value)) {
+ if (is_string($value) || is_numeric($value)) {
41
$text = str_replace('{' . $key . '}', $value, $text);
42
}
43
0 commit comments