Skip to content

Qual: Improve write_file typing (part 2) #10449

Qual: Improve write_file typing (part 2)

Qual: Improve write_file typing (part 2) #10449

Triggered via pull request November 11, 2024 00:30
Status Failure
Total duration 5m 43s
Artifacts 3

ci.yml

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

Annotations

4 errors and 2 warnings
phpstan / php-stan (8.2): htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php#L261
Parameter #1 $arrayofrecords (array<array{textleft: string, textheader: string, textfooter: string, textright: string, code: string, encoding: string, is2d: bool|int<0, 1>}>) of method pdf_tcpdflabel::write_file() should be compatible with parameter $arrayofrecords (Adherent|array<array{textleft: string, textheader: string, textfooter: string, textright: string, id: string, photo: string}>) of method CommonStickerGenerator::write_file()
phpstan / php-stan (8.2)
Process completed with exit code 1.
phan / Run phan
Process completed with exit code 1.
phan / Run phan
Process completed with exit code 1.
pre-commit / pre-commit
Cache save failed.
phan / Run phan: htdocs/core/modules/printsheet/doc/pdf_tcpdflabel.class.php#L261
pdf_tcpdflabel.class.php: PhanParamSignatureMismatch: Declaration of function write_file(array{textleft:string,textheader:string,textfooter:string,textright:string,code:string,encoding:string,is2d:bool|int}[] $arrayofrecords, \Translate $outputlangs, string $srctemplatepath, string $outputdir = '', string $filename = 'tmp_address_sheet.pdf') : int should be compatible with function write_file(\Adherent|array{textleft:string,textheader:string,textfooter:string,textright:string,id:string,photo:string}[] $arrayofrecords, \Translate $outputlangs, string $srctemplatepath, string $outputdir = '', string $filename = '') : int defined in htdocs/core/class/commonstickergenerator.class.php:141 (Expected array{textleft:string,textheader:string,textfooter:string,textright:string,code:string,encoding:string,is2d:bool|int}[] $arrayofrecords to have the same type as \Adherent|array{textleft:string,textheader:string,textfooter:string,textright:string,id:string,photo:string}[] $arrayofrecords or a supertype)

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
609 Bytes
phpstan-srcrt Expired
490 Bytes
precommit-logs
728 Bytes