Skip to content

Commit

Permalink
fix: remove picto
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Nov 16, 2024
1 parent 0e96ceb commit b5c133e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions htdocs/expedition/class/expedition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,23 @@ class Expedition extends CommonObject
*/

/**
* @var array<string,array{type:string,label:string,picto?:string,enabled:int<0,2>|string,position:int,notnull?:int,visible:int<-2,5>|string,noteditable?:int<0,1>,default?:string,index?:int,foreignkey?:string,searchall?:int<0,1>,isameasure?:int<0,1>,css?:string,csslist?:string,help?:string,showoncombobox?:int<0,2>,disabled?:int<0,1>,arrayofkeyval?:array<int|string,string>,comment?:string,validate?:int<0,1>}> Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
* @var array<string,array{type:string,label:string,enabled:int<0,2>|string,position:int,notnull?:int,visible:int<-2,5>|string,noteditable?:int<0,1>,default?:string,index?:int,foreignkey?:string,searchall?:int<0,1>,isameasure?:int<0,1>,css?:string,csslist?:string,help?:string,showoncombobox?:int<0,2>,disabled?:int<0,1>,arrayofkeyval?:array<int|string,string>,comment?:string,validate?:int<0,1>}> Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
*/
public $fields = [

Check failure on line 128 in htdocs/expedition/class/expedition.class.php

View workflow job for this annotation

GitHub Actions / phpstan / php-stan (8.2)

Property Expedition::$fields (array<string, array{type: string, label: string, enabled: int<0, 2>|string, position: int, notnull?: int, visible: int<-2, 5>|string, noteditable?: int<0, 1>, default?: string, ...}>) does not accept default value of type array{rowid: array{type: 'integer', label: 'TechnicalID', enabled: 1, position: 1, notnull: 1, visible: -1, noteditable: 1, index: 1, ...}, tms: array{type: 'timestamp', label: 'DateModification', enabled: 1, position: 10, notnull: 0, visible: -1}, ref: array{type: 'varchar(30)', label: 'Ref', enabled: 1, position: 20, notnull: 1, visible: -1, noteditable: 1, index: 1, ...}, entity: array{type: 'integer', label: 'Entity', enabled: 1, position: 30, notnull: 1, visible: -1, index: 1}, fk_soc: array{type: 'integer:Societe…', label: 'ThirdParty', enabled: '$conf->societe-…', position: 40, notnull: 1, visible: -1, index: 1, css: 'maxwidth500…', ...}, fk_projet: array{type: 'integer:Project…', label: 'Project', enabled: '$conf->project-…', position: 50, notnull: 0, visible: -1, index: 1, css: 'maxwidth500…', ...}, ref_ext: array{type: 'varchar(255)', label: 'RefExt', enabled: 1, position: 60, notnull: 0, visible: -1}, ref_int: array{type: 'varchar(255)', label: 'RefInt', enabled: 1, position: 70, notnull: 0, visible: -1}, ...}.

Check warning on line 128 in htdocs/expedition/class/expedition.class.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

expedition.class.php: PhanTypeMismatchPropertyDefault: Default value for array&lt;string,array{type:string,label:string,enabled:int|string,position:int,notnull?:int,visible:int|string,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,csslist?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:string[],comment?:string,validate?:int}&gt; $fields can't be ['rowid'=&gt;['type'=&gt;'integer','label'=&gt;'TechnicalID','enabled'=&gt;1,'position'=&gt;1,'notnull'=&gt;1,'visible'=&gt;-1,'noteditable'=&gt;1,'index'=&gt;1,'comment'=&gt;'Id'],'tms'=&gt;['type'=&gt;'timestamp','label'=&gt;'DateModification','enabled'=&gt;1,'position'=&gt;10,'notnull'=&gt;0,'visible'=&gt;-1],'ref'=&gt;['type'=&gt;'varchar(30)','label'=&gt;'Ref','enabled'=&gt;1,'position'=&gt;20,'notnull'=&gt;1,'visible'=&gt;-1,'noteditable'=&gt;1,'index'=&gt;1,'searchall'=&gt;1,'showoncombobox'=&gt;1,'validate'=&gt;1,'comment'=&gt;'Reference of object'],'entity'=&gt;['type'=&gt;'integer','label'=&gt;'Entity','enabled'=&gt;1,'position'=&gt;30,'notnull'=&gt;1,'visible'=&gt;-1,'index'=&gt;1],'fk_soc'=&gt;['type'=&gt;'integer:Societe:societe/class/societe.class.php','label'=&gt;'ThirdParty','enabled'=&gt;'$conf-&gt;societe-&gt;enabled','position'=&gt;40,'notnull'=&gt;1,'visible'=&gt;-1,'index'=&gt;1,'css'=&gt;'maxwidth500 widthcentpercentminusxx','foreignkey'=&gt;'societe.rowid'],'fk_projet'=&gt;['type'=&gt;'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)','label'=&gt;'Project','enabled'=&gt;'$conf-&gt;project-&gt;enabled','position'=&gt;50,'notnull'=&gt;0,'visible'=&gt;-1,'index'=&gt;1,'css'=&gt;'maxwidth500 widthcentpercentminusxx','foreignkey'=&gt;'projet.rowid'],'ref_ext'=&gt;['type'=&gt;'varchar(255)','label'=&gt;'RefExt','enabled'=&gt;1,'position'=&gt;60,'notnull'=&gt;0,'visible'=&gt;-1],'ref_int'=&gt;['type'=&gt;'varchar(255)','label'=&gt;'RefInt','enabled'=&gt;1,'position'=&gt;70,'notnull'=&gt;0,'visible'=&gt;-1],'ref_customer'=&gt;['type'=&gt;'varchar(255)','label'=&gt;'RefCustomer','enabled'=&gt;1,'position'=&gt;80,'notnull'=&gt;0,'visible'=&gt;-1],'date_creation'=&gt;['type'=&gt;'datetime','label'=&gt;'DateCreation','enabled'=&gt;1,'position'=&gt;90,'notnull'=&gt;0,'visible'=&gt;-1],'fk_user_author'=&gt;['type'=&gt;'integer:User:user/class/user.class.php','label'=&gt;'UserAuthor','enabled'=&gt;1,'position'=&gt;100,'notnull'=&gt;0,'visible'=&gt;-1,'index'=&gt;1,'foreignkey'=&gt;'user.rowid'],'fk_user_modif'=&gt;['type'=&gt;'integer:User:user/class/user.class.php','label'=&gt;'UserModif','enabled'=&gt;1,'position'=&gt;110,'notnull'=&gt;0,'visible'=&gt;-1,'index'=&gt;1,'foreignkey'=&gt;'user.rowid'],'date_valid'=&gt;['type'=&gt;'datetime','label'=&gt;'DateValidation','enabled'=&gt;1,'position'=&gt;120,'notnull'=&gt;0,'visible'=&gt;5],'fk_user_valid'=&gt;['type'=&gt;'integer:User:user/class/user.class.php','label'=&gt;'UserValidation','enabled'=&gt;1,'position'=&gt;130,'notnull'=&gt;0,'visible'=&gt;-1,'index'=&gt;1,'foreignkey'=&gt;'user.rowid'],'date_delivery'=&gt;['type'=&gt;'datetime','label'=&gt;'DateDelivery','enabled'=&gt;1,'position'=&gt;140,'notnull'=&gt;0,'visible'=&gt;-1],'date_expedition'=&gt;['type'=&gt;'datetime','label'=&gt;'DateExpedition','enabled'=&gt;1,'position'=&gt;150,'notnull'=&gt;0,'visible'=&gt;-1],'fk_address'=&gt;['type'=&gt;'integer','label'=&gt;'Address','enabled'=&gt;1,'position'=&gt;160,'notnull'=&gt;0,'visible'=&gt;-1],'fk_shipping_method'=&gt;['type'=&gt;'integer','label'=&gt;'ShippingMethod','enabled'=&gt;1,'position'=&gt;170,'notnull'=&gt;0,'visible'=&gt;-1,'index'=&gt;1,'default'=&gt;0],'tracking_number'=&gt;['type'=&gt;'varchar(50)','label'=&gt;'TrackingNumber','enabled'=&gt;1,'position'=&gt;180,'notnull'=&gt;0,'visible'=&gt;-1],'fk_statut'=&gt;['type'=&gt;'smallint(6)','label'=&gt;'Status','enabled'=&gt;1,'position'=&gt;190,'notnull'=&gt;0,'visible'=&gt;-1,'index'=&gt;1,'default'=&gt;0],'billed'=&gt;['type'=&gt;'smallint(6)','label'=&gt;'Billed','enabled'=&gt;1,'position'=&gt;200,'notnull'=&gt;0,'visible'=&gt;-1],'height'=&gt;['type'=&gt;'f
'rowid' => ['type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'position' => 1, 'notnull' => 1, 'visible' => -1, 'noteditable' => 1, 'index' => 1, 'comment' => 'Id'],
'tms' => ['type' => 'timestamp', 'label' => 'DateModification', 'enabled' => 1, 'position' => 10, 'notnull' => 0, 'visible' => -1],
'ref' => ['type' => 'varchar(30)', 'label' => 'Ref', 'enabled' => 1, 'position' => 20, 'notnull' => 1, 'visible' => -1, 'noteditable' => 1, 'index' => 1, 'searchall' => 1, 'showoncombobox' => 1, 'validate' => 1, 'comment' => 'Reference of object'],
'entity' => ['type' => 'integer', 'label' => 'Entity', 'enabled' => 1, 'position' => 30, 'notnull' => 1, 'visible' => -1, 'index' => 1],
'fk_soc' => ['type' => 'integer:Societe:societe/class/societe.class.php', 'label' => 'ThirdParty', 'picto' => 'company', 'enabled' => '$conf->societe->enabled', 'position' => 40, 'notnull' => 1, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'societe.rowid'],
'fk_projet' => ['type' => 'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)', 'label' => 'Project', 'picto' => 'projet', 'enabled' => '$conf->project->enabled', 'position' => 50, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'projet.rowid'],
'fk_soc' => ['type' => 'integer:Societe:societe/class/societe.class.php', 'label' => 'ThirdParty', 'enabled' => '$conf->societe->enabled', 'position' => 40, 'notnull' => 1, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'societe.rowid'],
'fk_projet' => ['type' => 'integer:Project:projet/class/project.class.php:1:(fk_statut:=:1)', 'label' => 'Project', 'enabled' => '$conf->project->enabled', 'position' => 50, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'css' => 'maxwidth500 widthcentpercentminusxx', 'foreignkey' => 'projet.rowid'],
'ref_ext' => ['type' => 'varchar(255)', 'label' => 'RefExt', 'enabled' => 1, 'position' => 60, 'notnull' => 0, 'visible' => -1],
'ref_int' => ['type' => 'varchar(255)', 'label' => 'RefInt', 'enabled' => 1, 'position' => 70, 'notnull' => 0, 'visible' => -1],
'ref_customer' => ['type' => 'varchar(255)', 'label' => 'RefCustomer', 'enabled' => 1, 'position' => 80, 'notnull' => 0, 'visible' => -1],
'date_creation' => ['type' => 'datetime', 'label' => 'DateCreation', 'enabled' => 1, 'position' => 90, 'notnull' => 0, 'visible' => -1],
'fk_user_author' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserAuthor', 'picto' => 'user', 'enabled' => 1, 'position' => 100, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'fk_user_modif' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserModif', 'picto' => 'user', 'enabled' => 1, 'position' => 110, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'fk_user_author' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserAuthor', 'enabled' => 1, 'position' => 100, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'fk_user_modif' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserModif', 'enabled' => 1, 'position' => 110, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'date_valid' => ['type' => 'datetime', 'label' => 'DateValidation', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 5],
'fk_user_valid' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserValidation', 'picto' => 'user', 'enabled' => 1, 'position' => 130, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'fk_user_valid' => ['type' => 'integer:User:user/class/user.class.php', 'label' => 'UserValidation', 'enabled' => 1, 'position' => 130, 'notnull' => 0, 'visible' => -1, 'index' => 1, 'foreignkey' => 'user.rowid'],
'date_delivery' => ['type' => 'datetime', 'label' => 'DateDelivery', 'enabled' => 1, 'position' => 140, 'notnull' => 0, 'visible' => -1],
'date_expedition' => ['type' => 'datetime', 'label' => 'DateExpedition', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1],
'fk_address' => ['type' => 'integer', 'label' => 'Address', 'enabled' => 1, 'position' => 160, 'notnull' => 0, 'visible' => -1],
Expand Down

0 comments on commit b5c133e

Please sign in to comment.