fix phpstan (#31801)

* fix phpstan

* fix phpstan

* fix phpstan

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc
This commit is contained in:
Frédéric FRANCE 2024-11-13 21:21:15 +01:00 committed by GitHub
parent a3bea77898
commit e5320c2302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
20 changed files with 58 additions and 477 deletions

View File

@ -2622,12 +2622,6 @@ parameters:
count: 1
path: ../../htdocs/asset/class/asset.class.php
-
message: '#^Property Asset\:\:\$fields \(array\<string, array\{type\: string, label\: string, enabled\: int\<0, 2\>\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: int\<0, 1\>, default\?\: string, \.\.\.\}\>\) does not accept non\-empty\-array\<string, array\{type\: string, label\: string, enabled\: int\<0, 2\>\|string, position\: int, notnull\?\: int, visible\: int\<\-2, 5\>\|string, noteditable\?\: ''1''\|int\<0, 1\>, default\?\: string, \.\.\.\}\>\.$#'
identifier: assign.propertyType
count: 6
path: ../../htdocs/asset/class/asset.class.php
-
message: '#^Property Asset\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -4062,12 +4056,6 @@ parameters:
count: 2
path: ../../htdocs/comm/action/class/actioncomm.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/comm/action/class/actioncomm.class.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
@ -4824,24 +4812,6 @@ parameters:
count: 2
path: ../../htdocs/comm/propal/class/propal.class.php
-
message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/comm/propal/class/propal.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/comm/propal/class/propal.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/comm/propal/class/propal.class.php
-
message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -4920,12 +4890,6 @@ parameters:
count: 1
path: ../../htdocs/comm/propal/class/propal.class.php
-
message: '#^Result of \|\| is always true\.$#'
identifier: booleanOr.alwaysTrue
count: 1
path: ../../htdocs/comm/propal/class/propal.class.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
@ -5268,24 +5232,6 @@ parameters:
count: 2
path: ../../htdocs/commande/class/commande.class.php
-
message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/commande/class/commande.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/commande/class/commande.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/commande/class/commande.class.php
-
message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -5334,12 +5280,6 @@ parameters:
count: 1
path: ../../htdocs/commande/class/commande.class.php
-
message: '#^Result of \|\| is always true\.$#'
identifier: booleanOr.alwaysTrue
count: 1
path: ../../htdocs/commande/class/commande.class.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
@ -6552,24 +6492,6 @@ parameters:
count: 3
path: ../../htdocs/compta/facture/class/facture.class.php
-
message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 4
path: ../../htdocs/compta/facture/class/facture.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 5
path: ../../htdocs/compta/facture/class/facture.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/compta/facture/class/facture.class.php
-
message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -6654,12 +6576,6 @@ parameters:
count: 3
path: ../../htdocs/compta/facture/class/facture.class.php
-
message: '#^Result of \|\| is always true\.$#'
identifier: booleanOr.alwaysTrue
count: 2
path: ../../htdocs/compta/facture/class/facture.class.php
-
message: '#^Variable \$newlang in empty\(\) always exists and is always falsy\.$#'
identifier: empty.variable
@ -7842,18 +7758,6 @@ parameters:
count: 1
path: ../../htdocs/compta/sociales/class/chargesociales.class.php
-
message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/compta/sociales/class/paymentsocialcontribution.class.php
-
message: '#^Property PaymentSocialContribution\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -8250,12 +8154,6 @@ parameters:
count: 4
path: ../../htdocs/compta/tva/card.php
-
message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/compta/tva/class/paymentvat.class.php
-
message: '#^Property PaymentVAT\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -8706,18 +8604,6 @@ parameters:
count: 2
path: ../../htdocs/contact/class/contact.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/contact/class/contact.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/contact/class/contact.class.php
-
message: '#^Property Contact\:\:\$email \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -8988,18 +8874,6 @@ parameters:
count: 2
path: ../../htdocs/contrat/class/contrat.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/contrat/class/contrat.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/contrat/class/contrat.class.php
-
message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -10542,12 +10416,6 @@ parameters:
count: 1
path: ../../htdocs/core/class/comment.class.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, CommonObject\|stdClass given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/class/commondocgenerator.class.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\<string, CommonObject\|float\|int\|string\>, CommonObject given\.$#'
identifier: argument.type
@ -12660,42 +12528,6 @@ parameters:
count: 1
path: ../../htdocs/core/filemanagerdol/browser/default/browser.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/filemanagerdol/browser/default/frmactualfolder.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php
-
message: '#^Variable \$langs might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/core/filemanagerdol/browser/default/frmcreatefolder.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/filemanagerdol/browser/default/frmfolders.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/filemanagerdol/browser/default/frmresourceslist.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../htdocs/core/filemanagerdol/browser/default/frmupload.php
-
message: '#^Variable \$_FILES in isset\(\) always exists and is not nullable\.$#'
identifier: isset.variable
@ -13842,12 +13674,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Asset given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/asset/doc/pdf_standard_asset.modules.php
-
message: '#^Property pdf_standard_asset\:\:\$cols \(array\<string, array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\) does not accept non\-empty\-array\<string, array\{rank\: 0, width\: false, status\: true, title\: array\{textkey\: ''Designation'', align\: ''L'', padding\: array\{0\.5, 0\.5, 0\.5, 0\.5\}\}, content\: array\{align\: ''L'', padding\: array\{1, 0\.5, 1, 1\.5\}\}\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#'
identifier: assign.propertyType
@ -14100,12 +13926,6 @@ parameters:
count: 2
path: ../../htdocs/core/modules/commande/doc/doc_generic_order_odt.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Commande given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/commande/doc/pdf_einstein.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -14160,12 +13980,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Commande given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/commande/doc/pdf_eratosthene.modules.php
-
message: '#^Parameter \#3 \$posy of method pdf_eratosthene\:\:drawInfoTable\(\) expects int, float given\.$#'
identifier: argument.type
@ -14352,12 +14166,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Delivery given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/delivery/doc/pdf_storm.modules.php
-
message: '#^Parameter \#3 \$posy of method pdf_storm\:\:_tableau_info\(\) expects int, float given\.$#'
identifier: argument.type
@ -14496,12 +14304,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/expedition/doc/doc_generic_shipment_odt.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Expedition given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/expedition/doc/pdf_espadon.modules.php
-
message: '#^Parameter \#4 \$columnText of method CommonDocGenerator\:\:printStdColumnContent\(\) expects string, float given\.$#'
identifier: argument.type
@ -14742,12 +14544,6 @@ parameters:
count: 6
path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/facture/doc/pdf_crabe.modules.php
-
message: '#^Parameter \#3 \$posy of method pdf_crabe\:\:_tableau_info\(\) expects int, float given\.$#'
identifier: argument.type
@ -14808,12 +14604,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/facture/doc/pdf_octopus.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -15012,12 +14802,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Facture given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/facture/doc/pdf_sponge.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -15462,18 +15246,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/mailings/contacts1.modules.php
-
message: '#^Property mailing_eventorganization\:\:\$require_admin has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/core/modules/mailings/eventorganization.modules.php
-
message: '#^Property mailing_eventorganization\:\:\$require_module has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/core/modules/mailings/eventorganization.modules.php
-
message: '#^Property mailing_fraise\:\:\$require_admin has no type specified\.$#'
identifier: missingType.property
@ -16404,12 +16176,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Entrepot\|MouvementStock given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php
-
message: '#^Parameter \#5 \$w of function pdf_writelinedesc expects int, float given\.$#'
identifier: argument.type
@ -16488,12 +16254,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Mo given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -16932,12 +16692,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Propal given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/propale/doc/pdf_azur.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -16986,12 +16740,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, Propal given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/propale/doc/pdf_cyan.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -17346,12 +17094,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, StockTransfer given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/stocktransfer/doc/pdf_eagle_proforma.modules.php
-
message: '#^Parameter \#4 \$posy of method pdf_eagle_proforma\:\:drawTotalTable\(\) expects int, float given\.$#'
identifier: argument.type
@ -17490,12 +17232,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/supplier_invoice/doc/doc_generic_supplier_invoice_odt.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, FactureFournisseur given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -17538,24 +17274,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/supplier_invoice/doc/pdf_canelle.modules.php
-
message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixcreditnote has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
-
message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixdeposit has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
-
message: '#^Property mod_facture_fournisseur_cactus\:\:\$prefixinvoice has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/core/modules/supplier_invoice/mod_facture_fournisseur_cactus.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:get_substitutionarray_each_var_object\(\) expects array\<string, CommonObject\|float\|int\|string\>, CommandeFournisseur given\.$#'
identifier: argument.type
@ -17598,12 +17316,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, CommandeFournisseur given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/supplier_order/doc/pdf_cornas.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -17862,12 +17574,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, SupplierProposal given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -17898,12 +17604,6 @@ parameters:
count: 1
path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, SupplierProposal given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php
-
message: '#^Parameter \#2 \$addpercent of function vatrate expects bool, int given\.$#'
identifier: argument.type
@ -19248,12 +18948,6 @@ parameters:
count: 1
path: ../../htdocs/cron/class/cronjob.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 4
path: ../../htdocs/cron/class/cronjob.class.php
-
message: '#^Property Cronjob\:\:\$command \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -19698,12 +19392,6 @@ parameters:
count: 5
path: ../../htdocs/don/class/paymentdonation.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/don/class/paymentdonation.class.php
-
message: '#^Property PaymentDonation\:\:\$amount \(float\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -20742,18 +20430,6 @@ parameters:
count: 1
path: ../../htdocs/expedition/class/expedition.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/expedition/class/expedition.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/expedition/class/expedition.class.php
-
message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -21324,24 +21000,6 @@ parameters:
count: 1
path: ../../htdocs/expensereport/class/paymentexpensereport.class.php
-
message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/expensereport/class/paymentexpensereport.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/expensereport/class/paymentexpensereport.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/expensereport/class/paymentexpensereport.class.php
-
message: '#^Property PaymentExpenseReport\:\:\$amount \(float\|int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -22182,18 +21840,6 @@ parameters:
count: 2
path: ../../htdocs/fourn/class/fournisseur.commande.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/fourn/class/fournisseur.commande.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/fourn/class/fournisseur.commande.class.php
-
message: '#^Property CommonObject\:\:\$ref_ext \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -25572,18 +25218,6 @@ parameters:
count: 1
path: ../../htdocs/loan/class/loan.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/loan/class/loan.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: ../../htdocs/loan/class/loan.class.php
-
message: '#^Property Loan\:\:\$account_capital \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -25632,18 +25266,6 @@ parameters:
count: 1
path: ../../htdocs/loan/class/loanschedule.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/loan/class/loanschedule.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/loan/class/loanschedule.class.php
-
message: '#^Property LoanSchedule\:\:\$fk_bank \(int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -25692,18 +25314,6 @@ parameters:
count: 1
path: ../../htdocs/loan/class/paymentloan.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/loan/class/paymentloan.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/loan/class/paymentloan.class.php
-
message: '#^Property PaymentLoan\:\:\$amount_capital \(float\|int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -26466,12 +26076,6 @@ parameters:
count: 1
path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, MyObject given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/modulebuilder/template/core/modules/mymodule/doc/pdf_standard_myobject.modules.php
-
message: '#^Parameter \#3 \$tab_height of method pdf_standard_myobject\:\:_tableau\(\) expects int, float given\.$#'
identifier: argument.type
@ -28128,18 +27732,6 @@ parameters:
count: 1
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property Product\:\:\$accountancy_code_buy \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -30468,18 +30060,6 @@ parameters:
count: 2
path: ../../htdocs/projet/class/task.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/projet/class/task.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/projet/class/task.class.php
-
message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -32772,18 +32352,6 @@ parameters:
count: 1
path: ../../htdocs/reception/class/reception.class.php
-
message: '#^Property CommonObject\:\:\$note_private \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/reception/class/reception.class.php
-
message: '#^Property CommonObject\:\:\$note_public \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 2
path: ../../htdocs/reception/class/reception.class.php
-
message: '#^Property CommonObject\:\:\$ref \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -33432,12 +33000,6 @@ parameters:
count: 1
path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php
-
message: '#^Parameter \#1 \$object of method CommonDocGenerator\:\:getExtrafieldsInHtml\(\) expects CommonObjectLine, RecruitmentJobPosition given\.$#'
identifier: argument.type
count: 1
path: ../../htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php
-
message: '#^Variable \$outputlangsbis might not be defined\.$#'
identifier: variable.undefined
@ -33942,12 +33504,6 @@ parameters:
count: 2
path: ../../htdocs/salaries/class/paymentsalary.class.php
-
message: '#^Property CommonObject\:\:\$note \(string\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 3
path: ../../htdocs/salaries/class/paymentsalary.class.php
-
message: '#^Property PaymentSalary\:\:\$amount \(float\) in isset\(\) is not nullable\.$#'
identifier: isset.property

View File

@ -4,7 +4,7 @@
"description": "An app for connecting Dolibarr to the Zapier platform.",
"repository": "Dolibarr/dolibarr",
"homepage": "https://www.dolibarr.org/",
"author": "Frédéric France <frederic.france@netlogic.fr>",
"author": "Frédéric France <frederic.france@free.fr>",
"license": "BSD-3-Clause",
"main": "index.js",
"scripts": {

View File

@ -1,9 +1,9 @@
<?php
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2015-2024 Frederic France <frederic.france@netlogic.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2015-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -1,10 +1,10 @@
<?php
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2015-2019 Frederic France <frederic.france@netlogic.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Alexandre Spangaro <alexandre@inovea-conseil.com>
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2015-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Alexandre Spangaro <alexandre@inovea-conseil.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -1586,7 +1586,7 @@ abstract class CommonDocGenerator
/**
* display extrafields columns content
*
* @param CommonObjectLine $object line of common object
* @param CommonObject|CommonObjectLine $object line of common object
* @param Translate $outputlangs Output language
* @param array<string,mixed> $params array of additional parameters
* @return string Html string

View File

@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal
// Load Dolibarr environment
require '../../../../main.inc.php';
/**
* @var Conf $conf
*/
top_httphead();

View File

@ -23,6 +23,10 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal
// Load Dolibarr environment
require '../../../../main.inc.php';
/**
* @var Conf $conf
* @var Translate $langs
*/
$langs->load("ecm");

View File

@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal
// Load Dolibarr environment
require '../../../../main.inc.php';
/**
* @var Conf $conf
*/
top_httphead();

View File

@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal
// Load Dolibarr environment
require '../../../../main.inc.php';
/**
* @var Conf $conf
*/
top_httphead();

View File

@ -23,6 +23,9 @@ define('NOTOKENRENEWAL', 1); // Disables token renewal
// Load Dolibarr environment
require '../../../../main.inc.php';
/**
* @var Conf $conf
*/
top_httphead();

View File

@ -2,8 +2,8 @@
/* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2022-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2022 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2022 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -1,8 +1,8 @@
<?php
/* Copyright (C) 2004-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018-2019 Nicolas ZABOURI <info@inovea-conseil.com>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -1,9 +1,9 @@
<?php
/* Copyright (C) 2004-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018-2019 Nicolas ZABOURI <info@inovea-conseil.com>
* Copyright (C) 2019-2022 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2004-2022 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018-2019 Nicolas ZABOURI <info@inovea-conseil.com>
* Copyright (C) 2019-2020 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2004-2018 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -1,7 +1,7 @@
<?php
/*
* Copyright (C) 2014-2021 Frederic France <frederic.france@netlogic.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2014-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@ -3,7 +3,7 @@
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2021 Christophe Battarel <christophe@altairis.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*

View File

@ -58,10 +58,19 @@ class mod_facture_fournisseur_cactus extends ModeleNumRefSuppliersInvoices
*/
public $name = 'Cactus';
/**
* @var string
*/
public $prefixinvoice = 'SI';
/**
* @var string
*/
public $prefixcreditnote = 'SA';
/**
* @var string
*/
public $prefixdeposit = 'SD';

View File

@ -1,8 +1,8 @@
<?php
/* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -36,7 +36,7 @@ require_once dirname(__FILE__).'/CommonClassTest.class.php';
if (empty($user->id)) {
print "Load permissions for admin user nb 1\n";
$user->fetch(1);
$user->getrights();
$user->loadRights();
}
$conf->global->MAIN_DISABLE_ALL_MAILS = 1;

View File

@ -1,8 +1,8 @@
<?php
/* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by