Qual: Fix FunctionArray phan notices #10448
ci.yml
on: pull_request
pre-commit
/
pre-commit
1m 51s
gh-travis
/
gh-travis
Matrix: phpstan / php-stan
Matrix: windows-ci / win-test
Waiting for pending jobs
Annotations
12 errors and 11 warnings
phan / Run phan
Process completed with exit code 1.
|
phan / Run phan
Process completed with exit code 1.
|
phpstan / php-stan (8.2):
htdocs/admin/system/filecheck.php#L291
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/admin/system/filecheck.php#L330
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/admin/system/filecheck.php#L382
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/admin/workflow.php#L277
Return type of call to function dol_sort_array contains unresolvable type.
|
phpstan / php-stan (8.2):
htdocs/api/class/api_setup.class.php#L2573
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/api/class/api_setup.class.php#L2606
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/api/class/api_setup.class.php#L2652
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/asset/model/card.php#L310
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/asset/tpl/depreciation_options_edit.tpl.php#L93
Unable to resolve the template type T in call to function dol_sort_array
|
phpstan / php-stan (8.2):
htdocs/asset/tpl/depreciation_options_view.tpl.php#L78
Unable to resolve the template type T in call to function dol_sort_array
|
pre-commit / pre-commit
Cache save failed.
|
phan / Run phan:
htdocs/admin/system/filecheck.php#L395
filecheck.php: PhanTypeInvalidDimOffset: Invalid offset "expectedmd5" of $file of array type array{filename:string,md5:false|string}
|
phan / Run phan:
htdocs/api/class/api_setup.class.php#L2660
api_setup.class.php: PhanTypeInvalidDimOffset: Invalid offset "expectedmd5" of $file of array type array{filename:string,md5:false|string}
|
phan / Run phan:
htdocs/api/class/api_setup.class.php#L2660
api_setup.class.php: PhanTypeSuspiciousStringExpression: Suspicious type null of a variable or expression $file['expectedmd5'] used to build a string. (Expected type to be able to cast to a string)
|
phan / Run phan:
htdocs/asset/tpl/depreciation_options_view.tpl.php#L106
depreciation_options_view.tpl.php: PhanTypeInvalidDimOffset: Invalid offset "copytoclipboard" of $field_info of array type array{tdcss?:mixed,enabled_field:'accelerated_depreciation:depreciation_type:1'|'economic:depreciation_type:1'|?''|?'0'|?0|?0.0|?array{}|?false,type:'boolean'|'double\x2824\x2c8\x29'|'integer'|'price'|'smallint'|string,label:'AssetDepreciationOptionAcceleratedDepreciation'|'AssetDepreciationOptionAmountBaseDeductibleHT'|'AssetDepreciationOptionAmountBaseDepreciationHT'|'AssetDepreciationOptionDegressiveRate'|'AssetDepreciationOptionDepreciationType'|'AssetDepreciationOptionDuration'|'AssetDepreciationOptionDurationType'|'AssetDepreciationOptionRate'|'AssetDepreciationOptionTotalAmountLastDepreciationHT'|string,position:10|20|30|40|50|60|80|90|100|110|int,notnull:0|1|int,visible:1|3|int|string,default:'$object-\x3ereversal_amount_ht \x3e 0 ? $object-\x3ereversal_amount_ht : $object-\x3eacquisition_value_ht'|'0'|string,arrayofkeyval:array{0:'AssetDepreciationOptionDepreciationTypeLinear'|'AssetDepreciationOptionDurationTypeAnnual',1:'AssetDepreciationOptionDepreciationTypeDegressive'|'AssetDepreciationOptionDurationTypeMonthly',2?:'AssetDepreciationOptionDepreciationTypeExceptional'}|string[],validate:1|int,isameasure:1|int,computed?:'$object-\x3easset_depreciation_options-\x3egetRate\x28"accelerated_depreciation"\x29'|'$object-\x3easset_depreciation_options-\x3egetRate\x28"economic"\x29',column_break?:true,only_on_asset?:1,required?:1,noteditable:1|int,index?:int,foreignkey?:string,searchall?:int,css?:string,csslist?:string,help:string,showoncombobox?:int,disabled?:int,comment?:string,enabled?:'isset\x28$object\x29 && get_class\x28$object\x29=="Asset"'|1|int|null|string}
|
phan / Run phan:
htdocs/asset/tpl/depreciation_view.tpl.php#L117
depreciation_view.tpl.php: PhanTypeInvalidDimOffset: Invalid offset "copytoclipboard" of $field_info of array type array{tdcss?:mixed,column_break:?''|?'0'|?0|?0.0|?array{}|?false|true,enabled_field:'accelerated_depreciation:depreciation_type:1'|'economic:depreciation_type:1'|?''|?'0'|?0|?0.0|?array{}|?false,type:'boolean'|'double\x2824\x2c8\x29'|'integer'|'price'|'smallint'|string,label:'AssetDepreciationOptionAcceleratedDepreciation'|'AssetDepreciationOptionAmountBaseDeductibleHT'|'AssetDepreciationOptionAmountBaseDepreciationHT'|'AssetDepreciationOptionDegressiveRate'|'AssetDepreciationOptionDepreciationType'|'AssetDepreciationOptionDuration'|'AssetDepreciationOptionDurationType'|'AssetDepreciationOptionRate'|'AssetDepreciationOptionTotalAmountLastDepreciationHT'|string,position:10|20|30|40|50|60|80|90|100|110|int,notnull:0|1|int,visible:1|3|int|string,default:'$object-\x3ereversal_amount_ht \x3e 0 ? $object-\x3ereversal_amount_ht : $object-\x3eacquisition_value_ht'|'0'|string,arrayofkeyval:array{0:'AssetDepreciationOptionDepreciationTypeLinear'|'AssetDepreciationOptionDurationTypeAnnual',1:'AssetDepreciationOptionDepreciationTypeDegressive'|'AssetDepreciationOptionDurationTypeMonthly',2?:'AssetDepreciationOptionDepreciationTypeExceptional'}|string[],validate:1|int,isameasure:1|int,computed?:'$object-\x3easset_depreciation_options-\x3egetRate\x28"accelerated_depreciation"\x29'|'$object-\x3easset_depreciation_options-\x3egetRate\x28"economic"\x29',only_on_asset?:1,required?:1,noteditable:1|int,index?:int,foreignkey?:string,searchall?:int,css?:string,csslist?:string,help:string,showoncombobox?:int,disabled?:int,comment?:string,enabled?:'isset\x28$object\x29 && get_class\x28$object\x29=="Asset"'|1|int|null|string}
|
phan / Run phan:
htdocs/compta/recap-compta.php#L309
recap-compta.php: PhanTypeInvalidDimOffset: Invalid offset "balance" of $data of array type array{fk_facture:non-empty-mixed|null,date:''|int|non-zero-int,datefieldforsort:string,link:string,status:''|string,amount:float|int,author:string,fk_paiement:mixed|non-empty-mixed|null}
|
phan / Run phan:
htdocs/core/class/commonobject.class.php#L9805
commonobject.class.php: PhanTypeInvalidDimOffset: Invalid offset "share" of $val of array type array{label?:mixed,name:string,path:string,level1name:string,relativename:string,fullname:string,date:string,size:int,perm:int,type:string}
|
phan / Run phan:
htdocs/core/class/html.formfile.class.php#L982
html.formfile.class.php: PhanTypeInvalidDimOffset: Invalid offset "rowid" of $file of array type array{name:string,path:string,level1name:string,relativename:string,fullname:string,date:string,size:int,perm:int,type:string}
|
phan / Run phan:
htdocs/core/class/html.formfile.class.php#L1058
html.formfile.class.php: PhanTypeInvalidDimOffset: Invalid offset "rowid" of $file of array type array{share:non-empty-mixed|null,date:non-empty-string|string,size:0|non-zero-int,name:string,path:string,level1name:string,relativename:string,fullname:string,perm:int,type:string}
|
phan / Run phan:
htdocs/core/class/html.formfile.class.php#L1058
html.formfile.class.php: PhanTypeSuspiciousStringExpression: Suspicious type null of a variable or expression $file['rowid'] used to build a string. (Expected type to be able to cast to a string)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
phan-srcrt
Expired
|
1.63 KB |
|
phpstan-srcrt
Expired
|
1.11 KB |
|
precommit-logs
|
728 Bytes |
|