Commit Graph

129594 Commits

Author SHA1 Message Date
thibdrev
2018e577b8 qual: phpstan for htdocs/adherents/class/adherent.class.php (#27945)
* qual: phpstan for htdocs/adherents/class/adherent.class.php

htdocs/adherents/class/adherent.class.php	1692	Property Adherent::$invoice (Facture) does not accept null.
htdocs/adherents/class/adherent.class.php	2626	Property Adherent::$civility_id (string) does not accept int.

* phpcs
2024-02-01 13:39:25 +01:00
Quentin-Seekness
f184caec73 Update originproductline.tpl.php (#27944)
* Update originproductline.tpl.php

Fix unset $form on OF creation causing a fatal error when using $form->textwithpicto()

* Update originproductline.tpl.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-02-01 13:38:37 +01:00
Laurent Destailleur
b514c1afbe Move code 401 to 403 2024-02-01 13:34:55 +01:00
Laurent Destailleur
61921f0364 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-01 12:24:00 +01:00
Laurent Destailleur
3bb3a8d6ed Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-01 12:23:21 +01:00
Laurent Destailleur
4cba87129c Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-02-01 12:22:54 +01:00
Laurent Destailleur
13801c6b99 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-02-01 12:20:25 +01:00
Laurent Destailleur
9dd1646818 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-02-01 12:20:12 +01:00
Laurent Destailleur
a237f5dc54 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-02-01 12:17:02 +01:00
Laurent Destailleur
7b178844e8 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-02-01 12:16:50 +01:00
Laurent Destailleur
5f24f79b4d Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2024-02-01 12:14:50 +01:00
Laurent Destailleur
07d0093fbc Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2024-02-01 12:14:30 +01:00
Laurent Destailleur
efa977bd21 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2024-02-01 12:11:39 +01:00
Laurent Destailleur
ab585b6efc Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2024-02-01 12:11:25 +01:00
Laurent Destailleur
1284279594 Doc 2024-02-01 12:04:17 +01:00
Laurent Destailleur
de8265a1bb Merge pull request #27940 from W1W1-M/qual-ldap-class-phpcs
Qual ldap class phpcs
2024-02-01 12:03:47 +01:00
Laurent Destailleur
a4d5be00e6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-02-01 11:54:48 +01:00
Laurent Destailleur
badf3e1971 Fix payment mode/term and label and sort order in export 2024-02-01 11:53:55 +01:00
William Mead
f6c91c368c Added deprecated warnings 2024-02-01 11:42:15 +01:00
Laurent Destailleur
f72ff74d28 Merge pull request #27934 from thibdrev/patch-4
qual: phpstan for htdocs/don/class/paymentdonation.class.php
2024-02-01 11:01:01 +01:00
Laurent Destailleur
662ab45037 Merge pull request #27904 from rycks/14.0_fix_zero_could_be_a_value_into_conf_global_key
fix #27883 : zero could be a value stored
2024-02-01 10:59:11 +01:00
Laurent Destailleur
bcb94acbdf Merge pull request #27935 from thibdrev/patch-5
qual: phpstan for htdocs/ecm/class/ecmdirectory.class.php
2024-02-01 10:56:59 +01:00
Laurent Destailleur
8ec97aad63 Merge pull request #27936 from thibdrev/patch-6
qual: phpstan for htdocs/fourn/class/fournisseur.facture.class.php
2024-02-01 10:56:45 +01:00
Laurent Destailleur
e62204da8b Update fournisseur.facture.class.php 2024-02-01 10:56:31 +01:00
Laurent Destailleur
c8b1fd81da Fix type (boolean must be replaced with int) 2024-02-01 10:55:47 +01:00
Laurent Destailleur
a69b3c0088 Merge pull request #27937 from thibdrev/patch-7
qual: phpstan for htdocs/fourn/class/fournisseur.product.class.php
2024-02-01 10:53:01 +01:00
Laurent Destailleur
bf9a3c0f0e Merge pull request #27938 from thibdrev/patch-8
qual: phpstan for htdocs/ticket/class/ticket.class.php
2024-02-01 10:52:35 +01:00
Laurent Destailleur
4266570d1f Merge pull request #27939 from PsyCrow-code/patch-1
Update multicurrency_rate.php
2024-02-01 10:51:59 +01:00
Laurent Destailleur
db133ce471 Clean value 2024-02-01 00:54:03 +01:00
Laurent Destailleur
181670df6a Fix #yogosha20028 2024-02-01 00:10:46 +01:00
Laurent Destailleur
5d795cee23 Enhance error management of unzip 2024-01-31 23:03:48 +01:00
thibdrev
aa8e6e1232 qual: phpstan for htdocs/ticket/class/ticket.class.php
htdocs/ticket/class/ticket.class.php	192	Property Ticket::$datec (int) does not accept default value of type string.
htdocs/ticket/class/ticket.class.php	197	Property Ticket::$tms (int) does not accept default value of type string.
htdocs/ticket/class/ticket.class.php	202	Property Ticket::$date_read (int) does not accept default value of type string.
htdocs/ticket/class/ticket.class.php	207	Property Ticket::$date_last_msg_sent (int) does not accept default value of type string.
htdocs/ticket/class/ticket.class.php	212	Property Ticket::$date_close (int) does not accept default value of type string.
htdocs/ticket/class/ticket.class.php	272	PHPDoc type array of property Ticket::$lines is not covariant with PHPDoc type array of overridden property CommonObject::$lines.
htdocs/ticket/class/ticket.class.php	449	Property Ticket::$progress (int) does not accept string.
htdocs/ticket/class/ticket.class.php	1007	Property Ticket::$progress (int) does not accept string.
htdocs/ticket/class/ticket.class.php	1249	Property Ticket::$progress (int) does not accept string.
htdocs/ticket/class/ticket.class.php	1254	Property Ticket::$datec (int) does not accept string.
htdocs/ticket/class/ticket.class.php	1255	Property Ticket::$date_read (int) does not accept string.
htdocs/ticket/class/ticket.class.php	1256	Property Ticket::$date_last_msg_sent (int) does not accept string.
htdocs/ticket/class/ticket.class.php	1257	Property Ticket::$date_close (int) does not accept string.
htdocs/ticket/class/ticket.class.php	1258	Property Ticket::$tms (int) does not accept string.
2024-01-31 22:37:40 +01:00
thibdrev
30c0258dda qual: phpstan for htdocs/fourn/class/fournisseur.product.class.php
htdocs/fourn/class/fournisseur.product.class.php	839	Property ProductFournisseur::$product_fourn_price_id (int) does not accept string.
htdocs/fourn/class/fournisseur.product.class.php	850	Property ProductFournisseur::$id (int) does not accept string.
2024-01-31 22:28:27 +01:00
thibdrev
8bf313cb8c qual: phpstan for htdocs/fourn/class/fournisseur.facture.class.php
htdocs/fourn/class/fournisseur.facture.class.php	957	Property FactureFournisseur::$vat_reverse_charge (bool) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1147	Property CommonObject::$entity (int) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1150	Property FactureFournisseur::$type (int) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1153	Property CommonInvoice::$subtype (int) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1156	Property CommonInvoice::$socid (int) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1162	Property FactureFournisseur::$paye (int) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1185	Property FactureFournisseur::$total_ttc (float) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1200	Property FactureFournisseur::$fk_facture_source (int) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1204	Property CommonObject::$fk_project (int) does not accept null.
htdocs/fourn/class/fournisseur.facture.class.php	1210	Property CommonInvoice::$cond_reglement_id (int) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	1863	Property CommonObject::$origin (string) does not accept $this(FactureFournisseur).
htdocs/fourn/class/fournisseur.facture.class.php	2004	Property CommonObject::$origin (string) does not accept $this(FactureFournisseur).
htdocs/fourn/class/fournisseur.facture.class.php	2435	Property SupplierInvoiceLine::$remise_percent (float) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	2443	Property SupplierInvoiceLine::$localtax1_tx (float) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	2444	Property SupplierInvoiceLine::$localtax2_tx (float) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	2985	Method FactureFournisseur::getNextNumRef() should return string but returns int.
htdocs/fourn/class/fournisseur.facture.class.php	3388	Property FactureFournisseur::$vat_reverse_charge (bool) does not accept int.
htdocs/fourn/class/fournisseur.facture.class.php	3932	Property SupplierInvoiceLine::$localtax1_type (float) does not accept string.
htdocs/fourn/class/fournisseur.facture.class.php	3935	Property SupplierInvoiceLine::$localtax2_type (float) does not accept string.
2024-01-31 21:56:14 +01:00
thibdrev
6ff41f30dd qual: phpstan for htdocs/ecm/class/ecmdirectory.class.php
htdocs/ecm/class/ecmdirectory.class.php	460	Property EcmDirectory::$fk_parent (int) does not accept string.
2024-01-31 21:47:10 +01:00
thibdrev
f2e37984b0 qual: phpstan for htdocs/don/class/paymentdonation.class.php
htdocs/don/class/paymentdonation.class.php	204	Property CommonObject::$ref (string) does not accept int.
htdocs/don/class/paymentdonation.class.php	547	Property PaymentDonation::$fk_donation (int) does not accept string.
htdocs/don/class/paymentdonation.class.php	556	Property PaymentDonation::$fk_bank (int) does not accept string.
htdocs/don/class/paymentdonation.class.php	557	Property PaymentDonation::$fk_user_creat (int) does not accept string.
htdocs/don/class/paymentdonation.class.php	558	Property PaymentDonation::$fk_user_modif (int) does not accept string.
2024-01-31 21:45:44 +01:00
Laurent Destailleur
0949c1402a Merge pull request #27933 from thibdrev/patch-3
qual: phpstan for htdocs/core/filemanagerdol/connectors/php/connector.lib.php
2024-01-31 21:33:33 +01:00
Laurent Destailleur
64bd38ec78 Merge pull request #27932 from thibdrev/patch-2
qual: phpstan for htdocs/core/class/commoninvoice.class.php
2024-01-31 21:32:01 +01:00
Laurent Destailleur
8f8ea1c6fe Merge pull request #27931 from thibdrev/patch-1
qual: phpstan for htdocs/core/class/commonobject.class.php
2024-01-31 21:30:00 +01:00
Laurent Destailleur
f07fd31c65 Fix lang 2024-01-31 21:27:21 +01:00
thibdrev
aed1ea790e qual: phpstan for htdocs/core/filemanagerdol/connectors/php/connector.lib.php
htdocs/core/filemanagerdol/connectors/php/connector.lib.php	968	Function DetectHtml() should return bool but returns int.
htdocs/core/filemanagerdol/connectors/php/connector.lib.php	1027	Function IsImageValid() should return bool but returns int.
2024-01-31 21:25:45 +01:00
thibdrev
1292bd7612 qual: phpstan for htdocs/core/class/commoninvoice.class.php
htdocs/core/class/commoninvoice.class.php	952	Method CommonInvoice::calculate_date_lim_reglement() should return int but returns string.
htdocs/core/class/commoninvoice.class.php	1547	Property CommonInvoice::$postactionmessages (string) does not accept array.
2024-01-31 21:12:21 +01:00
Laurent Destailleur
2e620ba35a Merge pull request #27751 from Slordef/18.0-currency-propal-signature
FIX: use the currency for propal signature page
2024-01-31 21:08:52 +01:00
thibdrev
4ad9e9b828 qual: phpstan for htdocs/core/class/commonobject.class.php
htdocs/core/class/commonobject.class.php	1032	Method CommonObject::getLastMainDocLink() should return string but returns int.
htdocs/core/class/commonobject.class.php	1550	Method CommonObject::liste_type_contact() should return array but returns null.
htdocs/core/class/commonobject.class.php	1638	Method CommonObject::listeTypeContacts() should return array but returns null.
htdocs/core/class/commonobject.class.php	1708	Method CommonObject::getIdContact() should return array but returns null.
htdocs/core/class/commonobject.class.php	2011	Method CommonObject::fetchObjectFrom() should return int but returns false.
htdocs/core/class/commonobject.class.php	2891	Property CommonObject::$retained_warranty_fk_cond_reglement (string) does not accept int.
htdocs/core/class/commonobject.class.php	4868	Method CommonObject::getTotalDiscount() should return float|string but returns null.
htdocs/core/class/commonobject.class.php	9557	Property CommonObject::$ref (string) does not accept int.
htdocs/core/class/commonobject.class.php	10407	Method CommonObject::fetchComments() should return bool but returns int.
htdocs/core/class/commonobject.class.php	10411	Method CommonObject::fetchComments() should return bool but returns int<0, max>.
2024-01-31 21:04:08 +01:00
Laurent Destailleur
b99efb24df Merge pull request #27887 from ATM-Consulting/FIX_Ajout_hooks
FIX : Adding hooks init
2024-01-31 20:51:25 +01:00
Laurent Destailleur
d51a748d95 Merge pull request #27906 from thibdrev/patch-2
qual: phpstan for htdocs/emailcollector/class/emailcollector.class.php
2024-01-31 20:42:43 +01:00
Laurent Destailleur
4386de220e Merge pull request #27907 from marc-dll/develop_FIX_https_infinite_loop
FIX: force https: infinite redirection in case the access is already secure
2024-01-31 20:41:12 +01:00
Laurent Destailleur
4c18894516 Merge pull request #27908 from thibdrev/patch-3
qual: phpstan for htdocs/emailcollector/lib/emailcollector.lib.php
2024-01-31 20:39:11 +01:00
Laurent Destailleur
0f83a789e6 Merge pull request #27910 from thibdrev/patch-7
qual: phpstan for htdocs/expensereport/class/expensereportstats.class.php
2024-01-31 20:38:53 +01:00
Laurent Destailleur
fe17c19799 Merge pull request #27911 from mdeweerd/fix/precommit_no_phpcs_warnings
Qual: Ignore phpcs warnings (pre-commit)
2024-01-31 20:38:22 +01:00