Skip to content

Qual: Fix phan notices #1616

Qual: Fix phan notices

Qual: Fix phan notices #1616

Triggered via pull request January 16, 2025 18:35
Status Failure
Total duration 6m 14s
Artifacts 3

ci-on-pull_request.yml

on: pull_request
pre-commit  /  pre-commit
1m 56s
pre-commit / pre-commit
Matrix: phpstan / php-stan
gh-travis  /  gh-travis
gh-travis / gh-travis
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 6 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/core/customreports.php#L389
Variable $label might not be defined.
phpstan / php-stan (8.2): htdocs/core/customreports.php#L393
Variable $label might not be defined.
phpstan / php-stan (8.2)
Process completed with exit code 1.
pre-commit / pre-commit
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
pre-commit / pre-commit
Cache save failed.
phan / Run phan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phan / Run phan: htdocs/core/customreports.php#L381
customreports.php: PhanTypeMismatchDimFetchNullable: When fetching an array index from a value of type array{}|non-empty-array<mixed,mixed>|non-empty-associative-array<array{ClassPath:null}>|non-empty-associative-array<array{langs?:'bills'|'companies'|'contracts'|'facture'|'members',label:'Adherent'|'BOM'|'Contacts'|'ContractLines'|'Contracts'|'Invoices'|'MO'|'Orders'|'PredefinedInvoices'|'Proposals'|'Subscriptions'|'ThirdParties'|'Ticket',picto:'bill'|'bom'|'company'|'contact'|'contract'|'member'|'mrp'|'order'|'proposal'|'ticket',ObjectClassName:'Adherent'|'Bom'|'Commande'|'Contact'|'Contrat'|'ContratLigne'|'Facture'|'FactureRec'|'Mo'|'Propal'|'Societe'|'Subscription'|'Ticket',enabled:bool,ClassPath?:'/adherents/class/adherent.class.php'|'/adherents/class/subscription.class.php'|'/comm/propal/class/propal.class.php'|'/commande/class/commande.class.php'|'/compta/class/facturerec.class.php'|'/compta/facture/class/facture.class.php'|'/contact/class/contact.class.php'|'/contrat/class/contrat.class.php'|'/mrp/class/mo.class.php'|'/societe/class/societe.class.php'}>, found an array index of type ?''|?'0'|?'thirdparty'|?0|?0.0|?array{}|?false|?non-empty-string, but expected the index to be of the non-nullable type int|string
phan / Run phan: htdocs/core/customreports.php#L385
customreports.php: PhanTypeMismatchDimFetchNullable: When fetching an array index from a value of type array{}|non-empty-array<mixed,mixed>|non-empty-associative-array<array{ClassPath:null}>|non-empty-associative-array<array{langs?:'bills'|'companies'|'contracts'|'facture'|'members',label:'Adherent'|'BOM'|'Contacts'|'ContractLines'|'Contracts'|'Invoices'|'MO'|'Orders'|'PredefinedInvoices'|'Proposals'|'Subscriptions'|'ThirdParties'|'Ticket',picto:'bill'|'bom'|'company'|'contact'|'contract'|'member'|'mrp'|'order'|'proposal'|'ticket',ObjectClassName:'Adherent'|'Bom'|'Commande'|'Contact'|'Contrat'|'ContratLigne'|'Facture'|'FactureRec'|'Mo'|'Propal'|'Societe'|'Subscription'|'Ticket',enabled:bool,ClassPath?:'/adherents/class/adherent.class.php'|'/adherents/class/subscription.class.php'|'/comm/propal/class/propal.class.php'|'/commande/class/commande.class.php'|'/compta/class/facturerec.class.php'|'/compta/facture/class/facture.class.php'|'/contact/class/contact.class.php'|'/contrat/class/contrat.class.php'|'/mrp/class/mo.class.php'|'/societe/class/societe.class.php'}>, found an array index of type ?''|?'0'|?'thirdparty'|?0|?0.0|?array{}|?false|?non-empty-string, but expected the index to be of the non-nullable type int|string
phpstan / php-stan (8.2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
phan-srcrt
830 Bytes
phpstan-srcrt
322 Bytes
precommit-logs
584 Bytes