Fix return method deleteLine (PHPStan warnings
This commit is contained in:
parent
99b62cb4a6
commit
c3ad689973
1 changed files with 6 additions and 1 deletions
|
|
@ -410,7 +410,12 @@ class Shipments extends DolibarrApi
|
|||
|
||||
$updateRes = $this->shipment->deleteLine(DolibarrApiAccess::$user, $lineid);
|
||||
if ($updateRes > 0) {
|
||||
return $this->get($id);
|
||||
return array(
|
||||
'success' => array(
|
||||
'code' => 200,
|
||||
'message' => 'line ' .$lineid. ' deleted'
|
||||
)
|
||||
);
|
||||
} else {
|
||||
throw new RestException(405, $this->shipment->error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue