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
5c5c0aecd6
commit
c8e3dfb995
|
|
@ -2645,14 +2645,6 @@ class EmailCollector extends CommonObject
|
|||
// Overwrite values with values extracted from source email
|
||||
$errorforthisaction = $this->overwritePropertiesOfObject($actioncomm, $operation['actionparam'], $messagetext, $subject, $header, $operationslog);
|
||||
|
||||
//var_dump($fk_element_id);
|
||||
//var_dump($fk_element_type);
|
||||
//var_dump($alreadycreated);
|
||||
//var_dump($operation['type']);
|
||||
//var_dump($actioncomm);
|
||||
//var_dump($objectemail);
|
||||
//exit;
|
||||
|
||||
if ($errorforthisaction) {
|
||||
$errorforactions++;
|
||||
} else {
|
||||
|
|
@ -2661,7 +2653,7 @@ class EmailCollector extends CommonObject
|
|||
$errorforactions++;
|
||||
$this->errors = $actioncomm->errors;
|
||||
} else {
|
||||
if ($fk_element_type == "ticket") {
|
||||
if ($fk_element_type == "ticket" && is_object($objectemail)) {
|
||||
if ($objectemail->status == Ticket::STATUS_CLOSED || $objectemail->status == Ticket::STATUS_CANCELED) {
|
||||
if ($objectemail->fk_user_assign != null) {
|
||||
$res = $objectemail->setStatut(Ticket::STATUS_ASSIGNED);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ parameters:
|
|||
# minimumNumberOfJobsPerProcess: 2 # default is 2
|
||||
# buffer: 134217728 # 128 MB # Not documented
|
||||
customRulesetUsed: true
|
||||
level: 3
|
||||
level: 2
|
||||
fileExtensions:
|
||||
- php
|
||||
paths:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user