Skip to content

Qual: Improve typing in Export class #6575

Qual: Improve typing in Export class

Qual: Improve typing in Export class #6575

Triggered via pull request September 5, 2024 16:18
Status Failure
Total duration 3m 39s
Artifacts 2

ci.yml

on: pull_request
gh-travis  /  gh-travis
gh-travis / gh-travis
Matrix: phpstan / php-stan
Waiting for pending jobs
Matrix: windows-ci / win-test
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 10 warnings
phan / Run phan: htdocs/exports/class/export.class.php#L739
export.class.php: PhanUndeclaredMethod: Call to undeclared method \ModeleExports::getDriverExtension
phan / Run phan: htdocs/exports/class/export.class.php#L746
export.class.php: PhanUndeclaredMethod: Call to undeclared method \ModeleExports::open_file
phan / Run phan: htdocs/exports/class/export.class.php#L750
export.class.php: PhanUndeclaredMethod: Call to undeclared method \ModeleExports::write_header
phan / Run phan: htdocs/exports/class/export.class.php#L753
export.class.php: PhanUndeclaredMethod: Call to undeclared method \ModeleExports::write_title
phan / Run phan: htdocs/exports/class/export.class.php#L851
export.class.php: PhanUndeclaredMethod: Call to undeclared method \ModeleExports::write_record
phan / Run phan: htdocs/exports/class/export.class.php#L855
export.class.php: PhanUndeclaredMethod: Call to undeclared method \ModeleExports::write_footer
phan / Run phan: htdocs/exports/class/export.class.php#L858
export.class.php: PhanUndeclaredMethod: Call to undeclared method \ModeleExports::close_file
phan / Run phan
Process completed with exit code 1.
phan / Run phan
Process completed with exit code 1.
phan / Run phan: htdocs/exports/class/export.class.php#L118
export.class.php: PhanUnextractableAnnotationSuffix: Saw a token Phan may have failed to parse after '* @var array<array{rule:string,file:string,classfile:string,class:string,method:string,method_params:string[]}>>|array<array<string,string>': after array<array{rule:string,file:string,classfile:string,class:string,method:string,method_params:string[]}>, saw '>'
phan / Run phan: htdocs/exports/class/export.class.php#L269
export.class.php: PhanTypeArraySuspicious: Suspicious array access to $this->array_export_perms of type bool
phan / Run phan: htdocs/exports/class/export.class.php#L269
export.class.php: PhanTypeMismatchPropertyProbablyReal: Assigning ($bool as a field) of type array<int,?bool>|array<int,?non-empty-mixed> to property but \Export->array_export_perms is bool (no real type) (the inferred real assigned type has nothing in common with the declared phpdoc property type)
phan / Run phan: htdocs/exports/class/export.class.php#L273
export.class.php: PhanTypeMismatchProperty: Assigning ($module->export_code[$r] as a field) of type array<int,string> to property but \Export->array_export_code is int[]
phan / Run phan: htdocs/exports/class/export.class.php#L279
export.class.php: PhanTypeMismatchProperty: Assigning ($module->export_fields_array[$r] as a field) of type array<int,array<string,string>> to property but \Export->array_export_fields is array<string,string>
phan / Run phan: htdocs/exports/class/export.class.php#L281
export.class.php: PhanTypeMismatchProperty: Assigning ((isset($module->export_TypeFields_array[$r]) ? $module->export_TypeFields_array[$r] : '') as a field) of type array<int,array<string,string>>|array<int,string> to property but \Export->array_export_TypeFields is array<string,string>
phan / Run phan: htdocs/exports/class/export.class.php#L283
export.class.php: PhanTypeMismatchProperty: Assigning ($module->export_entities_array[$r] as a field) of type array<int,array<string,non-empty-mixed>>|array<int,array<string,string>> to property but \Export->array_export_entities is array<string,string>
phan / Run phan: htdocs/exports/class/export.class.php#L283
export.class.php: PhanTypeMismatchProperty: Assigning ($module->export_entities_array[$r] as a field) of type array<int,array<string,string>> to property but \Export->array_export_entities is array<string,string>
phan / Run phan: htdocs/exports/class/export.class.php#L289
export.class.php: PhanTypeMismatchProperty: Assigning ((!empty($module->export_examplevalues_array[$r]) ? $module->export_examplevalues_array[$r] : null) as a field) of type array<int,array<string,string>>|array<int,null> to property but \Export->array_export_examplevalues is array<string,string>
phan / Run phan: htdocs/exports/class/export.class.php#L291
export.class.php: PhanTypeMismatchProperty: Assigning ((!empty($module->export_help_array[$r]) ? $module->export_help_array[$r] : '') as a field) of type array<int,array<string,string>>|array<int,string> to property but \Export->array_export_help is array<string,string>

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
1.83 KB
precommit-logs
558 Bytes