Qual: Fix phan notices #1618
ci-on-pull_request.yml
on: pull_request
pre-commit
/
pre-commit
1m 52s
Matrix: phpstan / php-stan
gh-travis
/
gh-travis
Annotations
2 errors and 6 warnings
phan / Run phan
Process completed with exit code 1.
|
phan / Run phan
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.
|
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
|
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#L395
customreports.php: PhanTypeMismatchArgumentNullableInternal: Argument 1 ($key) is $objecttype of type ?''|?'0'|?'thirdparty'|?0|?0.0|?array{}|?false|?non-empty-string but \array_key_exists() takes int|string (expected type to be non-nullable)
|
phan / Run phan:
htdocs/core/customreports.php#L396
customreports.php: PhanTypeMismatchDimFetchNullable: When fetching an array index from a value of type 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
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
phan-srcrt
|
895 Bytes |
|
phpstan-srcrt
|
190 Bytes |
|
precommit-logs
|
584 Bytes |
|