mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-23 01:03:16 +01:00
Qual: Fix PhanTypeMismatchProperty and some other phan notices (#30542)
* Qual: Fix PhanTypeMismatchProperty and some other phan notices * Qual: Phan fixes for BOM * Phan - fix fields * fixup! Qual: Phan fixes for BOM * Fix phpstan double array keys for syslog * Fix $fields phpdoc * Fix phan typing issues with intermediate var and ?? * Fix phan typing issue with ?? operator * Ignore htdocs/install/install.forced.php for git * Qual: Revert to original code, ignore notice When changing the method to avoid one notice type, another one appears. So simply ignoring this error. * Qual: Revert to original code, ignore notice When changing the method to avoid one notice type, another one appears. So simply ignoring this error. * Update baseline * Qual: Phan fixes for BOM * fixup! Qual: Phan fixes for BOM * Fix phpstan double array keys for syslog * Qual: Revert to original code, ignore notice When changing the method to avoid one notice type, another one appears. So simply ignoring this error. * Ignore PhanTypeSuspiciousNonTraversableForeach to allow integration * Fix typing hints (phpstan) --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -292,7 +292,7 @@ class Commande extends CommonOrder
|
||||
|
||||
// BEGIN MODULEBUILDER PROPERTIES
|
||||
/**
|
||||
* @var array<string,array{type:string,label:string,enabled:int<0,2>|string,position:int,notnull?:int,visible:int,noteditable?:int,default?:string,index?:int,foreignkey?:string,searchall?:int,isameasure?:int,css?:string,csslist?:string,help?:string,showoncombobox?:int,disabled?:int,arrayofkeyval?:array<int,string>,comment?:string}> 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,1>,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>,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 = array(
|
||||
'rowid' => array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'visible' => -1, 'notnull' => 1, 'position' => 10),
|
||||
|
||||
Reference in New Issue
Block a user