Skip to content

QUAL Ignore some phan annotations #87

QUAL Ignore some phan annotations

QUAL Ignore some phan annotations #87

Triggered via push December 6, 2023 15:18
Status Failure
Total duration 3m 25s
Artifacts 1
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

phan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 10 warnings, and 3 notices
Run phan
Process completed with exit code 1.
Run phan: htdocs/admin/multicurrency.php#L124
Call with 0 arg(s) to \MultiCurrency::delete(\User $user, bool $trigger = true) which requires 1 arg(s) defined at htdocs/multicurrency/class/multicurrency.class.php:339
Run phan: htdocs/bom/class/api_boms.class.php#L550
Return type 'void' means the absence of a return value starting in PHP 7.1. In PHP 7.0, void refers to a class/interface with the name 'void'
Run phan: htdocs/categories/class/api_categories.class.php#L789
Cannot access protected method \Members::_cleanObjectDatas defined at htdocs/adherents/class/api_members.class.php:429
Run phan: htdocs/compta/sociales/card.php#L88
Reference to undeclared class constant \ChargeSociales::STATUS_DRAFT
Run phan: htdocs/compta/tva/card.php#L87
Reference to undeclared class constant \Tva::STATUS_DRAFT
Run phan: htdocs/core/actions_massactions.inc.php#L1091
Call with 0 arg(s) to \Facture::delete(\User $user, int $notrigger = 0, int $idwarehouse = unknown) which requires 1 arg(s) defined at htdocs/compta/facture/class/facture.class.php:2747
Run phan: htdocs/core/class/html.formmargin.class.php#L102
Reference to undeclared class constant \CommonObject::TYPE_CREDIT_NOTE
Run phan: htdocs/core/class/html.formmargin.class.php#L104
Reference to undeclared class constant \CommonObject::TYPE_SITUATION
Run phan: htdocs/core/class/html.formmargin.class.php#L105
Reference to undeclared class constant \CommonObject::TYPE_CREDIT_NOTE
Run phan: htdocs/core/lib/pdf.lib.php#L814
Cannot access protected method \TCPDF::_out defined at htdocs/includes/tecnickcom/tcpdf/tcpdf.php:10521
Run phan: htdocs/adherents/class/adherent.class.php#L1831
Suspicious order for argument label - This is getting passed to parameter #24 (string $label) of \Facture::addline(string $desc, float $pu_ht, float $qty, float $txtva, float|int $txlocaltax1 = 0, float|int $txlocaltax2 = 0, int $fk_product = 0, float|int $remise_percent = 0, int|string $date_start = '', int|string $date_end = '', int $ventil = 0, int $info_bits = 0, int|string $fk_remise_except = '', string $price_base_type = 'HT', float|int $pu_ttc = 0, int $type = 0, int $rang = unknown, int $special_code = 0, string $origin = '', int $origin_id = 0, int $fk_parent_line = 0, int $fk_fournprice = null, int $pa_ht = 0, string $label = '', array|int $array_options = 0, int $situation_percent = 100, int $fk_prev_id = 0, string $fk_unit = null, float|int $pu_ht_devise = 0, string $ref_ext = '', int $noupdateafterinsertline = 0) defined at htdocs/compta/facture/class/facture.class.php:3777
Run phan: htdocs/admin/contract.php#L162
Suspicious order for argument entity - This is getting passed to parameter #7 (int $entity) of \dolibarr_set_const(\DoliDB $db, string $name, string $value, string $type = 'chaine', int $visible = 0, string $note = '', int $entity = 1) defined at htdocs/core/lib/admin.lib.php:639
Run phan: htdocs/api/class/api_access.class.php#L35
Possibly zero references to use statement for classlike/namespace iUseAuthentication (\Luracast\Restler\iUseAuthentication)
Run phan: htdocs/api/class/api_documents.class.php#L22
Possibly zero references to use statement for classlike/namespace UploadFormat (\Luracast\Restler\Format\UploadFormat)
Run phan: htdocs/api/class/api_documents.class.php#L500
Both sides of the binary operator && are the same: !DolibarrApiAccess::$user->rights->expensereport->read
Run phan: htdocs/api/class/api_documents.class.php#L514
Both sides of the binary operator && are the same: !DolibarrApiAccess::$user->hasRight('knowledgemanagement', 'knowledgerecord', 'read')
Run phan: htdocs/commande/card.php#L1979
Suspicious order for arguments named incoterm_id and incoterm_location - These are being passed to parameters #1 (string $selected) and #2 (string $location_incoterms) of \Form::select_incoterms(string $selected = '', string $location_incoterms = '', string $page = '', string $htmlname = 'incoterm_id', string $htmloption = '', int $forcecombo = 1, array $events = [], array|int $disableautocomplete = 0) defined at htdocs/core/class/html.form.class.php:1068
Run phan: htdocs/compta/bank/transfer.php#L195
Suspicious order for argument mesgs - This is getting passed to parameter #2 (array|null $mesgs) of \setEventMessages(string $mesg, ?array $mesgs, string $style = 'mesgs', string $messagekey = '', int $noduplicate = 0) defined at htdocs/core/lib/functions.lib.php:9027
Run phan: htdocs/compta/facture/card-rec.php#L1091
Suspicious order for arguments named list and FACTURE_ADDON_PDF - These are being passed to parameters #2 (array $array) and #3 (string|string[] $id) of \Form::selectarray(string $htmlname, array $array, string|string[] $id = '', int|string $show_empty = 0, int $key_in_label = 0, int $value_as_key = 0, string $moreparam = '', int $translate = 0, int $maxlen = 0, int $disabled = 0, string $sort = '', string $morecss = 'minwidth75', int $addjscombo = 1, string $moreparamonempty = '', int $disablebademail = 0, int $nohtmlescape = 0) defined at htdocs/core/class/html.form.class.php:8330
Run phan: htdocs/compta/facture/class/api_invoices.class.php#L1425
Invalid operator: unary operand of - is string (expected number)
Run phan: htdocs/compta/facture/card-rec.php#L1009
Call with 6 arg(s) to \Form::getSelectInvoiceSubtype(int $selected = 0, string $htmlname = 'subtypeid', int $addempty = 0, int $noinfoadmin = 0, string $morecss = '') which only takes 5 arg(s) defined at htdocs/core/class/html.form.class.php:10882
Run phan: htdocs/product/admin/product_tools.php#L96
Unused result of a string literal " AND default_vat_code = IS NULL" near this line
Run phan: htdocs/product/admin/product_tools.php#L198
Unused result of a string literal " AND default_vat_code = IS NULL" near this line

Artifacts

Produced during runtime
Name Size
phan-srcrt Expired
21.4 KB