fix phpstan (#31124)

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Frédéric FRANCE 2024-09-26 15:30:49 +02:00 committed by GitHub
parent c32ebad2c5
commit 64e7ccf5ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -417,7 +417,8 @@ if ($resql) {
// If the page show all record (no pagination) and total does not match total of file, we show a warning. Should not happen.
if (($nbtotalofrecords <= $num) && $totalamount_requested != (float) $object->amount) {
$langs->load("errors");
print img_warning("WarningAmountOfFileDiffersFromSumOfLines", (float) $object->amount, $totalamount_requested);
// Warning, amount of file (%s) differs from the sum of lines (%s)
print img_warning($langs->trans("WarningAmountOfFileDiffersFromSumOfLines", price($object->amount), price($totalamount_requested)));
}
print price($totalamount_requested);
print "</td>\n";

View File

@ -2175,7 +2175,7 @@ class pdf_crabe extends ModelePDFFactures
if (!empty($carac_client_shipping)) {
$posy += $hautcadre;
$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
$hautcadre -= 10; // Height for the shipping address does not need to be as high as main box
// Show shipping frame
$pdf->SetXY($posx + 2, $posy - 5);

View File

@ -2455,7 +2455,7 @@ class pdf_sponge extends ModelePDFFactures
if (!empty($carac_client_shipping)) {
$posy += $hautcadre;
$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
$hautcadre -= 10; // Height for the shipping address does not need to be as high as main box
// Show shipping frame
$pdf->SetXY($posx + 2, $posy - 5);

View File

@ -148,7 +148,6 @@ class Salary extends CommonObject
'datesp' => array('type' => 'date', 'label' => 'DateStart', 'enabled' => 1, 'visible' => 1, 'position' => 130, 'comment' => 'Date'),
'dateep' => array('type' => 'date', 'label' => 'DateEnd', 'enabled' => 1, 'visible' => 1, 'position' => 140, 'comment' => 'Date'),
'entity' => array('type' => 'integer', 'label' => 'Entity', 'default' => '1', 'enabled' => 1, 'visible' => 0, 'position' => 150, 'index' => 1),
'tms' => array('type' => 'timestamp', 'label' => 'DateModification', 'enabled' => 1, 'visible' => 0, 'notnull' => 1, 'position' => 20),
'note' => array('type' => 'text', 'label' => 'Note', 'enabled' => 1, 'position' => 160, 'visible' => 0,),
'fk_bank' => array('type' => 'integer', 'label' => 'BankId', 'enabled' => 1, 'visible' => 0, 'position' => 170),
'paye' => array('type' => 'smallint(6)', 'label' => 'Status', 'enabled' => 1, 'visible' => 1, 'notnull' => 1, 'position' => 180),

View File

@ -93,7 +93,7 @@ parameters:
- '#::HTML2OpenIDServer\(\) expects string, array given.#'
- '#create_line\(\) expects string, float given.#'
- '# dol_stringtotime expects string, DateTime given.#'
- '# (show_ldap_content|projectLinesa) expects string, true given.#'
- '# show_ldap_content expects string, true given.#'
- '#expects string, bool\|mysqli_result\|resource given.#'
- '#( |::)((multi)?selectarray)\(\) expects array#'
- '# (reWriteAllMenus|check_authentication) expects array#'