Skip to content

Qual: fix phan notices #8668

Qual: fix phan notices

Qual: fix phan notices #8668

Triggered via pull request October 12, 2024 01:29
Status Failure
Total duration 17m 42s
Artifacts 2

ci.yml

on: pull_request
pre-commit  /  pre-commit
1m 55s
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

12 errors and 3 warnings
phan / Run phan
Process completed with exit code 1.
phan / Run phan
Process completed with exit code 1.
phan / Run phan
Failed to CreateArtifact: Failed to make request after 5 attempts: Request timeout: /twirp/github.actions.results.api.v1.ArtifactService/CreateArtifact
phpstan / php-stan (8.2): htdocs/admin/mails.php#L1157
Property FormMail::$withfile (int<0, 1>|string) does not accept 2.
phpstan / php-stan (8.2): htdocs/admin/mails_emailing.php#L781
Property FormMail::$withfile (int<0, 1>|string) does not accept 2.
phpstan / php-stan (8.2): htdocs/admin/mails_passwordreset.php#L777
Property FormMail::$withfile (int<0, 1>|string) does not accept 2.
phpstan / php-stan (8.2): htdocs/admin/mails_ticket.php#L774
Property FormMail::$withfile (int<0, 1>|string) does not accept 2.
phpstan / php-stan (8.2): htdocs/core/class/html.formmail.class.php#L1038
Parameter #2 $substitutionarray of function make_substitutions expects array<string, string>, string given.
phpstan / php-stan (8.2): htdocs/core/tpl/card_presend.tpl.php#L392
Property FormMail::$withto (int<0, 1>|string) does not accept array.
phpstan / php-stan (8.2): htdocs/core/tpl/card_presend.tpl.php#L394
Property FormMail::$withtocc (int<0, 1>|string) does not accept array.
phpstan / php-stan (8.2): htdocs/core/tpl/card_presend.tpl.php#L397
Property FormMail::$withfile (int<0, 1>|string) does not accept 2.
phpstan / php-stan (8.2)
Process completed with exit code 1.
pre-commit / pre-commit
Cache save failed.
phan / Run phan: htdocs/core/tpl/card_presend.tpl.php#L392
card_presend.tpl.php: PhanTypeMismatchPropertyProbablyReal: Assigning $liste of type array{thirdparty?:string,member?:string,contact?:string}|non-empty-associative-array&lt;int,string&gt;|non-empty-associative-array&lt;string&gt; (real type array{thirdparty?:string,member?:string,contact?:string}|non-empty-associative-array&lt;int,?''&gt;|non-empty-associative-array&lt;int,?'0'&gt;|non-empty-associative-array&lt;int,?0.0&gt;|non-empty-associative-array&lt;int,?0&gt;|non-empty-associative-array&lt;int,?array{}&gt;|non-empty-associative-array&lt;int,?false&gt;|non-empty-associative-array&lt;int,string&gt;|non-empty-associative-array&lt;mixed&gt;) to property but \FormMail-&gt;withto is int|string (no real type) (the inferred real assigned type has nothing in common with the declared phpdoc property type)
phan / Run phan: htdocs/core/tpl/card_presend.tpl.php#L394
card_presend.tpl.php: PhanTypeMismatchPropertyProbablyReal: Assigning $liste of type array{thirdparty?:string,member?:string,contact?:string}|non-empty-associative-array&lt;int,string&gt;|non-empty-associative-array&lt;string&gt; (real type array{thirdparty?:string,member?:string,contact?:string}|non-empty-associative-array&lt;int,?''&gt;|non-empty-associative-array&lt;int,?'0'&gt;|non-empty-associative-array&lt;int,?0.0&gt;|non-empty-associative-array&lt;int,?0&gt;|non-empty-associative-array&lt;int,?array{}&gt;|non-empty-associative-array&lt;int,?false&gt;|non-empty-associative-array&lt;int,string&gt;|non-empty-associative-array&lt;mixed&gt;) to property but \FormMail-&gt;withtocc is int|string (no real type) (the inferred real assigned type has nothing in common with the declared phpdoc property type)

Artifacts

Produced during runtime
Name Size
phpstan-srcrt
531 Bytes
precommit-logs
584 Bytes