fix phpstan (#31564)

* fix phpstan

* fix phpstan
This commit is contained in:
Frédéric FRANCE
2024-10-26 13:03:04 +02:00
committed by GitHub
parent e0c1b067d8
commit 19b653a599
3 changed files with 7 additions and 6 deletions

View File

@@ -1,7 +1,8 @@
<?php
/* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Víctor Ortiz Pérez <victor@accett.com.mx>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2015 Víctor Ortiz Pérez <victor@accett.com.mx>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -139,7 +140,7 @@ function dol_convertToWord($num, $langs, $currency = '', $centimes = false)
$concatWords .= ' '.$langs->transnoentities('and');
}
$concatWords .= ' '.dol_convertToWord($decimalpart, $langs, '', true);
$concatWords .= ' '.dol_convertToWord((float) $decimalpart, $langs, '', true);
if (!empty($currency)) {
$concatWords .= ' '.$langs->transnoentities('centimes');
}