Skip to content

Commit

Permalink
Fix phan
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 12, 2024
1 parent 5eca796 commit c9972f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/class/commonobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ public function swapContactStatus($rowid)
* @param int<0,1> $option 0=Return array id->label, 1=Return array code->label, 2=Return complete array
* @param int<0,1> $activeonly 0=all status of contact, 1=only the active
* @param string $code Type of contact (Example: 'CUSTOMER', 'SERVICE')
* @return array<int,string>|array<string,string>|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error
* @return array<int,string>|array<string,string>|array<int,array>|null Array list of type of contacts (id->label if option=0, code->label if option=1), or null if error
*/
public function liste_type_contact($source = 'internal', $order = 'position', $option = 0, $activeonly = 0, $code = '')
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/class/product.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -6189,7 +6189,7 @@ public function load_stock($option = '', $includedraftpoforvirtual = null, $date
$this->stock_reel += $row->reel;
$i++;
}
$this->stock_reel = price2num($this->stock_reel, 'MS');
$this->stock_reel = (float) price2num($this->stock_reel, 'MS');

Check warning on line 6192 in htdocs/product/class/product.class.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

product.class.php: PhanTypeMismatchProperty: Assigning (float)(price2num($this-&gt;stock_reel, 'MS')) of type float to property but \Product-&gt;stock_reel is int
}
$this->db->free($result);

Expand Down

0 comments on commit c9972f1

Please sign in to comment.