Commit Graph

315 Commits

Author SHA1 Message Date
ldestailleur
14a689c4a7 Debug v22 2025-06-11 15:08:52 +02:00
ldestailleur
3aaf0ad6f7 Debug v22 2025-05-26 22:17:53 +02:00
Frédéric FRANCE
ca693dcc93 fix CI (#33860) 2025-04-15 19:11:19 +02:00
ldestailleur
080fdacf1f Fix protection for sprintf on bad % specifier 2025-04-03 21:00:00 +02:00
ldestailleur
f5a61d9dc4 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-01 19:26:49 +02:00
ldestailleur
105347003c Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-04-01 19:24:06 +02:00
Laurent Destailleur (aka Eldy)
62fba4f84d Add missing try catch 2025-04-01 19:23:47 +02:00
ldestailleur
7d0581b046 FIX Add a try catch to avoid fatal error on bad translation string
format
2025-04-01 19:05:59 +02:00
MDW
a0f71fbe76 Qual: Fix phan notices (core/lib) (#33379)
* Qual: Fix PhanMismatchType

* Finalize rename of $attrV into $value

* Correct getGlobalString into getGlobalInt

* Do not require some fields in the 'title' definition of $cols

* Qual: Fix phan notices (core/lib)
2025-03-11 01:43:54 +01:00
Laurent Destailleur (aka Eldy)
b9fd853c94 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-28 14:00:55 +01:00
Laurent Destailleur (aka Eldy)
70b4ead012 Fix protection translate with bad % 2025-01-28 13:57:53 +01:00
Laurent Destailleur (aka Eldy)
163bce66d4 Fix protection against unknown specifier 2025-01-28 13:55:25 +01:00
Laurent Destailleur (aka Eldy)
9021b3485c Fix protection translate with bad % 2025-01-28 13:33:49 +01:00
Laurent Destailleur (aka Eldy)
c44ed2154b Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-28 12:40:20 +01:00
Laurent Destailleur (aka Eldy)
4d1cd18936 Fix translate can accept only 4 subtitutions 2025-01-28 12:36:52 +01:00
Laurent Destailleur (aka Eldy)
cf62921762 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-15 13:01:03 +01:00
Laurent Destailleur (aka Eldy)
e5249391f0 Debug v21 - Fix trans 2025-01-12 22:33:20 +01:00
Hystepik
30168c5445 fix tipo 2025-01-10 15:09:20 +01:00
Hystepik
0fe484ecd6 better fix 2025-01-10 13:00:11 +01:00
Laurent Destailleur (aka Eldy)
0ffd31c1a1 Restore lines commented for test 2025-01-09 19:35:01 +01:00
Hystepik
3fcdba2bc3 better fix for performance 2025-01-09 09:21:45 +01:00
Hystepik
0c05b8110f Fix fatal error on sprintf with translate 2025-01-08 16:19:06 +01:00
Ronan Pozzi
14a341fb8c Enhance regex patterns to support underscores in keys
Updated regular expressions in `translate.class.php` to allow underscores in key matches for civility, sending methods, payment types, opportunity status, and order source. This improves compatibility with broader key naming conventions.
2024-12-10 21:20:53 +01:00
Frédéric FRANCE
1adc883b56 add baseline exclude for phpstan (#31632)
* add baseline exclude for phpstan

* update

* update

* update

* update

* update

* merge

* restore one filter

* delete old errors

* fix

* fix

* fix

* $moreforfilter can t be empty

* fix

* enable check

* refresh baseline

* add phpdoc

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
MDW
b91c99b18a Qual: Fix phan/phpstan notices in class files (part 3) (#31578)
* fix phpstan in conf class (#31630)

* fix phpstan

* fix phan

* Fix merge

* Qual: Avoid notification with typing hint

* Qual: Fix notices link.class

* Qual: Fix notices link..socialneetworkmanager.class and DoliDb->DoliDB

* Qual: Fix notices for link..utils.class

* Qual: Fix notices for db classes

* Update translate.class.php

* Update translate.class.php

---------

Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
Co-authored-by: Laurent Destailleur <eldy@users.sourceforge.net>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-29 22:44:47 +01:00
MDW
53cfbc35be Qual: Fix several phan & stan notices (#31308)
* Qual: Fix several phan & stan notices

# Qual: Fix several phan & stan notices

Several fixes in files while fixing UnknownClass notices

* Qual: Update prepare_head PHPDoc return types

# Qual: Update prepare_head PHPDoc return types

Provide detailed array return types for prepare_head functions.

* Fix new phan notice

* Better loadLangs typing and fix call to loadLangs

* Fix new issues (stats)

* Other fixes of new issues

* Qual: update phan baseline
2024-10-14 01:59:44 +02:00
Laurent Destailleur
916a906d9b Enhance the csvclean to support the charset encoding 2024-10-05 14:51:45 +02:00
Laurent Destailleur
e09d9df3ee QUAL Move function csvClean into functions2.lib.php 2024-10-03 21:36:39 +02:00
MDW
0da4d51003 Qual: Fix multiple phan notifications (#31151)
* Qual: Fix notifications multiple files

# Qual: Fix notifications multiple files

Fixes to files with UnknownObject notices, fixing other
notices in these files as well

* Improve boxes typing

* Qual: Extend accepted types to reduce notices

* Fix type for GET/POST arguments of GETPOST* calls
2024-09-28 12:09:35 +02:00
Laurent Destailleur
0542c956dc CSS 2024-07-29 01:21:08 +02:00
Laurent Destailleur
c7cd4999ff Look and feel v21 2024-07-04 11:09:33 +02:00
Laurent Destailleur
9af159cdd8 Replace "! empty($conf->global->$" with "getDolGlobalString($" 2024-07-03 20:05:29 +02:00
MDW
c5f8cccb88 Fix/ignore PhanPluginPrintfVariableFormatString 2024-03-17 18:56:37 +01:00
Laurent Destailleur
7866ee472b QUAL Clean code around dol_eval use 2024-03-06 17:07:24 +01:00
Frédéric FRANCE
20c1992aec fix translate with memcached and multilangs (#28510)
* fix translate with memcached and multilangs

* fix
2024-02-28 22:56:00 +01:00
thibdrev
1aef35e96d qual: phpdoc for htdocs/core/class/translate.class.php 2024-01-29 22:59:31 +01:00
MDW
2a82af74e0 Qual: Optimize + avoid recognition by trans scripts.
# Qual: Optimize + avoid recognition by trans scripts.

This optimizes the code by avoiding contactenating the string twice.
This was detected because the new shell script (#27726) identifies
this as a fixed string and it's better to adjust the code than
make the script more complex.
2024-01-24 14:50:49 +01:00
Laurent Destailleur
e950bdde26 Merge pull request #27687 from frederic34/dol_print_error_db
fix param
2024-01-22 00:03:06 +01:00
thibdrev
791f8c11dc qual: phpstan
htdocs/core/class/translate.class.php	995	Method Translate::getLabelFromKey() should return string but returns int.
htdocs/core/class/translate.class.php	1032	Method Translate::getLabelFromKey() should return string but returns int.
2024-01-20 21:05:53 +01:00
Frédéric France
03e29c6960 fix param 2024-01-20 09:22:38 +01:00
MDW
89004f7e03 Qual: Spelling htdocs/core (#27491)
Highlights:
- initialY in pdf_standard.modules.php was unused
  - remove (otherwise -> initially) (+same in other file)
2024-01-13 19:48:20 +01:00
Frédéric FRANCE
356a1a882f fix phpdoc (#27431) 2024-01-12 18:02:05 +01:00
Laurent Destailleur
ccaae7ab24 Clean code 2024-01-05 03:41:22 +01:00
Laurent Destailleur
fb083a6cfc Fix warning with rector 2023-12-13 16:33:17 +01:00
MDW
b0414dd078 Fix utf8_encoding/decoding (rather than creating new function replacements) 2023-12-07 03:37:05 +01:00
Frédéric FRANCE
61b79fda17 avoid phpstan error with phpdoc 2023-12-06 15:46:39 +01:00
Laurent Destailleur
de96af8543 Fix warning php8.2 2023-11-27 11:24:19 +01:00
Laurent Destailleur
4b214b4100 Fix #yogosha18281 2023-10-21 02:39:27 +02:00
Laurent Destailleur
1f38e54e78 Clean code 2023-10-15 15:32:35 +02:00
Laurent Destailleur
076c811690 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-08-24 00:12:52 +02:00