Skip to content

Fix & enable PhanTypeMismatchPropertyDefault #2019

Fix & enable PhanTypeMismatchPropertyDefault

Fix & enable PhanTypeMismatchPropertyDefault #2019

Triggered via pull request March 14, 2024 23:33
Status Failure
Total duration 3m 22s
Artifacts 1

phan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
Run phan
Process completed with exit code 1.
Run phan
Process completed with exit code 1.
Run phan: htdocs/bookcal/class/availabilities.class.php#L117
availabilities.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'TechnicalID','enabled'=>1,'position'=>1,'notnull'=>1,'visible'=>2,'noteditable'=>1,'index'=>1,'css'=>'left','comment'=>'Id'],'label'=>['type'=>'varchar(255)','label'=>'Label','enabled'=>1,'position'=>20,'notnull'=>0,'visible'=>1,'searchall'=>1,'css'=>'minwidth300','csslist'=>'tdoverflowmax150','cssview'=>'wordbreak','help'=>'BookcalLabelAvailabilityHelp','showoncombobox'=>'2','validate'=>1],'fk_bookcal_calendar'=>['type'=>'integer:Calendar:bookcal/class/calendar.class.php:1','label'=>'Calendar','enabled'=>1,'position'=>25,'notnull'=>1,'visible'=>1,'css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'tdoverflowmax100'],'description'=>['type'=>'text','label'=>'Description','enabled'=>1,'position'=>60,'notnull'=>0,'visible'=>3,'validate'=>1],'note_public'=>['type'=>'html','label'=>'NotePublic','enabled'=>1,'position'=>61,'notnull'=>0,'visible'=>0,'cssview'=>'wordbreak','validate'=>1],'note_private'=>['type'=>'html','label'=>'NotePrivate','enabled'=>1,'position'=>62,'notnull'=>0,'visible'=>0,'cssview'=>'wordbreak','validate'=>1],'date_creation'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>1,'position'=>500,'notnull'=>1,'visible'=>-2],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>1,'position'=>501,'notnull'=>0,'visible'=>-2],'fk_user_creat'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserAuthor','picto'=>'user','enabled'=>1,'position'=>510,'notnull'=>1,'visible'=>-2,'css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'tdoverflowmax150'],'fk_user_modif'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserModif','picto'=>'user','enabled'=>1,'position'=>511,'notnull'=>-1,'visible'=>-2,'css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'tdoverflowmax150'],'last_main_doc'=>['type'=>'varchar(255)','label'=>'LastMainDoc','enabled'=>1,'position'=>600,'notnull'=>0,'visible'=>0],'import_key'=>['type'=>'varchar(14)','label'=>'ImportId','enabled'=>1,'position'=>1000,'notnull'=>-1,'visible'=>-2],'model_pdf'=>['type'=>'varchar(255)','label'=>'Model pdf','enabled'=>1,'position'=>1010,'notnull'=>-1,'visible'=>0],'start'=>['type'=>'date','label'=>'Start Date','enabled'=>1,'position'=>40,'notnull'=>1,'visible'=>1,'searchall'=>1],'end'=>['type'=>'date','label'=>'End Date','enabled'=>1,'position'=>45,'notnull'=>1,'visible'=>1,'searchall'=>1],'duration'=>['type'=>'integer','label'=>'DurationOfRange','enabled'=>1,'position'=>47,'notnull'=>1,'visible'=>1,'default'=>'30','css'=>'width50 right'],'startHour'=>['type'=>'integer','label'=>'Start Hour','enabled'=>1,'position'=>46,'notnull'=>1,'visible'=>1],'endHour'=>['type'=>'integer','label'=>'End Hour','enabled'=>1,'position'=>46.5,'notnull'=>1,'visible'=>1],'status'=>['type'=>'integer','label'=>'Status','enabled'=>1,'position'=>2000,'notnull'=>1,'visible'=>1,'index'=>1,'arrayofkeyval'=>['0'=>'Draft','1'=>'Validated','9'=>'Closed'],'default'=>'1','validate'=>1]] of type array{rowid:array{type:'integer',label:'TechnicalID',enabled:1,position:1,notnull:1,visible:2,noteditable:1,index:1,css:'left',comment:'Id'},label:array{type:'varchar\x28255\x29',label:'Label',enabled:1,position:20,notnull:0,vi
Run phan: htdocs/contrat/class/contrat.class.php#L248
contrat.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'TechnicalID','enabled'=>1,'visible'=>-1,'notnull'=>1,'position'=>10],'ref'=>['type'=>'varchar(50)','label'=>'Ref','enabled'=>1,'visible'=>-1,'showoncombobox'=>1,'position'=>15,'searchall'=>1],'ref_ext'=>['type'=>'varchar(255)','label'=>'Ref ext','enabled'=>1,'visible'=>0,'position'=>20],'ref_customer'=>['type'=>'varchar(50)','label'=>'RefCustomer','enabled'=>1,'visible'=>-1,'position'=>25,'searchall'=>1],'ref_supplier'=>['type'=>'varchar(50)','label'=>'RefSupplier','enabled'=>1,'visible'=>-1,'position'=>26,'searchall'=>1],'entity'=>['type'=>'integer','label'=>'Entity','default'=>1,'enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>30,'index'=>1],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>1,'visible'=>-1,'notnull'=>1,'position'=>35],'datec'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>1,'visible'=>-1,'position'=>40],'date_contrat'=>['type'=>'datetime','label'=>'Date contrat','enabled'=>1,'visible'=>-1,'position'=>45],'fk_soc'=>['type'=>'integer:Societe:societe/class/societe.class.php','label'=>'ThirdParty','enabled'=>'isModEnabled("societe")','visible'=>-1,'notnull'=>1,'position'=>70],'fk_projet'=>['type'=>'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)','label'=>'Project','enabled'=>'isModEnabled(\'project\')','visible'=>-1,'position'=>75],'fk_commercial_signature'=>['type'=>'integer:User:user/class/user.class.php','label'=>'SaleRepresentative Signature','enabled'=>1,'visible'=>-1,'position'=>80],'fk_commercial_suivi'=>['type'=>'integer:User:user/class/user.class.php','label'=>'SaleRepresentative follower','enabled'=>1,'visible'=>-1,'position'=>85],'fk_user_author'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserAuthor','enabled'=>1,'visible'=>-1,'notnull'=>1,'position'=>90],'note_public'=>['type'=>'html','label'=>'NotePublic','enabled'=>1,'visible'=>0,'position'=>105,'searchall'=>1],'note_private'=>['type'=>'html','label'=>'NotePrivate','enabled'=>1,'visible'=>0,'position'=>110,'searchall'=>1],'model_pdf'=>['type'=>'varchar(255)','label'=>'Model pdf','enabled'=>1,'visible'=>0,'position'=>115],'import_key'=>['type'=>'varchar(14)','label'=>'ImportId','enabled'=>1,'visible'=>-2,'position'=>120],'extraparams'=>['type'=>'varchar(255)','label'=>'Extraparams','enabled'=>1,'visible'=>-1,'position'=>125],'fk_user_modif'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserModif','enabled'=>1,'visible'=>-2,'notnull'=>-1,'position'=>135],'last_main_doc'=>['type'=>'varchar(255)','label'=>'Last main doc','enabled'=>1,'visible'=>-1,'position'=>140],'statut'=>['type'=>'smallint(6)','label'=>'Statut','enabled'=>1,'visible'=>-1,'position'=>500,'notnull'=>1,'arrayofkeyval'=>[0=>'Draft',1=>'Validated',2=>'Closed']]] of type array{rowid:array{type:'integer',label:'TechnicalID',enabled:1,visible:-1,notnull:1,position:10},ref:array{type:'varchar\x2850\x29',label:'Ref',enabled:1,visible:-1,showoncombobox:1,position:15,searchall:1},ref_ext:array{type:'varchar\x28255\x29',label:'Ref ext',enabled:1,visible:0,position:20},ref_customer:array{type:'varchar\x2850\x29',label:'RefCustomer',enabled:1,visible:-1,position:25,searchall:1},ref_supplier:array{type:'varchar\x2850\x29',label:'RefSupp
Run phan: htdocs/hrm/class/skill.class.php#L111
skill.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'TechnicalID','enabled'=>1,'position'=>1,'notnull'=>1,'visible'=>0,'noteditable'=>1,'index'=>1,'css'=>'left','comment'=>'Id'],'label'=>['type'=>'varchar(255)','label'=>'Label','enabled'=>1,'position'=>30,'notnull'=>1,'visible'=>1,'searchall'=>1,'css'=>'minwidth300','cssview'=>'wordbreak','showoncombobox'=>'2'],'description'=>['type'=>'text','label'=>'Description','enabled'=>1,'position'=>60,'notnull'=>0,'visible'=>3],'date_creation'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>1,'position'=>500,'notnull'=>1,'visible'=>-2],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>1,'position'=>501,'notnull'=>0,'visible'=>-2],'fk_user_creat'=>['type'=>'integer:User:user/class/user.class.php:0','label'=>'UserAuthor','enabled'=>1,'position'=>510,'notnull'=>1,'visible'=>-2,'foreignkey'=>'user.rowid'],'fk_user_modif'=>['type'=>'integer:User:user/class/user.class.php:0','label'=>'UserModif','enabled'=>1,'position'=>511,'notnull'=>-1,'visible'=>-2],'required_level'=>['type'=>'integer','label'=>'requiredLevel','enabled'=>1,'position'=>50,'notnull'=>1,'visible'=>0],'date_validite'=>['type'=>'integer','label'=>'date_validite','enabled'=>1,'position'=>52,'notnull'=>1,'visible'=>0],'temps_theorique'=>['type'=>'double(24,8)','label'=>'temps_theorique','enabled'=>1,'position'=>54,'notnull'=>1,'visible'=>0],'skill_type'=>['type'=>'integer','label'=>'SkillType','enabled'=>1,'position'=>55,'notnull'=>1,'visible'=>1,'index'=>1,'css'=>'minwidth200','arrayofkeyval'=>['0'=>'TypeKnowHow','1'=>'TypeHowToBe','9'=>'TypeKnowledge'],'default'=>'0'],'note_public'=>['type'=>'html','label'=>'NotePublic','enabled'=>1,'position'=>70,'notnull'=>0,'visible'=>0],'note_private'=>['type'=>'html','label'=>'NotePrivate','enabled'=>1,'position'=>71,'notnull'=>0,'visible'=>0]] of type array{rowid:array{type:'integer',label:'TechnicalID',enabled:1,position:1,notnull:1,visible:0,noteditable:1,index:1,css:'left',comment:'Id'},label:array{type:'varchar\x28255\x29',label:'Label',enabled:1,position:30,notnull:1,visible:1,searchall:1,css:'minwidth300',cssview:'wordbreak',showoncombobox:'2'},description:array{type:'text',label:'Description',enabled:1,position:60,notnull:0,visible:3},date_creation:array{type:'datetime',label:'DateCreation',enabled:1,position:500,notnull:1,visible:-2},tms:array{type:'timestamp',label:'DateModification',enabled:1,position:501,notnull:0,visible:-2},fk_user_creat:array{type:'integer:User:user/class/user.class.php:0',label:'UserAuthor',enabled:1,position:510,notnull:1,visible:-2,foreignkey:'user.rowid'},fk_user_modif:array{type:'integer:User:user/class/user.class.php:0',label:'UserModif',enabled:1,position:511,notnull:-1,visible:-2},required_level:array{type:'integer',label:'requiredLevel',enabled:1,position:50,notnull:1,visible:0},date_validite:array{type:'integer',label:'date_validite',enabled:1,position:52,notnull:1,visible:0},temps_theorique:array{type:'double\x2824\x2c8\x29',label:'temps_theorique',enabled:1,position:54,notnull:1,visible:0},skill_type:array{type:'integer',label:'SkillType',enabled:1,position:55,notnull:1,visible:1,index:1,css:'minwidth200',arrayofkeyval:array{0:'TypeKnowHow',1:'TypeHowToBe',9:'TypeKnowledge'},default:'0'},note_public:array{type:'html',label:'NotePublic',enabled:1,position:70,notnull:0,visible:0},note_private:array{type:'html',label:'NotePr
Run phan: htdocs/mrp/class/mo.class.php#L241
mo.class.php: PhanTypeMismatchPropertyDefault: Default value for \MoLine|null $line can't be [] of type array{} based on phpdoc types
Run phan: htdocs/product/class/product.class.php#L588
product.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'TechnicalID','enabled'=>1,'visible'=>-2,'notnull'=>1,'index'=>1,'position'=>1,'comment'=>'Id'],'ref'=>['type'=>'varchar(128)','label'=>'Ref','enabled'=>1,'visible'=>1,'notnull'=>1,'showoncombobox'=>1,'index'=>1,'position'=>10,'searchall'=>1,'comment'=>'Reference of object'],'entity'=>['type'=>'integer','label'=>'Entity','enabled'=>1,'visible'=>0,'default'=>1,'notnull'=>1,'index'=>1,'position'=>5],'label'=>['type'=>'varchar(255)','label'=>'Label','enabled'=>1,'visible'=>1,'notnull'=>1,'showoncombobox'=>2,'position'=>15,'csslist'=>'tdoverflowmax250'],'barcode'=>['type'=>'varchar(255)','label'=>'Barcode','enabled'=>'isModEnabled("barcode")','position'=>20,'visible'=>-1,'showoncombobox'=>3],'fk_barcode_type'=>['type'=>'integer','label'=>'BarcodeType','enabled'=>'1','position'=>21,'notnull'=>0,'visible'=>-1],'note_public'=>['type'=>'html','label'=>'NotePublic','enabled'=>1,'visible'=>0,'position'=>61],'note'=>['type'=>'html','label'=>'NotePrivate','enabled'=>1,'visible'=>0,'position'=>62],'datec'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>500],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>501],'fk_user_author'=>['type'=>'integer','label'=>'UserAuthor','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>510,'foreignkey'=>'llx_user.rowid'],'fk_user_modif'=>['type'=>'integer','label'=>'UserModif','enabled'=>1,'visible'=>-2,'notnull'=>-1,'position'=>511],'localtax1_tx'=>['type'=>'double(6,3)','label'=>'Localtax1tx','enabled'=>'1','position'=>150,'notnull'=>0,'visible'=>-1],'localtax1_type'=>['type'=>'varchar(10)','label'=>'Localtax1type','enabled'=>'1','position'=>155,'notnull'=>1,'visible'=>-1],'localtax2_tx'=>['type'=>'double(6,3)','label'=>'Localtax2tx','enabled'=>'1','position'=>160,'notnull'=>0,'visible'=>-1],'localtax2_type'=>['type'=>'varchar(10)','label'=>'Localtax2type','enabled'=>'1','position'=>165,'notnull'=>1,'visible'=>-1],'last_main_doc'=>['type'=>'varchar(255)','label'=>'LastMainDoc','enabled'=>1,'visible'=>-1,'position'=>170],'import_key'=>['type'=>'varchar(14)','label'=>'ImportId','enabled'=>1,'visible'=>-2,'notnull'=>-1,'index'=>0,'position'=>1000],'mandatory_period'=>['type'=>'integer','label'=>'mandatoryperiod','enabled'=>1,'visible'=>1,'notnull'=>1,'default'=>0,'index'=>1,'position'=>1000]] of type array{rowid:array{type:'integer',label:'TechnicalID',enabled:1,visible:-2,notnull:1,index:1,position:1,comment:'Id'},ref:array{type:'varchar\x28128\x29',label:'Ref',enabled:1,visible:1,notnull:1,showoncombobox:1,index:1,position:10,searchall:1,comment:'Reference of object'},entity:array{type:'integer',label:'Entity',enabled:1,visible:0,default:1,notnull:1,index:1,position:5},label:array{type:'varchar\x28255\x29',label:'Label',enabled:1,visible:1,notnull:1,showoncombobox:2,position:15,csslist:'tdoverflowmax250'},barcode:array{type:'varchar\x28255\x29',label:'Barcode',enabled:'isModEnabled\x28"barcode"\x29',position:20,visible:-1,showoncombobox:3},fk_barcode_type:array{type:'integer',label:'BarcodeType',enabled:'1',position:21,notnull:0,visible:-1},note_public:array{type:'html',label:'NotePublic',enabled:1,visible:0,position:61},note:array{type:
Run phan: htdocs/product/class/productcustomerprice.class.php#L36
productcustomerprice.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['ref'=>['type'=>'varchar(128)','label'=>'Ref','enabled'=>1,'visible'=>4,'position'=>10,'notnull'=>1,'default'=>'(PROV)','index'=>1,'searchall'=>1,'comment'=>'Reference of object','showoncombobox'=>'1','noteditable'=>1],'fk_product'=>['type'=>'integer:Product:product/class/product.class.php:0','label'=>'Product','enabled'=>'$conf->product->enabled','visible'=>1,'position'=>35,'notnull'=>1,'index'=>1,'comment'=>'Product to produce','css'=>'maxwidth300','csslist'=>'tdoverflowmax100','picto'=>'product'],'ref_customer'=>['type'=>'varchar(128)','label'=>'RefCustomer','enabled'=>1,'visible'=>4,'position'=>10,'notnull'=>1],'datec'=>['type'=>'datetime','label'=>'AppliedPricesFrom','enabled'=>1,'visible'=>1,'position'=>500,'notnull'=>1],'price_base_type'=>['type'=>'varchar(255)','label'=>'PriceBase','enabled'=>1,'visible'=>1,'position'=>11,'notnull'=>-1,'comment'=>'Price Base Type'],'tva_tx'=>['type'=>'decimal(20,6)','label'=>'VAT','enabled'=>1,'visible'=>1,'position'=>12,'notnull'=>-1,'comment'=>'TVA Tax Rate'],'price'=>['type'=>'decimal(20,6)','label'=>'HT','enabled'=>1,'visible'=>1,'position'=>8,'notnull'=>-1,'comment'=>'Price HT'],'price_ttc'=>['type'=>'decimal(20,6)','label'=>'TTC','enabled'=>1,'visible'=>1,'position'=>8,'notnull'=>-1,'comment'=>'Price TTC'],'price_min'=>['type'=>'decimal(20,6)','label'=>'MinPriceHT','enabled'=>1,'visible'=>1,'position'=>9,'notnull'=>-1,'comment'=>'Minimum Price'],'price_min_ttc'=>['type'=>'decimal(20,6)','label'=>'MinPriceTTC','enabled'=>1,'visible'=>1,'position'=>10,'notnull'=>-1,'comment'=>'Minimum Price TTC'],'fk_user'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserModif','enabled'=>1,'visible'=>1,'position'=>510,'notnull'=>1,'foreignkey'=>'user.rowid','csslist'=>'tdoverflowmax100']] of type array{ref:array{type:'varchar\x28128\x29',label:'Ref',enabled:1,visible:4,position:10,notnull:1,default:'\x28PROV\x29',index:1,searchall:1,comment:'Reference of object',showoncombobox:'1',noteditable:1},fk_product:array{type:'integer:Product:product/class/product.class.php:0',label:'Product',enabled:'$conf-\x3eproduct-\x3eenabled',visible:1,position:35,notnull:1,index:1,comment:'Product to produce',css:'maxwidth300',csslist:'tdoverflowmax100',picto:'product'},ref_customer:array{type:'varchar\x28128\x29',label:'RefCustomer',enabled:1,visible:4,position:10,notnull:1},datec:array{type:'datetime',label:'AppliedPricesFrom',enabled:1,visible:1,position:500,notnull:1},price_base_type:array{type:'varchar\x28255\x29',label:'PriceBase',enabled:1,visible:1,position:11,notnull:-1,comment:'Price Base Type'},tva_tx:array{type:'decimal\x2820\x2c6\x29',label:'VAT',enabled:1,visible:1,position:12,notnull:-1,comment:'TVA Tax Rate'},price:array{type:'decimal\x2820\x2c6\x29',label:'HT',enabled:1,visible:1,position:8,notnull:-1,comment:'Price HT'},price_ttc:array{type:'decimal\x2820\x2c6\x29',label:'TTC',enabled:1,visible:1,position:8,notnull:-1,comment:'Price TTC'},price_min:array{type:'decimal\x2820\x2c6\x29',label:'MinPriceHT',enabled:1,visible:1,position:9,notnull:-1,comment:'Minimum Price'},price_min_ttc:array{type:'decimal\x2820\x2c6\x29',label:'MinPriceTTC',enabled:1,visible:1,position:10,notnull:-1,comment:'Minimum Price TTC'},fk_user:array{type:'integer:User:user/class/user.class.php',label:'UserModif',enabled:1,visible:1,position:510,notnull:1,foreignkey:'user.rowid',csslist:'tdoverflowmax100'}} b
Run phan: htdocs/product/inventory/class/inventory.class.php#L101
inventory.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'TechnicalID','visible'=>-1,'enabled'=>1,'position'=>1,'notnull'=>1,'index'=>1,'comment'=>'Id'],'ref'=>['type'=>'varchar(64)','label'=>'Ref','visible'=>1,'enabled'=>1,'position'=>10,'notnull'=>1,'index'=>1,'searchall'=>1,'comment'=>'Reference of object','css'=>'maxwidth150'],'entity'=>['type'=>'integer','label'=>'Entity','visible'=>0,'enabled'=>1,'position'=>20,'notnull'=>1,'index'=>1],'title'=>['type'=>'varchar(255)','label'=>'Label','visible'=>1,'enabled'=>1,'position'=>25,'css'=>'minwidth300','csslist'=>'tdoverflowmax150','alwayseditable'=>1],'fk_warehouse'=>['type'=>'integer:Entrepot:product/stock/class/entrepot.class.php','label'=>'Warehouse','visible'=>1,'enabled'=>1,'position'=>30,'index'=>1,'help'=>'InventoryForASpecificWarehouse','picto'=>'stock','css'=>'minwidth300 maxwidth500 widthcentpercentminusx','csslist'=>'tdoverflowmax150'],'fk_product'=>['type'=>'integer:Product:product/class/product.class.php','label'=>'Product','get_name_url_params'=>'0::0:-1:0::1','visible'=>1,'enabled'=>1,'position'=>32,'index'=>1,'help'=>'InventoryForASpecificProduct','picto'=>'product','css'=>'minwidth300 maxwidth500 widthcentpercentminusx','csslist'=>'tdoverflowmax150'],'categories_product'=>['type'=>'chkbxlst:categorie:label:rowid::type=0:0:','label'=>'OrProductsWithCategories','visible'=>3,'enabled'=>1,'position'=>33,'help'=>'','picto'=>'category','css'=>'minwidth300 maxwidth500 widthcentpercentminusx'],'date_inventory'=>['type'=>'date','label'=>'DateValue','visible'=>1,'enabled'=>'$conf->global->STOCK_INVENTORY_ADD_A_VALUE_DATE','position'=>35,'csslist'=>'nowraponall'],'date_creation'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>500,'csslist'=>'nowraponall'],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>501,'csslist'=>'nowraponall'],'date_validation'=>['type'=>'datetime','label'=>'DateValidation','visible'=>-2,'enabled'=>1,'position'=>502,'csslist'=>'nowraponall'],'fk_user_creat'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserAuthor','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>510,'foreignkey'=>'user.rowid','csslist'=>'tdoverflowmax150'],'fk_user_modif'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserModif','enabled'=>1,'visible'=>-2,'notnull'=>-1,'position'=>511,'csslist'=>'tdoverflowmax150'],'fk_user_valid'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserValidation','visible'=>-2,'enabled'=>1,'position'=>512,'csslist'=>'tdoverflowmax150'],'import_key'=>['type'=>'varchar(14)','label'=>'ImportId','enabled'=>1,'visible'=>-2,'notnull'=>-1,'index'=>0,'position'=>1000],'status'=>['type'=>'integer','label'=>'Status','visible'=>4,'enabled'=>1,'position'=>1000,'notnull'=>1,'default'=>0,'index'=>1,'arrayofkeyval'=>[0=>'Draft',1=>'Validated',2=>'Closed',9=>'Canceled']]] of type array{rowid:array{type:'integer',label:'TechnicalID',visible:-1,enabled:1,position:1,notnull:1,index:1,comment:'Id'},ref:array{type:'varchar\x2864\x29',label:'Ref',visible:1,enabled:1,position:10,notnull:1,index:1,searchall:1,comment:'Reference of object',css:'maxwidth150'},entity:array{type:'integer',label:'Entity',visible:
Run phan: htdocs/product/stock/class/entrepot.class.php#L126
entrepot.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'ID','enabled'=>1,'visible'=>0,'notnull'=>1,'position'=>10],'entity'=>['type'=>'integer','label'=>'Entity','enabled'=>1,'visible'=>0,'default'=>1,'notnull'=>1,'index'=>1,'position'=>15],'ref'=>['type'=>'varchar(255)','label'=>'Ref','enabled'=>1,'visible'=>1,'showoncombobox'=>1,'position'=>25,'searchall'=>1],'description'=>['type'=>'text','label'=>'Description','enabled'=>1,'visible'=>-2,'position'=>35,'searchall'=>1],'lieu'=>['type'=>'varchar(64)','label'=>'LocationSummary','enabled'=>1,'visible'=>1,'position'=>40,'showoncombobox'=>2,'searchall'=>1],'fk_parent'=>['type'=>'integer:Entrepot:product/stock/class/entrepot.class.php:1:((statut:=:1) AND (entity:IN:__SHARED_ENTITIES__))','label'=>'ParentWarehouse','enabled'=>1,'visible'=>-2,'position'=>41],'fk_project'=>['type'=>'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)','label'=>'Project','enabled'=>'$conf->project->enabled','visible'=>-1,'position'=>25],'address'=>['type'=>'varchar(255)','label'=>'Address','enabled'=>1,'visible'=>-2,'position'=>45,'searchall'=>1],'zip'=>['type'=>'varchar(10)','label'=>'Zip','enabled'=>1,'visible'=>-2,'position'=>50,'searchall'=>1],'town'=>['type'=>'varchar(50)','label'=>'Town','enabled'=>1,'visible'=>-2,'position'=>55,'searchall'=>1],'fk_departement'=>['type'=>'integer','label'=>'State','enabled'=>1,'visible'=>0,'position'=>60],'fk_pays'=>['type'=>'integer:Ccountry:core/class/ccountry.class.php','label'=>'Country','enabled'=>1,'visible'=>-1,'position'=>65],'phone'=>['type'=>'varchar(20)','label'=>'Phone','enabled'=>1,'visible'=>-2,'position'=>70,'searchall'=>1],'fax'=>['type'=>'varchar(20)','label'=>'Fax','enabled'=>1,'visible'=>-2,'position'=>75,'searchall'=>1],'datec'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>1,'visible'=>-2,'position'=>300],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>301],'warehouse_usage'=>['type'=>'integer','label'=>'WarehouseUsage','enabled'=>'getDolGlobalInt("MAIN_FEATURES_LEVEL")','visible'=>1,'position'=>400,'arrayofkeyval'=>[1=>'InternalWarehouse',2=>'ExternalWarehouse']],'statut'=>['type'=>'tinyint(4)','label'=>'Status','enabled'=>1,'visible'=>1,'position'=>500,'css'=>'minwidth50']] of type array{rowid:array{type:'integer',label:'ID',enabled:1,visible:0,notnull:1,position:10},entity:array{type:'integer',label:'Entity',enabled:1,visible:0,default:1,notnull:1,index:1,position:15},ref:array{type:'varchar\x28255\x29',label:'Ref',enabled:1,visible:1,showoncombobox:1,position:25,searchall:1},description:array{type:'text',label:'Description',enabled:1,visible:-2,position:35,searchall:1},lieu:array{type:'varchar\x2864\x29',label:'LocationSummary',enabled:1,visible:1,position:40,showoncombobox:2,searchall:1},fk_parent:array{type:'integer:Entrepot:product/stock/class/entrepot.class.php:1:\x28\x28statut:=:1\x29 AND \x28entity:IN:__SHARED_ENTITIES__\x29\x29',label:'ParentWarehouse',enabled:1,visible:-2,position:41},fk_project:array{type:'integer:Project:projet/class/project.class.php:1:\x28fk_statut:=:1\x29',label:'Project',enabled:'$conf-\x3eproject-\x3eenabled',visible:-1,position:25},address:array{type:'varchar\x28255\x29',label:'Address',enabled:1,visible:-2,position:45,searchall:1},zip:array{type:'varchar\x281
Run phan: htdocs/product/stock/class/productlot.class.php#L104
productlot.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'TechnicalID','enabled'=>1,'visible'=>-2,'noteditable'=>1,'notnull'=>1,'index'=>1,'position'=>1,'comment'=>'Id','css'=>'left'],'fk_product'=>['type'=>'integer:Product:product/class/product.class.php','label'=>'Product','enabled'=>1,'visible'=>1,'position'=>5,'notnull'=>1,'index'=>1,'searchall'=>1,'picto'=>'product','css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'maxwidth150'],'batch'=>['type'=>'varchar(30)','label'=>'Batch','enabled'=>1,'visible'=>1,'notnull'=>1,'showoncombobox'=>1,'index'=>1,'position'=>10,'comment'=>'Batch','searchall'=>1,'picto'=>'lot','validate'=>1],'entity'=>['type'=>'integer','label'=>'Entity','enabled'=>1,'visible'=>0,'default'=>1,'notnull'=>1,'index'=>1,'position'=>20],'sellby'=>['type'=>'date','label'=>'SellByDate','enabled'=>'empty($conf->global->PRODUCT_DISABLE_SELLBY)?1:0','visible'=>1,'notnull'=>0,'position'=>60],'eatby'=>['type'=>'date','label'=>'EatByDate','enabled'=>'empty($conf->global->PRODUCT_DISABLE_EATBY)?1:0','visible'=>1,'notnull'=>0,'position'=>62],'eol_date'=>['type'=>'date','label'=>'EndOfLife','enabled'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_QUALITY_CONTROL")?1:0','visible'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_QUALITY_CONTROL")?5:0','position'=>70],'manufacturing_date'=>['type'=>'date','label'=>'ManufacturingDate','enabled'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_TRACEABILITY")?1:0','visible'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_TRACEABILITY")?5:0','position'=>80],'scrapping_date'=>['type'=>'date','label'=>'DestructionDate','enabled'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_TRACEABILITY")?1:0','visible'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_TRACEABILITY")?5:0','position'=>90],'qc_frequency'=>['type'=>'integer','label'=>'QCFrequency','enabled'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_QUALITY_CONTROL")?1:0','visible'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_QUALITY_CONTROL")?5:0','position'=>110],'lifetime'=>['type'=>'integer','label'=>'Lifetime','enabled'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_QUALITY_CONTROL")?1:0','visible'=>'getDolGlobalInt("PRODUCT_LOT_ENABLE_QUALITY_CONTROL")?5:0','position'=>110],'model_pdf'=>['type'=>'varchar(255)','label'=>'Model pdf','enabled'=>1,'visible'=>0,'position'=>215],'last_main_doc'=>['type'=>'varchar(255)','label'=>'LastMainDoc','enabled'=>1,'visible'=>-2,'position'=>310],'datec'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>1,'visible'=>0,'notnull'=>1,'position'=>500],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>501],'fk_user_creat'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserAuthor','enabled'=>1,'visible'=>-2,'notnull'=>1,'position'=>510,'foreignkey'=>'llx_user.rowid'],'fk_user_modif'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserModif','enabled'=>1,'visible'=>-2,'notnull'=>-1,'position'=>511],'import_key'=>['type'=>'varchar(14)','label'=>'ImportId','enabled'=>1,'visible'=>-2,'notnull'=>-1,'index'=>0,'position'=>1000]] of type array{rowid:array{type:'integer',label:'TechnicalID',enabled:1,visible:-2,noteditable:1,notnull:1,index:1,position:1,comment:'Id',css:'left'},fk_product:array{type:'integer:Product:product/class/product.class.php',label:'Product',enabled:1,visible:1,positio
Run phan: htdocs/product/stock/stocktransfer/class/stocktransfer.class.php#L129
stocktransfer.class.php: PhanTypeMismatchPropertyDefault: Default value for array<string,array{type:string,label:string,enabled:int|string,position:int,notnull:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> $fields can't be ['rowid'=>['type'=>'integer','label'=>'TechnicalID','enabled'=>'1','position'=>1,'notnull'=>1,'visible'=>0,'noteditable'=>'1','index'=>1,'comment'=>'Id'],'entity'=>['type'=>'integer','label'=>'Entity','enabled'=>'1','position'=>1,'default'=>1,'notnull'=>1,'visible'=>0,'noteditable'=>'1','index'=>1,'comment'=>'Id'],'ref'=>['type'=>'varchar(128)','label'=>'Ref','enabled'=>'1','position'=>10,'notnull'=>1,'visible'=>4,'noteditable'=>'1','default'=>'(PROV)','index'=>1,'searchall'=>1,'showoncombobox'=>'1','comment'=>'Reference of object'],'label'=>['type'=>'varchar(255)','label'=>'Label','enabled'=>'1','position'=>30,'notnull'=>0,'visible'=>1,'searchall'=>1,'showoncombobox'=>'1','css'=>'minwidth100','csslist'=>'tdoverflowmax125','autofocusoncreate'=>1],'description'=>['type'=>'text','label'=>'Description','enabled'=>'1','position'=>31,'notnull'=>0,'visible'=>3],'fk_project'=>['type'=>'integer:Project:projet/class/project.class.php:1','label'=>'Project','enabled'=>'$conf->project->enabled','position'=>32,'notnull'=>-1,'visible'=>-1,'index'=>1,'picto'=>'project','css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'tdoverflowmax125'],'fk_soc'=>['type'=>'integer:Societe:societe/class/societe.class.php:1:((status:=:1) AND (entity:IN:__SHARED_ENTITIES__))','label'=>'ThirdParty','enabled'=>'1','position'=>50,'notnull'=>-1,'visible'=>1,'index'=>1,'picto'=>'company','css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'tdoverflowmax125'],'fk_warehouse_source'=>['type'=>'integer:Entrepot:product/stock/class/entrepot.class.php','label'=>'Entrepôt source','enabled'=>'1','position'=>50,'notnull'=>0,'visible'=>1,'help'=>'HelpWarehouseStockTransferSource','picto'=>'stock','css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'tdoverflowmax150'],'fk_warehouse_destination'=>['type'=>'integer:Entrepot:product/stock/class/entrepot.class.php','label'=>'Entrepôt de destination','enabled'=>'1','position'=>51,'notnull'=>0,'visible'=>1,'help'=>'HelpWarehouseStockTransferDestination','picto'=>'stock','css'=>'maxwidth500 widthcentpercentminusxx','csslist'=>'tdoverflowmax150'],'note_public'=>['type'=>'html','label'=>'NotePublic','enabled'=>'1','position'=>61,'notnull'=>0,'visible'=>0],'note_private'=>['type'=>'html','label'=>'NotePrivate','enabled'=>'1','position'=>62,'notnull'=>0,'visible'=>0],'date_creation'=>['type'=>'datetime','label'=>'DateCreation','enabled'=>'1','position'=>500,'notnull'=>1,'visible'=>-2],'date_prevue_depart'=>['type'=>'date','label'=>'DatePrevueDepart','enabled'=>'1','position'=>100,'notnull'=>0,'visible'=>1],'date_reelle_depart'=>['type'=>'date','label'=>'DateReelleDepart','enabled'=>'1','position'=>101,'notnull'=>0,'visible'=>5],'date_prevue_arrivee'=>['type'=>'date','label'=>'DatePrevueArrivee','enabled'=>'1','position'=>102,'notnull'=>0,'visible'=>1],'date_reelle_arrivee'=>['type'=>'date','label'=>'DateReelleArrivee','enabled'=>'1','position'=>103,'notnull'=>0,'visible'=>5],'lead_time_for_warning'=>['type'=>'integer','label'=>'LeadTimeForWarning','enabled'=>'1','position'=>200,'default'=>0,'notnull'=>0,'visible'=>1],'tms'=>['type'=>'timestamp','label'=>'DateModification','enabled'=>'1','position'=>501,'notnull'=>0,'visible'=>-2],'fk_us

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
18.4 KB