Skip to content

Fix & enable PhanTypeMismatchPropertyDefault #2020

Fix & enable PhanTypeMismatchPropertyDefault

Fix & enable PhanTypeMismatchPropertyDefault #2020

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

phan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 5 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/webhook/class/target.class.php#L106
target.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'],'ref'=>['type'=>'varchar(128)','label'=>'Ref','enabled'=>1,'position'=>20,'notnull'=>1,'visible'=>4,'noteditable'=>1,'index'=>1,'searchall'=>1,'validate'=>1,'comment'=>'Reference of object'],'label'=>['type'=>'varchar(255)','label'=>'Label','enabled'=>1,'position'=>30,'notnull'=>0,'visible'=>1,'searchall'=>1,'css'=>'minwidth300','cssview'=>'wordbreak','help'=>'Help text','showoncombobox'=>'2','validate'=>1],'url'=>['type'=>'varchar(255)','label'=>'Url','enabled'=>1,'position'=>50,'notnull'=>1,'visible'=>1],'trigger_codes'=>['type'=>'text','label'=>'TriggerCodes','enabled'=>1,'position'=>55,'notnull'=>1,'visible'=>1,'help'=>'TriggerCodeInfo'],'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','enabled'=>1,'position'=>510,'notnull'=>1,'visible'=>-2,'foreignkey'=>'user.rowid'],'fk_user_modif'=>['type'=>'integer:User:user/class/user.class.php','label'=>'UserModif','enabled'=>1,'position'=>511,'notnull'=>-1,'visible'=>-2],'import_key'=>['type'=>'varchar(14)','label'=>'ImportId','enabled'=>1,'position'=>1000,'notnull'=>-1,'visible'=>-2],'status'=>['type'=>'integer','label'=>'Status','enabled'=>1,'position'=>2000,'notnull'=>1,'default'=>'1','visible'=>1,'index'=>1,'arrayofkeyval'=>['0'=>'Disabled','1'=>'Enabled'],'validate'=>1]] 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'},ref:array{type:'varchar\x28128\x29',label:'Ref',enabled:1,position:20,notnull:1,visible:4,noteditable:1,index:1,searchall:1,validate:1,comment:'Reference of object'},label:array{type:'varchar\x28255\x29',label:'Label',enabled:1,position:30,notnull:0,visible:1,searchall:1,css:'minwidth300',cssview:'wordbreak',help:'Help text',showoncombobox:'2',validate:1},url:array{type:'varchar\x28255\x29',label:'Url',enabled:1,position:50,notnull:1,visible:1},trigger_codes:array{type:'text',label:'TriggerCodes',enabled:1,position:55,notnull:1,visible:1,help:'TriggerCodeInfo'},description:array{type:'text',label:'Description',enabled:1,position:60,notnull:0,visible:3,validate:1},note_public:array{type:'html',label:'NotePublic',enabled:1,position:61,notnull:0,visible:0,cssview:'wordbreak',validate:1},note_private:array{type:'html',label:'NotePrivate',enabled:1,position:62,notnull:0,visible:0,cssview:'wordbreak',validate:1},date_creation:array{type:'datetime',label:'DateCreation',enabled:1,position:500,notnull:1,visible:-2},tms:array{type:'timestamp',label:'DateModification',ena

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
3.2 KB