2
0
forked from Wavyzz/dolibarr
Commit Graph

129526 Commits

Author SHA1 Message Date
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
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
Laurent Destailleur
85aab4770e Merge pull request #27912 from thibdrev/patch-8
qual: phpstan for htdocs/expensereport/class/paymentexpensereport.class.php
2024-01-31 20:36:21 +01:00
Laurent Destailleur
705b4fa3f9 Merge pull request #27914 from thibdrev/patch-6
qual: phpstan for htdocs/expensereport/class/expensereport.class.php
2024-01-31 20:35:53 +01:00
Laurent Destailleur
8a3ffae859 Merge pull request #27923 from thibdrev/patch-1
qual: phpstan for htdocs/core/class/evalmath.class.php
2024-01-31 19:30:10 +01:00
Laurent Destailleur
9449f878a8 Merge pull request #27924 from thibdrev/patch-4
qual: phpstan for htdocs/don/class/don.class.php
2024-01-31 19:29:49 +01:00
Laurent Destailleur
ca86dd4699 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-31 18:27:19 +01:00
Laurent Destailleur
9843f31814 Fix warning 2024-01-31 18:26:09 +01:00
Laurent Destailleur
cd7bab52ea Reduce the size of an export of website template. Removed useless files. 2024-01-31 18:08:50 +01:00
Laurent Destailleur
3f5488c3ae Overwrite sources of a website template using the unzip of the exported
zip.
2024-01-31 15:48:15 +01:00
thibdrev
e3f4768ad7 qual: phpstan for htdocs/don/class/don.class.php
htdocs/don/class/don.class.php	269	Property Don::$date (string) does not accept int.
htdocs/don/class/don.class.php	329	Property Don::$amount (float) does not accept string.
htdocs/don/class/don.class.php	384	Property Don::$amount (float) does not accept string.
htdocs/don/class/don.class.php	501	Property Don::$amount (float) does not accept string.
htdocs/don/class/don.class.php	1146	Method Don::getRemainToPay() should return int but returns float.
2024-01-31 13:41:32 +01:00
thibdrev
bda7cee900 qual: phpstan for htdocs/core/class/evalmath.class.php
htdocs/core/class/evalmath.class.php	389	Method EvalMath::pfx() should return string but returns bool.
htdocs/core/class/evalmath.class.php	392	Method EvalMath::pfx() should return string but returns bool.
htdocs/core/class/evalmath.class.php	406	Method EvalMath::pfx() should return string but returns bool.
htdocs/core/class/evalmath.class.php	422	Method EvalMath::pfx() should return string but returns bool.
htdocs/core/class/evalmath.class.php	434	Method EvalMath::pfx() should return string but returns bool.
htdocs/core/class/evalmath.class.php	448	Method EvalMath::pfx() should return string but returns bool.
htdocs/core/class/evalmath.class.php	454	Method EvalMath::pfx() should return string but returns bool.
2024-01-31 13:28:44 +01:00
Laurent Destailleur
eee29554c3 Update LICENSE file 2024-01-31 13:11:22 +01:00
Laurent Destailleur
a0d0e60600 Use the good wrapper for image when in web server mode 2024-01-31 13:01:05 +01:00
Laurent Destailleur
63abd9ea5c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-31 12:21:59 +01:00
Laurent Destailleur
e5f782defe Can export onto a custom dir 2024-01-31 12:21:37 +01:00
Laurent Destailleur
c22bffc2d1 Merge pull request #27915 from frederic34/patch-3
fix phpstan
2024-01-31 12:03:55 +01:00
Laurent Destailleur
d12eedd7d1 Merge pull request #27916 from mdeweerd/qual/fix_typing_user
Qual: Fix annotation
2024-01-31 12:03:40 +01:00
Laurent Destailleur
4c6e9515c5 Merge pull request #27918 from mdeweerd/fix/always_return
Fix: Always return value in get_element_list
2024-01-31 12:03:06 +01:00
Laurent Destailleur
e1802306e9 Merge pull request #27920 from mdeweerd/fix/dol_eval
Fix: dol_eval - return value in case of exception.
2024-01-31 12:01:59 +01:00
Laurent Destailleur
3b2e0f7408 Merge pull request #27919 from mdeweerd/fix/doActions
Fix: Always return value as suggested
2024-01-31 11:59:30 +01:00
Laurent Destailleur
2b29442360 Clean code 2024-01-31 11:57:32 +01:00
Laurent Destailleur
16accb3460 Fix missing due date 2024-01-31 11:19:52 +01:00
MDW
23b73eb714 Fix: dol_eval - return value in case of exception.
# Fix: dol_eval - return value in case of exception.

dol_eval did not return a value in case of exception.  Fixed.
2024-01-31 09:28:08 +01:00
Laurent Destailleur
dc961b46ca Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-31 03:51:47 +01:00
Laurent Destailleur
1d69089702 FIX Must use the ICS and not IDS bu default 2024-01-31 03:49:13 +01:00
Laurent Destailleur
3d25e5db4f FIX Must use the ICS and not IDS bu default 2024-01-31 03:48:09 +01:00
Laurent Destailleur
70444b75f4 Fix title 2024-01-31 03:13:54 +01:00
Laurent Destailleur
7782dd27f0 Fix navigation 2024-01-31 02:54:25 +01:00
Laurent Destailleur
4c0fa340f5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-31 02:48:14 +01:00
Laurent Destailleur
a48a399b31 FIX Add a limit in nb of element in view event/message 2024-01-31 02:47:49 +01:00
Laurent Destailleur
280a7a24e4 Rename page 2024-01-31 01:56:24 +01:00
MDW
485dec120f Fix: Always return value as suggested
# Fix: Always return value as suggested

