Commit Graph

130714 Commits

Author SHA1 Message Date
Frédéric FRANCE
f5c0cfcf6b fix phpstan (#28588) 2024-03-03 17:09:55 +01:00
Frédéric FRANCE
e1b3a639c4 fix phpstan default value is incompatible with type string (#28592) 2024-03-03 17:09:24 +01:00
MDW
e2fba5d03f Qual: FactureTest - use assertions rather than dying in the setup. (#28585)
# Qual: FactureTest - use assertions rather than dying in the setup.

The 'die()' instructions have been replaced - not all tests should fail
because the preconditions for a test case are not met.
2024-03-03 17:08:57 +01:00
Cédric A
9e1cfb7c52 FIX issue #23022 (#28590)
* FIX issue #23022

* no longer necessary

* no longer necessary

* no longer necessary

* no longer necessary

* no longer necessary

* no longer necessary

* no longer necessary
2024-03-03 17:07:58 +01:00
MDW
faf00c35e3 Fix: Skip UtilsTest on windows where ls is not available (#28601)
# Fix: Skip UtilsTest on windows where ls is not available

The test in question uses 'ls' which is not available on windows.
This change limits the execution to non windows systems.
2024-03-03 17:01:17 +01:00
Frédéric FRANCE
3663b9b305 fix phpstan (#28589)
* fix phpstan

* Update functions.lib.php
2024-03-03 17:00:06 +01:00
MDW
9c3a375839 Fix: Use accessible temporarypath for CMailFileTest (#28599)
# Fix: Use accessible temporarypath for CMailFileTest

'/tmp' does not exist on all systems and is subject to open_basedir
restrictions.  Selected another temporary path for the test.
2024-03-03 16:56:12 +01:00
Frédéric FRANCE
8b75667819 fix phpstan $amounts (array) does not accept array (#28603)
* fix phpstan $amounts (array) does not accept array

* fix phpstan $amounts (array) does not accept array
2024-03-03 16:52:02 +01:00
Frédéric FRANCE
b518bb0c9a fix phpstan (#28604) 2024-03-03 16:51:16 +01:00
Frédéric FRANCE
a094cf73c2 fix phpstan and phpdoc (#28596)
* fix phpstan

* fix phpstan

* fix phpstan
2024-03-03 16:00:13 +01:00
Laurent Destailleur
d721e64335 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-03 15:59:19 +01:00
MDW
71bb3a1275 Fix: Use accessible path for CategorieTest (#28600)
* Fix: Use accessible path for CategorieTest

# Fix: Use accessible path for CategorieTest

The test was using '/' (root of the filesystem) which was outside
the open_basedir paths.  Modified the path to the medias directory to allow the test to pass with open_basedir restriction in effect.

* Update CategorieTest.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-03 15:59:08 +01:00
Laurent Destailleur
51f6111519 Comment 2024-03-03 15:56:09 +01:00
Frédéric FRANCE
da3a24c3f3 fix phpstan (#28597)
* fix phpstan

* fix phpstan
2024-03-03 15:53:31 +01:00
PsyCrow
a26d81ad39 Patch 6 (#28593)
* css

* Fix #19404 FIX #22721

* Update facture.class.php

FIX  #22948

* Update facture.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net>
2024-03-03 15:49:18 +01:00
MDW
eb1f6be1e2 Qual: Add information from backtrace when mysql request fails. (#28583)
# Qual: Add information from backtrace when mysql request fails.

This helps locate the line that was responsible for the SQL request
2024-03-02 19:57:59 +01:00
Frédéric FRANCE
cc1199664c fix default value is incompatible with type string (#28584) 2024-03-02 19:19:18 +01:00
Laurent Destailleur
ff0eea8ce6 Removed field that are never filled 2024-03-02 16:56:04 +01:00
Laurent Destailleur
e12c235185 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-02 16:52:44 +01:00
Laurent Destailleur
fa27adec1b Clean trans 2024-03-02 16:52:12 +01:00
MDW
9fc7749b96 Qual: Show exception type in error detail on phpunit error (#28576)
# Qual: Show exception type in error detail on phpunit error

Knowing the exception type can be helpful - it's not reported in the
summary.
2024-03-02 16:38:53 +01:00
Frédéric FRANCE
fba15178eb all initAsSpecimen return int (#28577)
* all initAsSpecimen return int

* all initAsSpecimen return int

* all initAsSpecimen return int
2024-03-02 16:38:35 +01:00
Frédéric FRANCE
074041d925 fix default value is incompatible with int (#28579) 2024-03-02 16:37:53 +01:00
Laurent Destailleur
39458e7c31 Better error management 2024-03-02 14:30:51 +01:00
Laurent Destailleur
2044a133e9 Fix warning 2024-03-02 13:15:20 +01:00
MDW
2a52a35dc1 Qual: Improve logging on phpunit error by limiting to new log lines (#28575)
# Qual: Improve logging on phpunit error by limiting to new log lines

Log only the new files since the start of the failed test within the limit
of the number of requested lines.

To do this, the log file size is recorded in setUp() to show only the data
beyond this limit on error.
2024-03-02 12:42:20 +01:00
Frédéric FRANCE
b131013c82 fix parameter of method is incompatible with type int (#28573)
fix parameter of method is incompatible with type int
2024-03-02 12:41:46 +01:00
Frédéric FRANCE
04749842b2 fix phpstan property does not accept string (#28574)
* fix phpstan property does not accept string

* fix phpstan property does not accept string
2024-03-02 12:41:12 +01:00
Frédéric FRANCE
b1f01b1e70 fix phpstan (#28571) 2024-03-02 12:40:59 +01:00
Frédéric FRANCE
99d7b76ba9 fix phpstan (#28568) 2024-03-02 12:40:25 +01:00
Frédéric FRANCE
39debebe27 fix phpstan (#28570) 2024-03-02 12:40:06 +01:00
Frédéric FRANCE
d0fe3c9a6b fix phpstan (#28569)
* fix bad use of properties

* fix bad use of properties

* fix bad use of properties
2024-03-02 12:39:53 +01:00
Frédéric FRANCE
d0e6933b6d fix phpstan (#28567) 2024-03-02 12:39:30 +01:00
Laurent Destailleur
239652647a Fix $db 2024-03-02 02:37:55 +01:00
Thomas C
595d735fee NEW : Statistic page donation (#28463)
* v1 statistic page don

* add link

* fix phpstan

* fix

* fix

* Update index.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-01 21:17:52 +01:00
lamrani abdelwadoud
74ecd5c660 FIX return method DeleteLine in api_boms file (#28471)
* FIX return method DeleteLine in api_boms file

* update type of return in deleteLine method
2024-03-01 21:13:40 +01:00
lamrani abdelwadoud
7b92c9912b Fix return type by adding string in select_comptes method (#28496)
* Fix return type by addin string in select_comptes method

* update return doc for method

* Update html.form.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-01 21:13:12 +01:00
lamrani abdelwadoud
94b9686db5 Fix type of variable in api_invoices (#28474)
* Fix type of variable in api_invoices

* remove coma

* replace strtotime

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-01 21:02:35 +01:00
lamrani abdelwadoud
dd7be6c932 Fix return type string instead of int (#28499)
* Fix return type string instead of int

* update doc method for return
2024-03-01 21:00:49 +01:00
Laurent Destailleur
6917b1046b Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-01 20:55:41 +01:00
Laurent Destailleur
19a22f6b6d Fix #28509 2024-03-01 20:55:31 +01:00
lamrani abdelwadoud
351ea07229 Fix return type when output is 1 (#28501)
* Fix return type when output is 1

* update doc method
2024-03-01 20:49:23 +01:00
lamrani abdelwadoud
389d582846 Fix return in deleteLine and cast a variable to string (#28558) 2024-03-01 20:48:52 +01:00
lamrani abdelwadoud
262f5ffd21 change assignement type to int (#28561) 2024-03-01 20:48:14 +01:00
lamrani abdelwadoud
e0c161e4c2 fix assigne variable (#28559)
* fix assigne variable

* Update paiement.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-01 20:47:47 +01:00
lamrani abdelwadoud
e39070af37 Fix return type by changin boot to string (#28557) 2024-03-01 20:41:16 +01:00
MDW
7e8b45f287 Qual: Improve PhpUnit logging in case of error. (#28562)
# Qual: Improve PhpUnit logging in case of error.

- Log exception message with extra log information.
- Do not output markers for dolibarr.log if no log lines should be shown.
- Use GitHub action style prefixes to group messages
2024-03-01 20:39:52 +01:00
lamrani abdelwadoud
b943034622 FIX return in method put on api_ticket (#28563)
* FIX return in method put on api_ticket

* Update api_tickets.class.php

* Update api_tickets.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-03-01 20:38:27 +01:00
Laurent Destailleur
1d86c88c38 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-01 20:27:55 +01:00
Laurent Destailleur
7d2928fe1f Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-01 20:20:00 +01:00