Fix typing for Categorie::getListForItem() return value
This commit is contained in:
parent
f892b3a27c
commit
c8172c65ae
1 changed files with 2 additions and 2 deletions
|
|
@ -271,7 +271,7 @@ class Categorie extends CommonObject
|
|||
public $childs = array();
|
||||
|
||||
/**
|
||||
* @var array multilangs
|
||||
* @var array{string,array{label:string,description:string,note?:string}} multilangs
|
||||
*/
|
||||
public $multilangs;
|
||||
|
||||
|
|
@ -970,7 +970,7 @@ class Categorie extends CommonObject
|
|||
* @param string $sortorder Sort order
|
||||
* @param int $limit Limit for list
|
||||
* @param int $page Page number
|
||||
* @return int<-1,0>|array<int,array{id:int,fk_parent:int,label:string,description:string,color:string,position:int,socid:int,type:string,entity:string,array_options:array<string,mixed>,visible:int,ref_ext:string,picto:string,multilangs?:string}> Array of categories, 0 if no cat, -1 on error
|
||||
* @return int<-1,0>|array<int,array{id:int,fk_parent:int,label:string,description:string,color:string,position:int,socid:int,type:string,entity:int,array_options:array<string,mixed>,visible:int,ref_ext:string,multilangs?:array{string,array{label:string,description:string,note?:string}}}> Array of categories, 0 if no cat, -1 on error
|
||||
*/
|
||||
public function getListForItem($id, $type = 'customer', $sortfield = "s.rowid", $sortorder = 'ASC', $limit = 0, $page = 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue