Fix some phpstan warnings

This commit is contained in:
Hystepik
2023-12-21 13:43:19 +01:00
parent fe1b6c2723
commit d08f91e4cb
13 changed files with 33 additions and 33 deletions

View File

@@ -4342,7 +4342,7 @@ abstract class CommonObject
* @return int >0 if OK, <0 if KO
* @see add_object_linked(), updateObjectLinked(), fetchObjectLinked()
*/
public function deleteObjectLinked($sourceid = null, $sourcetype = '', $targetid = null, $targettype = '', $rowid = '', $f_user = null, $notrigger = 0)
public function deleteObjectLinked($sourceid = null, $sourcetype = '', $targetid = null, $targettype = '', $rowid = 0, $f_user = null, $notrigger = 0)
{
global $user;
$deletesource = false;
@@ -8490,7 +8490,7 @@ abstract class CommonObject
* @param string $display_type "card" for form display, "line" for document line display (extrafields on propal line, order line, etc...)
* @return string String with html content to show
*/
public function showOptionals($extrafields, $mode = 'view', $params = null, $keysuffix = '', $keyprefix = '', $onetrtd = 0, $display_type = 'card')
public function showOptionals($extrafields, $mode = 'view', $params = null, $keysuffix = '', $keyprefix = '', $onetrtd = '', $display_type = 'card')
{
global $db, $conf, $langs, $action, $form, $hookmanager;