mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phpstan
This commit is contained in:
parent
0772222900
commit
e0a8caec45
|
|
@ -8862,12 +8862,6 @@ parameters:
|
|||
count: 1
|
||||
path: ../../../htdocs/core/class/commondocgenerator.class.php
|
||||
|
||||
-
|
||||
message: '#^Parameter \#2 \$array_to_fill of method CommonDocGenerator\:\:fill_substitutionarray_with_extrafields\(\) expects array\<string, string\>, array\<string, float\|string\> given\.$#'
|
||||
identifier: argument.type
|
||||
count: 1
|
||||
path: ../../../htdocs/core/class/commondocgenerator.class.php
|
||||
|
||||
-
|
||||
message: '#^Property CommonObject\:\:\$element \(string\) in isset\(\) is not nullable\.$#'
|
||||
identifier: isset.property
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2016-2023 Charlene Benke <charlene@patas-monkey.com>
|
||||
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2018-2025 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2020 Josep Lluís Amador <joseplluis@lliuretic.cat>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024 Mélina Joum <melina.joum@altairis.fr>
|
||||
|
|
@ -1174,11 +1174,11 @@ abstract class CommonDocGenerator
|
|||
* Note that vars into substitutions array are formatted.
|
||||
*
|
||||
* @param CommonObject $object Object with extrafields (must have $object->array_options filled)
|
||||
* @param array<string,string> $array_to_fill Substitution array
|
||||
* @param array<string,float|string> $array_to_fill Substitution array
|
||||
* @param Extrafields $extrafields Extrafields object
|
||||
* @param string $array_key Prefix for name of the keys into returned array
|
||||
* @param Translate $outputlangs Lang object to use for output
|
||||
* @return array<string,string> Substitution array
|
||||
* @return array<string,float|string> Substitution array
|
||||
*/
|
||||
public function fill_substitutionarray_with_extrafields($object, $array_to_fill, $extrafields, $array_key, $outputlangs)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||
* Copyright (C) 2018-2021 Philippe Grand <philippe.grand@atoo-net.com>
|
||||
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2018-2025 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -398,7 +398,7 @@ class doc_generic_asset_odt extends ModelePDFAsset
|
|||
}
|
||||
}
|
||||
// Replace tags of lines
|
||||
$foundtagforlines = 1;
|
||||
/*$foundtagforlines = 1;
|
||||
try {
|
||||
$listlines = $odfHandler->setSegment('lines');
|
||||
} catch (OdfExceptionSegmentNotFound $e) {
|
||||
|
|
@ -431,7 +431,7 @@ class doc_generic_asset_odt extends ModelePDFAsset
|
|||
dol_syslog($this->error, LOG_WARNING);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
// Replace labels translated
|
||||
$tmparray = $outputlangs->get_translations_for_substitutions();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user