Always return a value in doAction (as per PHPDoc type hint).
2024-01-31 01:42:15 +01:00
MDW
d8784f1294 Fix: Always return value in get_element_list
# Fix: Always return value in get_element_list

get_element_list did not always return a value.  Fixed.
2024-01-31 01:28:25 +01:00
MDW
5655eb387c Qual: Fix annotation
# Qual: Fix annotation

The typing hint was incorrect, corrected.
2024-01-31 00:41:06 +01:00
Laurent Destailleur
bb7e68dbaa Merge pull request #27901 from thibdrev/patch-4
qual: phpstan - Property CommonDict::$active (int) does not accept string.
2024-01-30 23:48:35 +01:00
Laurent Destailleur
d6fea0c040 Merge pull request #27905 from thibdrev/patch-1
qual: phpstan for htdocs/ecm/class/ecmfiles.class.php
2024-01-30 23:48:04 +01:00
Laurent Destailleur
0b7ef8812a Merge pull request #27909 from thibdrev/patch-5
qual: phpstan for htdocs/expedition/card.php
2024-01-30 23:40:16 +01:00
Laurent Destailleur
cf472303be Merge pull request #27913 from thibdrev/patch-9
qual: phpstan for htdocs/cron/class/cronjob.class.php
2024-01-30 23:39:41 +01:00
Frédéric FRANCE
25557e3dc2 fix phpstan 2024-01-30 23:03:43 +01:00
thibdrev
3df2d3543f qual: phpstan for htdocs/cron/class/cronjob.class.php
htdocs/cron/class/cronjob.class.php	266	Property Cronjob::$frequency (int) does not accept string.
htdocs/cron/class/cronjob.class.php	269	Property Cronjob::$status (int) does not accept string.
htdocs/cron/class/cronjob.class.php	713	Property Cronjob::$frequency (int) does not accept string.
htdocs/cron/class/cronjob.class.php	716	Property Cronjob::$status (int) does not accept string.
htdocs/cron/class/cronjob.class.php	722	Property Cronjob::$nbrun (int) does not accept string.
htdocs/cron/class/cronjob.class.php	948	Property CommonObject::$ref (string) does not accept int.
htdocs/cron/class/cronjob.class.php	970	Property Cronjob::$frequency (int) does not accept string.
htdocs/cron/class/cronjob.class.php	978	Property Cronjob::$nbrun (int) does not accept string.
htdocs/cron/class/cronjob.class.php	1232	Property Cronjob::$lastresult (string) does not accept int.
htdocs/cron/class/cronjob.class.php	1248	Property Cronjob::$lastresult (string) does not accept int.
htdocs/cron/class/cronjob.class.php	1260	Property Cronjob::$lastresult (string) does not accept int.
htdocs/cron/class/cronjob.class.php	1268	Property Cronjob::$lastresult (string) does not accept int.
htdocs/cron/class/cronjob.class.php	1283	Property Cronjob::$lastresult (string) does not accept int.
2024-01-30 22:49:39 +01:00
thibdrev
3e023bffe9 qual: phpstan for htdocs/expensereport/class/paymentexpensereport.class.php
htdocs/expensereport/class/paymentexpensereport.class.php	137	Property PaymentExpenseReport::$fk_expensereport (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	143	Property PaymentExpenseReport::$fk_typepayment (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	293	Property PaymentExpenseReport::$fk_expensereport (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	299	Property PaymentExpenseReport::$fk_typepayment (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	308	Property PaymentExpenseReport::$fk_bank (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	311	Property PaymentExpenseReport::$fk_user_creat (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	314	Property PaymentExpenseReport::$fk_user_modif (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	503	Property PaymentExpenseReport::$fk_expensereport (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	508	Property PaymentExpenseReport::$fk_typepayment (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	511	Property PaymentExpenseReport::$fk_bank (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	512	Property PaymentExpenseReport::$fk_user_creat (int) does not accept string.
htdocs/expensereport/class/paymentexpensereport.class.php	513	Property PaymentExpenseReport::$fk_user_modif (int) does not accept string.
2024-01-30 22:36:41 +01:00
MDW
e8ed4d4507 Qual: Ignore phpcs warnings (pre-commit)
# Qual: Ignore php-cs warnings (pre-commit)

I fixed the pre-commit hook for pre-commit so that
phpcs warnings are ignored
2024-01-30 22:31:50 +01:00
thibdrev
250b3fb6c8 qual: phpstan for htdocs/expensereport/class/expensereportstats.class.php
htdocs/expensereport/class/expensereportstats.class.php	113	Parameter #1 $year (string) of method ExpenseReportStats::getNbByMonth() should be compatible with parameter $year (int) of method Stats::getNbByMonth()
2024-01-30 22:31:45 +01:00
thibdrev
c10edc2396 qual: phpstan for htdocs/expensereport/class/expensereport.class.php
htdocs/expensereport/class/expensereport.class.php	502	Property ExpenseReport::$fk_user_valid (int) does not accept string.
htdocs/expensereport/class/expensereport.class.php	1692	Method ExpenseReport::getNextNumRef() should return string but returns int.
htdocs/expensereport/class/expensereport.class.php	1696	Method ExpenseReport::getNextNumRef() should return string but returns int.
2024-01-30 22:24:24 +01:00
Laurent Destailleur
423837a750 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-01-30 22:20:43 +01:00