dolibarr/dev/tools/phan/baseline.txt

208 lines
17 KiB
Text
Raw Normal View History

<?php
/**
* This is an automatically generated baseline for Phan issues.
* When Phan is invoked with --load-baseline=path/to/baseline.php,
* The pre-existing issues listed in this file won't be emitted.
*
* This file can be updated by invoking Phan with --save-baseline=path/to/baseline.php
* (can be combined with --load-baseline)
*/
return [
// # Issue statistics:
// PhanUndeclaredProperty : 340+ occurrences
// PhanTypeMismatchArgument : 25+ occurrences
// PhanUndeclaredGlobalVariable : 20+ occurrences
// PhanTypeMismatchProperty : 15+ occurrences
2026-02-09 22:49:44 +00:00
// PhanTypeInvalidDimOffset : 10+ occurrences
// PhanTypeMismatchDimFetch : 10+ occurrences
// PhanTypeArraySuspiciousNull : 5 occurrences
// PhanUndeclaredMethod : 5 occurrences
// PhanTypeExpectedObjectPropAccess : 4 occurrences
// PhanPluginUndeclaredVariableIsset : 2 occurrences
// PhanTypeMismatchArgumentNullable : 2 occurrences
// PhanTypeMismatchArgumentProbablyReal : 2 occurrences
// PhanParamTooMany : 1 occurrence
// PhanPluginSuspiciousParamPosition : 1 occurrence
2024-12-30 21:00:30 +00:00
// PhanTypeExpectedObjectPropAccessButGotNull : 1 occurrence
// PhanTypeMismatchReturn : 1 occurrence
// Currently, file_suppressions and directory_suppressions are the only supported suppressions
'file_suppressions' => [
Qual: Fix phan notices (#37837) * Qual: Ignore PhanUndeclaredProperty for specific lines * Fix: Update payment mode reference in PDF generation # Fix: Update payment mode reference in PDF generation The payment mode reference in the PDF generation was incorrectly using `type_payment_code`, an unknown property in Salary. It has been updated to use `type_code` as used elsewhere for the same purpose. * Qual: Typing of several DDLUpdateField field_desc items made optional # Qual: Typing of several DDLUpdateField field_desc items made optional Not all fields are required for updateing the DB typing, and ExtraFields was not providing all of them. * Qual: Update typing for phan notices # Qual: Update typing for phan notices Fix typing mismatches * Qual: Fix extrafields typing in objectline_create.tpl.php # Qual: Fix extrafields typing in objectline_create.tpl.php - Update typing for phan * Qual: Fix typing for Phan & re-use encrypted password when requested # Qual: Fix typing for Phan & re-use encrypted password when requested - Added a cast to string for the crypted password to hint phan that it returns the string version (not the array) - Added a check to ensure the password is not already crypted before generating a new password. - Updated the type hints for parameters `$changelater`, `$notrigger`, `$nosyncmember`, and `$passwordalreadycrypted` to include the range of possible values. - Updated the return type hint for the `setPassword` method to include the range of possible error values. * Qual: Fix file argument to showPreview() calls # Qual: Fix file argument to showPreview() calls Fix argument type mismatches by adjusting '$file' arguments in showPreview calls. * Qual: Update login_c type to string # Qual: Update login_c type to string login_c is username from db. * Qual: Update type hints in treeview.lib.php # Qual: Update type hints in treeview.lib.php Update type hints for static analysis. * Qual: Add null check for objecttmp in selectForFormsList # Qual: Add null check for objecttmp in selectForFormsList Add null check for objecttmp before calling selectForFormsList to ensure static analysis * Qual: Fix phan through null check on object argument # Qual: Fix phan through null check on object argument - Do null check to avoid null parameter (fix phan); - Set more specific type for argument. * Qual: Change type hint of $remise_percent parameter to float # Qual: Change type hint of $remise_percent parameter to float DB type is float, so correct arg type to fix phan notice. * Qual: Ignore some phan notices The descriptions for the linkedObjectsFullLoaded and oldcopy properties have been updated to avoid modification by code formatting tools * Qual: Update phan baseline * Qual: Cast remise_percent to float to match typing requirements * Qual: Cast label to string to help static analysis * Qual: Update date_cancel property type and assignment To fix phan notices: - The date_cancel property type was changed from 'int|string' to 'int|""' to match return type from jdate(). - Additionally, the assignment of date_cancel was updated to use dol_now() instead of $this->db->idate(dol_now()). * Qual: Provide the expected user_id instead of the User object Changed the user fetch logic from using `user_author` to `user_creation_id` * Qual: Correct bool argument from 0 to false ($fill) * Qual/Fix: Correct date converted to dol_print_date * Qual: Fix argument type for addline() * Qual: Update Phan baseline.txt
2026-04-13 10:50:23 +00:00
'htdocs/comm/action/index.php' => ['PhanTypeMismatchProperty'],
'htdocs/comm/action/pertype.php' => ['PhanTypeExpectedObjectPropAccess'],
'htdocs/comm/action/peruser.php' => ['PhanTypeMismatchArgument'],
'htdocs/comm/mailing/index.php' => ['PhanUndeclaredProperty'],
'htdocs/comm/mailing/targetemailing.php' => ['PhanUndeclaredProperty'],
'htdocs/comm/propal/list.php' => ['PhanUndeclaredProperty'],
2025-03-04 17:02:29 +00:00
'htdocs/commande/class/commande.class.php' => ['PhanUndeclaredProperty'],
'htdocs/commande/list.php' => ['PhanUndeclaredProperty'],
'htdocs/commande/list_det.php' => ['PhanTypeInvalidDimOffset'],
'htdocs/compta/bank/class/account.class.php' => ['PhanUndeclaredProperty'],
2025-02-13 17:32:41 +00:00
'htdocs/compta/bank/various_payment/card.php' => ['PhanUndeclaredProperty'],
'htdocs/compta/bank/various_payment/document.php' => ['PhanUndeclaredProperty'],
2025-03-05 18:38:05 +00:00
'htdocs/compta/facture/class/facture-rec.class.php' => ['PhanUndeclaredProperty'],
'htdocs/compta/facture/class/facture.class.php' => ['PhanUndeclaredProperty'],
'htdocs/compta/paiement/card.php' => ['PhanUndeclaredProperty'],
'htdocs/compta/sociales/card.php' => ['PhanUndeclaredProperty'],
'htdocs/compta/tva/class/paymentvat.class.php' => ['PhanUndeclaredProperty'],
'htdocs/compta/tva/clients.php' => ['PhanTypeArraySuspiciousNull', 'PhanTypeInvalidDimOffset'],
'htdocs/core/actions_addupdatedelete.inc.php' => ['PhanUndeclaredProperty'],
'htdocs/core/actions_massactions.inc.php' => ['PhanUndeclaredProperty'],
'htdocs/core/actions_sendmails.inc.php' => ['PhanUndeclaredProperty'],
'htdocs/core/ajax/ajaxdirtree.php' => ['PhanTypeMismatchArgument'],
'htdocs/core/class/CMailFile.class.php' => ['PhanTypeMismatchArgument'],
'htdocs/core/class/canvas.class.php' => ['PhanUndeclaredMethod'],
'htdocs/core/class/cgenericdic.class.php' => ['PhanUndeclaredProperty'],
Qual: Fix phan notices (#37837) * Qual: Ignore PhanUndeclaredProperty for specific lines * Fix: Update payment mode reference in PDF generation # Fix: Update payment mode reference in PDF generation The payment mode reference in the PDF generation was incorrectly using `type_payment_code`, an unknown property in Salary. It has been updated to use `type_code` as used elsewhere for the same purpose. * Qual: Typing of several DDLUpdateField field_desc items made optional # Qual: Typing of several DDLUpdateField field_desc items made optional Not all fields are required for updateing the DB typing, and ExtraFields was not providing all of them. * Qual: Update typing for phan notices # Qual: Update typing for phan notices Fix typing mismatches * Qual: Fix extrafields typing in objectline_create.tpl.php # Qual: Fix extrafields typing in objectline_create.tpl.php - Update typing for phan * Qual: Fix typing for Phan & re-use encrypted password when requested # Qual: Fix typing for Phan & re-use encrypted password when requested - Added a cast to string for the crypted password to hint phan that it returns the string version (not the array) - Added a check to ensure the password is not already crypted before generating a new password. - Updated the type hints for parameters `$changelater`, `$notrigger`, `$nosyncmember`, and `$passwordalreadycrypted` to include the range of possible values. - Updated the return type hint for the `setPassword` method to include the range of possible error values. * Qual: Fix file argument to showPreview() calls # Qual: Fix file argument to showPreview() calls Fix argument type mismatches by adjusting '$file' arguments in showPreview calls. * Qual: Update login_c type to string # Qual: Update login_c type to string login_c is username from db. * Qual: Update type hints in treeview.lib.php # Qual: Update type hints in treeview.lib.php Update type hints for static analysis. * Qual: Add null check for objecttmp in selectForFormsList # Qual: Add null check for objecttmp in selectForFormsList Add null check for objecttmp before calling selectForFormsList to ensure static analysis * Qual: Fix phan through null check on object argument # Qual: Fix phan through null check on object argument - Do null check to avoid null parameter (fix phan); - Set more specific type for argument. * Qual: Change type hint of $remise_percent parameter to float # Qual: Change type hint of $remise_percent parameter to float DB type is float, so correct arg type to fix phan notice. * Qual: Ignore some phan notices The descriptions for the linkedObjectsFullLoaded and oldcopy properties have been updated to avoid modification by code formatting tools * Qual: Update phan baseline * Qual: Cast remise_percent to float to match typing requirements * Qual: Cast label to string to help static analysis * Qual: Update date_cancel property type and assignment To fix phan notices: - The date_cancel property type was changed from 'int|string' to 'int|""' to match return type from jdate(). - Additionally, the assignment of date_cancel was updated to use dol_now() instead of $this->db->idate(dol_now()). * Qual: Provide the expected user_id instead of the User object Changed the user fetch logic from using `user_author` to `user_creation_id` * Qual: Correct bool argument from 0 to false ($fill) * Qual/Fix: Correct date converted to dol_print_date * Qual: Fix argument type for addline() * Qual: Update Phan baseline.txt
2026-04-13 10:50:23 +00:00
'htdocs/core/class/commonobject.class.php' => ['PhanUndeclaredProperty'],
'htdocs/core/class/commonpeople.class.php' => ['PhanUndeclaredProperty'],
'htdocs/core/class/conf.class.php' => ['PhanTypeMismatchProperty'],
'htdocs/core/class/ctyperesource.class.php' => ['PhanUndeclaredProperty'],
'htdocs/core/class/dolgraph.class.php' => ['PhanUndeclaredProperty'],
'htdocs/core/class/emailsenderprofile.class.php' => ['PhanUndeclaredProperty'],
'htdocs/core/class/html.form.class.php' => ['PhanParamTooMany', 'PhanPluginSuspiciousParamPosition', 'PhanTypeMismatchArgument'],
'htdocs/core/class/html.formcompany.class.php' => ['PhanUndeclaredProperty'],
Qual: Fix phan notices (#37837) * Qual: Ignore PhanUndeclaredProperty for specific lines * Fix: Update payment mode reference in PDF generation # Fix: Update payment mode reference in PDF generation The payment mode reference in the PDF generation was incorrectly using `type_payment_code`, an unknown property in Salary. It has been updated to use `type_code` as used elsewhere for the same purpose. * Qual: Typing of several DDLUpdateField field_desc items made optional # Qual: Typing of several DDLUpdateField field_desc items made optional Not all fields are required for updateing the DB typing, and ExtraFields was not providing all of them. * Qual: Update typing for phan notices # Qual: Update typing for phan notices Fix typing mismatches * Qual: Fix extrafields typing in objectline_create.tpl.php # Qual: Fix extrafields typing in objectline_create.tpl.php - Update typing for phan * Qual: Fix typing for Phan & re-use encrypted password when requested # Qual: Fix typing for Phan & re-use encrypted password when requested - Added a cast to string for the crypted password to hint phan that it returns the string version (not the array) - Added a check to ensure the password is not already crypted before generating a new password. - Updated the type hints for parameters `$changelater`, `$notrigger`, `$nosyncmember`, and `$passwordalreadycrypted` to include the range of possible values. - Updated the return type hint for the `setPassword` method to include the range of possible error values. * Qual: Fix file argument to showPreview() calls # Qual: Fix file argument to showPreview() calls Fix argument type mismatches by adjusting '$file' arguments in showPreview calls. * Qual: Update login_c type to string # Qual: Update login_c type to string login_c is username from db. * Qual: Update type hints in treeview.lib.php # Qual: Update type hints in treeview.lib.php Update type hints for static analysis. * Qual: Add null check for objecttmp in selectForFormsList # Qual: Add null check for objecttmp in selectForFormsList Add null check for objecttmp before calling selectForFormsList to ensure static analysis * Qual: Fix phan through null check on object argument # Qual: Fix phan through null check on object argument - Do null check to avoid null parameter (fix phan); - Set more specific type for argument. * Qual: Change type hint of $remise_percent parameter to float # Qual: Change type hint of $remise_percent parameter to float DB type is float, so correct arg type to fix phan notice. * Qual: Ignore some phan notices The descriptions for the linkedObjectsFullLoaded and oldcopy properties have been updated to avoid modification by code formatting tools * Qual: Update phan baseline * Qual: Cast remise_percent to float to match typing requirements * Qual: Cast label to string to help static analysis * Qual: Update date_cancel property type and assignment To fix phan notices: - The date_cancel property type was changed from 'int|string' to 'int|""' to match return type from jdate(). - Additionally, the assignment of date_cancel was updated to use dol_now() instead of $this->db->idate(dol_now()). * Qual: Provide the expected user_id instead of the User object Changed the user fetch logic from using `user_author` to `user_creation_id` * Qual: Correct bool argument from 0 to false ($fill) * Qual/Fix: Correct date converted to dol_print_date * Qual: Fix argument type for addline() * Qual: Update Phan baseline.txt
2026-04-13 10:50:23 +00:00
'htdocs/core/class/html.formmail.class.php' => ['PhanUndeclaredProperty'],
'htdocs/core/class/timespent.class.php' => ['PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
'htdocs/core/lib/admin.lib.php' => ['PhanUndeclaredProperty'],
'htdocs/core/lib/files.lib.php' => ['PhanUndeclaredProperty'],
'htdocs/core/lib/functions2.lib.php' => ['PhanUndeclaredProperty'],
'htdocs/core/lib/pdf.lib.php' => ['PhanUndeclaredProperty'],
'htdocs/core/lib/product.lib.php' => ['PhanTypeMismatchArgument'],
'htdocs/core/lib/project.lib.php' => ['PhanUndeclaredProperty'],
'htdocs/core/lib/xcal.lib.php' => ['PhanUndeclaredProperty'],
'htdocs/core/menus/standard/auguria.lib.php' => ['PhanTypeMismatchArgument'],
2024-12-30 21:00:30 +00:00
'htdocs/core/modules/asset/mod_asset_advanced.php' => ['PhanUndeclaredProperty'],
'htdocs/core/modules/bom/mod_bom_advanced.php' => ['PhanTypeMismatchArgument', 'PhanUndeclaredProperty'],
'htdocs/core/modules/cheque/modules_chequereceipts.php' => ['PhanTypeMismatchArgument'],
2026-02-09 22:49:44 +00:00
'htdocs/core/modules/commande/doc/pdf_einstein.modules.php' => ['PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
'htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
2024-12-30 21:00:30 +00:00
'htdocs/core/modules/delivery/mod_delivery_saphir.php' => ['PhanUndeclaredProperty'],
'htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php' => ['PhanTypeMismatchArgument'],
'htdocs/core/modules/expensereport/doc/pdf_standard_expensereport.modules.php' => ['PhanUndeclaredProperty'],
2026-02-09 22:49:44 +00:00
'htdocs/core/modules/facture/doc/pdf_octopus.modules.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchArgumentNullable', 'PhanUndeclaredProperty'],
'htdocs/core/modules/holiday/mod_holiday_immaculate.php' => ['PhanTypeMismatchArgument'],
2024-12-30 21:00:30 +00:00
'htdocs/core/modules/hrm/mod_evaluation_advanced.php' => ['PhanUndeclaredProperty'],
'htdocs/core/modules/member/modules_cards.php' => ['PhanTypeMismatchArgument'],
2025-02-06 21:16:48 +00:00
'htdocs/core/modules/mrp/doc/pdf_vinci.modules.php' => ['PhanUndeclaredProperty'],
2024-12-30 21:00:30 +00:00
'htdocs/core/modules/mrp/mod_mo_advanced.php' => ['PhanUndeclaredProperty'],
'htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php' => ['PhanUndeclaredProperty'],
2026-02-09 22:49:44 +00:00
'htdocs/core/modules/propale/doc/pdf_azur.modules.php' => ['PhanUndeclaredProperty'],
'htdocs/core/modules/propale/doc/pdf_cyan.modules.php' => ['PhanUndeclaredProperty'],
'htdocs/core/modules/reception/doc/pdf_squille.modules.php' => ['PhanUndeclaredProperty'],
2025-02-10 17:50:16 +00:00
'htdocs/core/modules/stocktransfer/doc/pdf_eagle.modules.php' => ['PhanUndeclaredProperty'],
2024-12-30 21:00:30 +00:00
'htdocs/core/modules/stocktransfer/mod_stocktransfer_advanced.php' => ['PhanUndeclaredProperty'],
2026-02-09 22:49:44 +00:00
'htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php' => ['PhanTypeMismatchProperty'],
'htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php' => ['PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
'htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php' => ['PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
'htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php' => ['PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
'htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php' => ['PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
2024-12-30 21:00:30 +00:00
'htdocs/core/modules/workstation/mod_workstation_advanced.php' => ['PhanUndeclaredProperty'],
'htdocs/core/multicompany_page.php' => ['PhanTypeMismatchArgument'],
'htdocs/core/tpl/massactions_pre.tpl.php' => ['PhanTypeMismatchArgumentNullable', 'PhanUndeclaredProperty'],
'htdocs/core/tpl/objectline_view.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/core/tpl/passwordreset.tpl.php' => ['PhanUndeclaredGlobalVariable'],
'htdocs/core/tpl/resource_view.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/delivery/class/delivery.class.php' => ['PhanUndeclaredProperty'],
'htdocs/emailcollector/class/emailcollector.class.php' => ['PhanUndeclaredProperty'],
'htdocs/eventorganization/class/conferenceorboothattendee.class.php' => ['PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
'htdocs/expedition/card.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
'htdocs/expedition/class/expedition.class.php' => ['PhanUndeclaredProperty'],
'htdocs/expensereport/card.php' => ['PhanUndeclaredProperty'],
'htdocs/expensereport/class/expensereport.class.php' => ['PhanTypeMismatchArgument'],
'htdocs/expensereport/payment/info.php' => ['PhanUndeclaredGlobalVariable'],
2025-03-02 18:19:22 +00:00
'htdocs/fichinter/class/api_interventions.class.php' => ['PhanUndeclaredProperty'],
'htdocs/fichinter/class/fichinterrec.class.php' => ['PhanUndeclaredProperty'],
'htdocs/fourn/class/fournisseur.commande.class.php' => ['PhanUndeclaredProperty'],
'htdocs/fourn/commande/card.php' => ['PhanUndeclaredProperty'],
'htdocs/fourn/facture/card-rec.php' => ['PhanUndeclaredProperty'],
'htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/holiday/card_group.php' => ['PhanTypeMismatchArgument'],
'htdocs/holiday/list.php' => ['PhanUndeclaredGlobalVariable'],
'htdocs/hrm/class/evaluation.class.php' => ['PhanUndeclaredProperty'],
'htdocs/hrm/class/job.class.php' => ['PhanUndeclaredProperty'],
'htdocs/hrm/class/position.class.php' => ['PhanUndeclaredProperty'],
'htdocs/hrm/class/skill.class.php' => ['PhanUndeclaredProperty'],
'htdocs/hrm/class/skilldet.class.php' => ['PhanUndeclaredProperty'],
'htdocs/hrm/class/skillrank.class.php' => ['PhanUndeclaredProperty'],
'htdocs/hrm/core/tpl/objectline_view.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/hrm/evaluation_card.php' => ['PhanTypeMismatchArgument'],
'htdocs/hrm/job_card.php' => ['PhanUndeclaredGlobalVariable'],
'htdocs/hrm/skill_card.php' => ['PhanTypeExpectedObjectPropAccess', 'PhanUndeclaredProperty'],
2025-02-03 14:17:58 +00:00
'htdocs/imports/import.php' => ['PhanTypeMismatchArgument'],
'htdocs/intracommreport/card.php' => ['PhanUndeclaredGlobalVariable'],
2025-02-04 01:01:46 +00:00
'htdocs/knowledgemanagement/class/knowledgerecord.class.php' => ['PhanUndeclaredProperty'],
'htdocs/loan/class/paymentloan.class.php' => ['PhanTypeMismatchArgument'],
2025-02-04 01:01:46 +00:00
'htdocs/loan/document.php' => ['PhanUndeclaredProperty'],
'htdocs/loan/note.php' => ['PhanUndeclaredProperty'],
'htdocs/loan/payment/payment.php' => ['PhanUndeclaredProperty'],
2025-02-06 21:16:48 +00:00
'htdocs/mrp/tpl/linkedobjectblock.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/partnership/class/partnership.class.php' => ['PhanUndeclaredProperty'],
'htdocs/partnership/core/modules/partnership/mod_partnership_advanced.php' => ['PhanUndeclaredProperty'],
'htdocs/partnership/partnership_card.php' => ['PhanUndeclaredGlobalVariable'],
2025-02-08 13:38:02 +00:00
'htdocs/partnership/partnership_list.php' => ['PhanUndeclaredProperty'],
2025-03-03 13:23:57 +00:00
'htdocs/product/class/api_products.class.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchReturn', 'PhanUndeclaredProperty'],
'htdocs/product/class/html.formproduct.class.php' => ['PhanUndeclaredProperty'],
'htdocs/product/class/productfournisseurprice.class.php' => ['PhanUndeclaredMethod', 'PhanUndeclaredProperty'],
'htdocs/product/inventory/class/inventory.class.php' => ['PhanUndeclaredProperty'],
2025-02-08 20:53:48 +00:00
'htdocs/product/price.php' => ['PhanUndeclaredProperty'],
'htdocs/product/reassort.php' => ['PhanTypeExpectedObjectPropAccessButGotNull'],
2025-02-10 10:15:08 +00:00
'htdocs/product/stock/info.php' => ['PhanUndeclaredProperty'],
'htdocs/product/stock/list.php' => ['PhanUndeclaredProperty'],
'htdocs/product/stock/movement_list.php' => ['PhanPluginUndeclaredVariableIsset', 'PhanUndeclaredProperty'],
2025-02-10 17:50:16 +00:00
'htdocs/product/stock/productlot_card.php' => ['PhanUndeclaredProperty'],
'htdocs/product/stock/stats/commande_fournisseur.php' => ['PhanUndeclaredProperty'],
'htdocs/product/stock/stats/expedition.php' => ['PhanUndeclaredProperty'],
'htdocs/product/stock/stats/mo.php' => ['PhanUndeclaredProperty'],
'htdocs/product/stock/stats/reception.php' => ['PhanUndeclaredProperty'],
'htdocs/product/stock/stocktransfer/class/stocktransferline.class.php' => ['PhanUndeclaredProperty'],
2025-02-08 13:38:02 +00:00
'htdocs/product/stock/tpl/stockcorrection.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/projet/admin/project.php' => ['PhanTypeMismatchArgumentProbablyReal'],
2025-02-24 16:23:12 +00:00
'htdocs/projet/tasks.php' => ['PhanTypeMismatchArgument'],
'htdocs/projet/tasks/time.php' => ['PhanTypeInvalidDimOffset', 'PhanUndeclaredProperty'],
'htdocs/projet/tasks/tpl/linkedobjectblock.tpl.php' => ['PhanUndeclaredProperty'],
2025-02-11 21:06:34 +00:00
'htdocs/public/payment/newpayment.php' => ['PhanUndeclaredProperty'],
2025-02-11 23:52:24 +00:00
'htdocs/public/project/suggestbooth.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
'htdocs/public/project/suggestconference.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
'htdocs/public/project/viewandvote.php' => ['PhanUndeclaredGlobalVariable'],
'htdocs/public/recruitment/view.php' => ['PhanUndeclaredGlobalVariable'],
'htdocs/public/webportal/tpl/menu.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/reception/card.php' => ['PhanUndeclaredProperty'],
'htdocs/reception/class/reception.class.php' => ['PhanUndeclaredProperty'],
'htdocs/reception/list.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/class/recruitmentcandidature.class.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/class/recruitmentjobposition.class.php' => ['PhanUndeclaredProperty'],
2025-02-13 17:32:41 +00:00
'htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/core/modules/recruitment/mod_recruitmentcandidature_advanced.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/core/modules/recruitment/mod_recruitmentjobposition_advanced.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/recruitmentcandidature_card.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/recruitmentcandidature_list.php' => ['PhanUndeclaredProperty'],
2025-02-13 17:32:41 +00:00
'htdocs/recruitment/recruitmentjobposition_agenda.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/recruitmentjobposition_applications.php' => ['PhanUndeclaredProperty'],
2025-06-23 16:17:22 +00:00
'htdocs/recruitment/recruitmentjobposition_card.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/recruitmentjobposition_document.php' => ['PhanUndeclaredProperty'],
'htdocs/recruitment/recruitmentjobposition_note.php' => ['PhanUndeclaredProperty'],
'htdocs/salaries/payment_salary.php' => ['PhanUndeclaredProperty'],
'htdocs/salaries/virement_request.php' => ['PhanUndeclaredProperty'],
2025-02-15 16:44:33 +00:00
'htdocs/societe/ajax/company.php' => ['PhanUndeclaredProperty'],
'htdocs/societe/class/societe.class.php' => ['PhanTypeMismatchProperty'],
2026-02-08 14:28:19 +00:00
'htdocs/societe/paymentmodes.php' => ['PhanTypeMismatchArgument'],
'htdocs/supplier_proposal/card.php' => ['PhanUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
2025-03-03 13:23:57 +00:00
'htdocs/supplier_proposal/class/api_supplier_proposals.class.php' => ['PhanUndeclaredProperty'],
'htdocs/supplier_proposal/class/supplier_proposal.class.php' => ['PhanUndeclaredProperty'],
2026-02-08 14:28:19 +00:00
'htdocs/takepos/invoice.php' => ['PhanUndeclaredGlobalVariable'],
2025-02-18 20:48:21 +00:00
'htdocs/takepos/split.php' => ['PhanPluginUndeclaredVariableIsset'],
'htdocs/ticket/card.php' => ['PhanUndeclaredProperty'],
'htdocs/ticket/class/actions_ticket.class.php' => ['PhanUndeclaredProperty'],
'htdocs/ticket/class/cticketcategory.class.php' => ['PhanUndeclaredProperty'],
Qual: Fix phan notices (#37837) * Qual: Ignore PhanUndeclaredProperty for specific lines * Fix: Update payment mode reference in PDF generation # Fix: Update payment mode reference in PDF generation The payment mode reference in the PDF generation was incorrectly using `type_payment_code`, an unknown property in Salary. It has been updated to use `type_code` as used elsewhere for the same purpose. * Qual: Typing of several DDLUpdateField field_desc items made optional # Qual: Typing of several DDLUpdateField field_desc items made optional Not all fields are required for updateing the DB typing, and ExtraFields was not providing all of them. * Qual: Update typing for phan notices # Qual: Update typing for phan notices Fix typing mismatches * Qual: Fix extrafields typing in objectline_create.tpl.php # Qual: Fix extrafields typing in objectline_create.tpl.php - Update typing for phan * Qual: Fix typing for Phan & re-use encrypted password when requested # Qual: Fix typing for Phan & re-use encrypted password when requested - Added a cast to string for the crypted password to hint phan that it returns the string version (not the array) - Added a check to ensure the password is not already crypted before generating a new password. - Updated the type hints for parameters `$changelater`, `$notrigger`, `$nosyncmember`, and `$passwordalreadycrypted` to include the range of possible values. - Updated the return type hint for the `setPassword` method to include the range of possible error values. * Qual: Fix file argument to showPreview() calls # Qual: Fix file argument to showPreview() calls Fix argument type mismatches by adjusting '$file' arguments in showPreview calls. * Qual: Update login_c type to string # Qual: Update login_c type to string login_c is username from db. * Qual: Update type hints in treeview.lib.php # Qual: Update type hints in treeview.lib.php Update type hints for static analysis. * Qual: Add null check for objecttmp in selectForFormsList # Qual: Add null check for objecttmp in selectForFormsList Add null check for objecttmp before calling selectForFormsList to ensure static analysis * Qual: Fix phan through null check on object argument # Qual: Fix phan through null check on object argument - Do null check to avoid null parameter (fix phan); - Set more specific type for argument. * Qual: Change type hint of $remise_percent parameter to float # Qual: Change type hint of $remise_percent parameter to float DB type is float, so correct arg type to fix phan notice. * Qual: Ignore some phan notices The descriptions for the linkedObjectsFullLoaded and oldcopy properties have been updated to avoid modification by code formatting tools * Qual: Update phan baseline * Qual: Cast remise_percent to float to match typing requirements * Qual: Cast label to string to help static analysis * Qual: Update date_cancel property type and assignment To fix phan notices: - The date_cancel property type was changed from 'int|string' to 'int|""' to match return type from jdate(). - Additionally, the assignment of date_cancel was updated to use dol_now() instead of $this->db->idate(dol_now()). * Qual: Provide the expected user_id instead of the User object Changed the user fetch logic from using `user_author` to `user_creation_id` * Qual: Correct bool argument from 0 to false ($fill) * Qual/Fix: Correct date converted to dol_print_date * Qual: Fix argument type for addline() * Qual: Update Phan baseline.txt
2026-04-13 10:50:23 +00:00
'htdocs/user/class/user.class.php' => ['PhanUndeclaredProperty'],
'htdocs/user/class/usergroup.class.php' => ['PhanUndeclaredProperty'],
'htdocs/variants/tpl/productattributevalueline_edit.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/variants/tpl/productattributevalueline_view.tpl.php' => ['PhanUndeclaredProperty'],
'htdocs/webhook/class/target.class.php' => ['PhanUndeclaredMethod'],
'htdocs/webhook/target_card.php' => ['PhanUndeclaredGlobalVariable'],
2025-02-11 01:12:49 +00:00
'htdocs/webservices/server_project.php' => ['PhanUndeclaredProperty'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
];