Fix Expected an object instance & duplicate assignment

# Fix Expected an object instance & duplicate assignment

Fix: ticket.class.php: PhanTypeExpectedObjectOrClassName: Expected an object instance or the name of a class but saw expression $classname with type ''|string
Fix: ticket.class.php: PhanPluginRedundantAssignment: Assigning '' to variable $sendtocc which already has that value
This commit is contained in:
MDW 2024-03-20 04:26:16 +01:00
parent e92d6230df
commit 903d9d52de
No known key found for this signature in database

View file

@ -2430,7 +2430,7 @@ class Ticket extends CommonObject
}
}
if ($filefound) {
if ($classname !== '') {
$result = dol_include_once($reldir."core/modules/ticket/".$modele.'.php');
$modTicket = new $classname();
@ -2992,7 +2992,6 @@ class Ticket extends CommonObject
$array_receiver = array_merge($array_receiver, $this->getInfosTicketExternalContact(1));
}
$sendtocc = "";
if ($send_internal_cc) {
$sendtocc = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_FROM');
} else {