Skip to content

Commit

Permalink
try to remove PHAN errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-Ngr committed Nov 13, 2024
1 parent 57b91c9 commit a7e42cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/expedition/class/expedition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1724,12 +1724,12 @@ public function fetch_lines()

$shipmentlinebatch = new ExpeditionLineBatch($this->db);

$line = new ExpeditionLigne($this->db); // always set $line for PHAN analyser. @phan-var-force muse be used after an assignation, and there is no assignation for $line.
while ($i < $num) {
$obj = $this->db->fetch_object($resql);


if ($originline > 0 && $originline == $obj->fk_elementdet) {
'@phan-var-force ExpeditionLigne $line'; // $line from previous loop
if (!($originline > 0 && $originline == $obj->fk_elementdet)) {
// '@phan-var-force ExpeditionLigne $line'; // $line from previous loop
$line->entrepot_id = 0; // entrepod_id in details_entrepot
$line->qty_shipped += $obj->qty_shipped;
} else {
Expand Down

0 comments on commit a7e42cc

Please sign in to comment.