Commit Graph

2646 Commits

Author SHA1 Message Date
Alexandre Janniaux
19d69eaac9 docker-dev: add support for postgresql database
The PostgreSQL database can be used as the following:

        docker compose -f docker-compose.yml -f docker-compose.postgres.yml up

This allows a bit more modularity and ensuring people can start a
PostgreSQL development setup quickly.
2025-02-02 20:09:46 +01:00
Alexandre Janniaux
2e7b90a31c docker-dev: fix LDAP configuration
The libraries are not in /usr/lib/x86_64-gnu-linux anymore, multilib not
being enabled.
2025-02-02 20:09:44 +01:00
Alexandre Janniaux
e1da6dd789 docker-dev: fix paths for docker-compose volumes
The folder was moved in c9519a1a5a
but the paths in 9a61a6e6c9 were not
updated afterwards.
2025-02-02 20:09:41 +01:00
Laurent Destailleur
1427b92c15
Merge pull request #32842 from mdeweerd/qual/phan.2025.1.19
Qual: Fix multiple Phan notices
2025-02-02 01:54:43 +01:00
MDW
42be9a3442
Qual: Update phan baseline 2025-02-02 01:26:44 +01:00
Dolibot
4e1a319113 PHPStan > Update baseline 2025-01-30 12:06:34 +00:00
Laurent Destailleur (aka Eldy)
1298229345 Doc 2025-01-30 12:10:21 +01:00
Laurent Destailleur
91324505b7
Merge pull request #32818 from frederic34/clean_phpstan_baseline
clean phpstan baseline
2025-01-29 00:04:03 +01:00
Laurent Destailleur
6b9ecb7cf9
Merge pull request #32817 from mdeweerd/qual/phan.2024.1.18
Qual: Fix phan notices
2025-01-29 00:02:10 +01:00
Laurent Destailleur
4cb3d72471
Merge pull request #32816 from mdeweerd/qual/phan.2025.1.18-a
Qual: Fix Phan notices
2025-01-28 23:58:35 +01:00
Frédéric France
23270663df
fix phpstan 2025-01-28 18:43:05 +01:00
Frédéric France
8ba644340f
fix phpstan 2025-01-28 18:33:13 +01:00
Frédéric France
877b9dc811
fix phpstan 2025-01-28 18:14:54 +01:00
Frédéric France
63b56ade21
fix phpstan 2025-01-27 22:15:37 +01:00
Frédéric France
4616a2f636
fix phpstan 2025-01-27 22:00:15 +01:00
Frédéric France
377043686a
fix phpstan 2025-01-27 21:22:52 +01:00
Frédéric France
306e66e3d7
fix phpstan 2025-01-27 20:44:10 +01:00
Frédéric France
fe2cdc47cc
fix phpstan 2025-01-27 20:15:12 +01:00
Frédéric France
e0e03f1a1a
fix phpstan 2025-01-27 20:01:20 +01:00
Frédéric France
11cb6282b6
clean phpstan baseline 2025-01-27 19:55:39 +01:00
MDW
581b079e14
Qual: Spelling fixes, cleanup exceptions
# Qual: Spelling fixes, cleanup exceptions

Fix some spelling and cleanup ignored lines
2025-01-27 19:32:38 +01:00
MDW
49315de959
Qual: Update phan baseline 2025-01-27 19:15:10 +01:00
MDW
f250f7caa5
Qual: Fix Phan notices
# Qual: Fix phan notices
2025-01-27 19:15:09 +01:00
Frédéric France
1f02f68422
clean phpstan baseline 2025-01-27 18:53:37 +01:00
MDW
ba53bd741d
Qual: Update phan baseline 2025-01-27 13:24:32 +01:00
MDW
f959aab7e2
Update baseline 2025-01-27 10:24:18 +01:00
MDW
b61d286e7d
Update baseline 2025-01-27 10:24:15 +01:00
Laurent Destailleur
adae4f0fb3 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-27 01:37:52 +01:00
Benjamin Falière
887bbfb882 Remove all constants related to multicompany 2025-01-25 15:40:54 +01:00
Benjamin Falière
dc1bb8f2f5 FIX: Disable Multicompany module in demo set
If enabled by default but not installed, it will cause many errors in various pages'
2025-01-25 14:31:13 +01:00
Dolibot
81b0ff4ebf PHPStan > Update baseline 2025-01-24 12:06:49 +00:00
MDW
f17ad3933b
Update baseline 2025-01-24 10:55:58 +01:00
Dolibot
c395b626ed PHPStan > Update baseline 2025-01-23 12:06:56 +00:00
Frédéric FRANCE
928a59a1b3
check translations 2025-01-22 08:53:33 +01:00
Dolibot
d0399fdb32 PHPStan > Update baseline 2025-01-21 12:07:00 +00:00
Laurent Destailleur
d37897b50c
Merge branch 'develop' into fix_getrights_loadrights 2025-01-21 08:34:22 +01:00
Dolibot
f7838a9459 PHPStan > Update baseline 2025-01-20 12:06:56 +00:00
Laurent Destailleur (aka Eldy)
c01e3faea4 Update eclipse rules 2025-01-16 12:09:13 +01:00
Laurent Destailleur
8b3c958e14
Merge branch 'develop' into fix_getrights_loadrights 2025-01-13 02:37:59 +01:00
Laurent Destailleur
bd78cb11aa
Merge pull request #32630 from frederic34/modProduct
fix phpstan
2025-01-13 02:20:25 +01:00
Laurent Destailleur (aka Eldy)
f6115ec70b Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-13 00:07:00 +01:00
Laurent Destailleur (aka Eldy)
e5249391f0 Debug v21 - Fix trans 2025-01-12 22:33:20 +01:00
Frédéric France
da7675c822
fix phpstan 2025-01-11 17:45:29 +01:00
Laurent Destailleur (aka Eldy)
915e6c8632 Add missing data and escape html 2025-01-11 14:53:29 +01:00
Frédéric France
b4babd6fcb
fix phpstan 2025-01-11 10:46:57 +01:00
Frédéric France
1652b5b178
fix phpstan 2025-01-11 09:53:00 +01:00
Frédéric France
44bfbb7f4a
fix phpstan 2025-01-11 09:24:21 +01:00
Frédéric France
714aa5b529
fix phpstan 2025-01-11 09:14:43 +01:00
Frédéric France
a355dbb660
fix phpstan 2025-01-11 09:04:55 +01:00
Laurent Destailleur
a9fbea57ff
Merge pull request #32602 from frederic34/modExpedition
fix phpstan
2025-01-10 12:24:21 +01:00
Frédéric France
74b445ac31
fix phpstan 2025-01-09 21:38:06 +01:00
Frédéric France
1ba37602bc
fix phpstan 2025-01-09 21:27:13 +01:00
Frédéric France
a8fa5e57d1
fix phpstan 2025-01-09 20:07:40 +01:00
Frédéric France
d6aa69a950
fix phpstan 2025-01-09 20:02:11 +01:00
Maxime Kohlhaas
1dc3a9796f Merge branch '20.0' of github.com:Dolibarr/dolibarr into 21.0 2025-01-09 19:35:01 +01:00
Maxime Kohlhaas
9535baf6d2 Fix : getRights has been replaced by loadRights in V20 2025-01-09 18:33:26 +01:00
Maxime Kohlhaas
76c98a4666 Merge branch '21.0' of github.com:Dolibarr/dolibarr into develop 2025-01-09 18:24:41 +01:00
Maxime Kohlhaas
751e21be44 Merge branch '20.0' of github.com:Dolibarr/dolibarr into 21.0 2025-01-09 18:23:38 +01:00
Frédéric France
df23a371b7
fix phpstan 2025-01-09 18:22:53 +01:00
Frédéric France
cbefb5a2d8
fix phpstan 2025-01-09 18:18:23 +01:00
Laurent Destailleur (aka Eldy)
539c8b3e74 Fix remove tables not into project 2025-01-09 02:28:00 +01:00
Frédéric France
fa2be8a553
fix phpstan 2025-01-07 18:54:08 +01:00
Frédéric France
d4714983f1
fix phpstan 2025-01-07 18:31:56 +01:00
Frédéric France
b6fc9f4d86
fix phpstan 2025-01-07 18:30:27 +01:00
Frédéric France
e2a6a94a52
fix phpstan 2025-01-06 21:02:02 +01:00
Frédéric France
86e1625793
fix phpstan 2025-01-06 18:27:30 +01:00
Frédéric France
62a230b047
Merge remote-tracking branch 'upstream/develop' into fix_phpstan_2025_01_05_01 2025-01-06 18:09:12 +01:00
Laurent Destailleur (aka Eldy)
935e7e6d31 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-06 17:44:06 +01:00
Laurent Destailleur (aka Eldy)
7f5939c8c3 Update mysql 2025-01-06 16:53:57 +01:00
Frédéric France
c2c99c0a2d
fix phpstan 2025-01-05 21:09:21 +01:00
Frédéric France
57b440677a
Merge remote-tracking branch 'upstream/develop' into fix_phpstan_2025_01_05_01 2025-01-05 19:02:46 +01:00
Frédéric France
9eb58c9ce9
fix phpstan 2025-01-05 19:02:28 +01:00
Frédéric France
2977a1af0e
fix phpstan 2025-01-05 18:55:59 +01:00
Frédéric France
4187e87dc4
fix phpstan 2025-01-05 18:44:12 +01:00
Laurent Destailleur (aka Eldy)
2c2ac2a48f Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-05 18:38:48 +01:00
Frédéric France
7a5356397f
fix phpstan 2025-01-05 17:23:31 +01:00
Frédéric France
68badc13ab
Merge remote-tracking branch 'upstream/develop' into fix_phpstan_2025_01_05 2025-01-05 17:11:38 +01:00
Frédéric France
a82c517e09
fix phpstan 2025-01-05 17:09:38 +01:00
Laurent Destailleur
4f989c14c9
Merge branch 'develop' into fix/copyrighttool 2025-01-05 16:32:30 +01:00
Laurent Destailleur (aka Eldy)
9b52c4a10a Fix CI github 2025-01-05 16:30:56 +01:00
MDW
83f350bea4
Fix: Copyright generation when single year 2025-01-05 15:16:18 +01:00
Laurent Destailleur (aka Eldy)
9a61a6e6c9 Update files after moving build into dev/ 2025-01-05 14:46:26 +01:00
Laurent Destailleur (aka Eldy)
c9519a1a5a Move dir build into dev/build 2025-01-05 14:28:07 +01:00
Frédéric France
8bc92f66f0
refresh baselines 2025-01-02 20:22:47 +01:00
MDW
116c3d01ee
Update phan baseline 2024-12-31 15:26:29 +01:00
Frédéric France
1ab4e57ab9
fix phan and phpstan 2024-12-17 20:32:52 +01:00
Frédéric France
6f2611cf74
fix phan 2024-12-17 18:36:52 +01:00
Laurent Destailleur (aka Eldy)
8813d7918d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-12-17 12:10:20 +01:00
Laurent Destailleur (aka Eldy)
f8a36a0283 Add link to CVE.org 2024-12-17 11:07:57 +01:00
Frédéric France
0299cb8296
clean phan baseline 2024-12-16 20:48:30 +01:00
Laurent Destailleur (aka Eldy)
77c5fe5500 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-12-06 12:21:22 +01:00
Laurent Destailleur (aka Eldy)
d897ef74c1 Fix bug due to mix periode / period 2024-12-06 12:21:00 +01:00
MDW
d48a2e907f
Qual: Fix phan notices (mostly in box files)
# Qual: Fix phan notices (mostly in box files)

Fix several phan notices reported in box files and a few extra cases.
2024-12-04 23:41:04 +01:00
Laurent Destailleur (aka Eldy)
c06a474651 Rename and move conf file 2024-11-28 11:54:55 +01:00
Laurent Destailleur
d823f3281d
Update README.md 2024-11-28 11:36:13 +01:00
Laurent Destailleur
10bc40dbb6
Update README.md 2024-11-27 21:00:49 +01:00
Laurent Destailleur
cf02607742
Update README.md 2024-11-27 17:09:33 +01:00
Laurent Destailleur
6d9ac0c14f
Update README.md 2024-11-27 17:09:17 +01:00
Laurent Destailleur
22bd6bd108 Fix initdemo 2024-11-27 16:37:14 +01:00
Laurent Destailleur
c280593d7f Debug v21 - test if command exist 2024-11-27 16:21:23 +01:00
Laurent Destailleur
b9976a2429 Fix trans 2024-11-26 19:18:43 +01:00
Laurent Destailleur
cf5e5d7dbd Fix use of phpstan file 2024-11-19 18:41:33 +01:00
Laurent Destailleur
1386d8c388 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-11-19 04:21:29 +01:00
MDW
7304048afb
Qual: Fix phan notices (#31996)
# Qual: Fix phan notices

Fix phan notices up to htdocs\core\ajax\selectsearchbox.php.
2024-11-19 03:07:18 +01:00
MDW
3685032671
Qual: Fix phan notices (#31990) 2024-11-19 00:09:38 +01:00
MDW
58fa1ac626
Qual: Fix phan notices (#31962) 2024-11-18 15:40:54 +01:00
MDW
78fde76f61
Qual: Fix some phan notices (#31948) 2024-11-16 17:59:26 +01:00
moreauftheobald
4b9a5db62f
Tracking conf->module->enabled 1 (#31895)
* Fix Php 8 warning on commande dispach

* Tracking $conf->module->enabled

---------

Co-authored-by: Theobald <f.moreau@theobald-groupe.com>
2024-11-15 23:02:49 +01:00
MDW
e0ef6e1969
Qual: Cleanup commits_byversion (#31828) 2024-11-15 14:12:12 +01:00
Frédéric FRANCE
ec91ed2af9
test action (#31815)
* NEW : Add category feature on Fichinter

category update

* Update viewcat.php

* Update categories.lang

* Update categorie.class.php

* Update categories.lang

* Update viewcat.php

* Update viewcat.php

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* test action

* clean baseline

Debug v21

NEW: use Expedition::$date_shipping property in card and list (#31701)

* NEW: use Expedition::$date_shipping property in card and list

* FIX: translation

* FIX: PHPStan rebutal

* FIX: not a great idea to copy and not edit comment

* FIX: on create, expected delivery date should precede sending date

* Update card.php

* Update list.php

* Update list.php

* Update list.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>

clean baseline

clean baseline

clean baseline

* clean baseline

* clean baseline

* merge

* fix

* fix

* fix

* fix

* fix

* fix

* fix translations

* fix translations

* fix translations

* fix translations

* fix

* fix filters

* fix filters

* fix filters

* fix filters

* fix

---------

Co-authored-by: Charlène Benke <1179011+defrance@users.noreply.github.com>
2024-11-15 14:09:04 +01:00
Lucas Marcouiller
3cfda29d0d
fix add v20 in script for contributors (#31818)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-11-14 23:28:00 +01:00
MDW
5d9565f32a
Qual: Update phan baseline (#31808) 2024-11-14 01:28:40 +01:00
Frédéric FRANCE
9067c6deec
replace deprecated (#31803)
* replace deprecated

* replace deprecated
2024-11-14 00:16:43 +01:00
Laurent Destailleur
714dc0c4b3 Try to exclude phan 2024-11-14 00:06:45 +01:00
Laurent Destailleur
4415246d46 Exclude dir for phan 2024-11-14 00:03:31 +01:00
Frédéric FRANCE
e5320c2302
fix phpstan (#31801)
* fix phpstan

* fix phpstan

* fix phpstan

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc

* add phpdoc
2024-11-13 21:21:15 +01:00
MDW
56dc321665
Qual: Fix phan notices (in order of appearance) (#31768)
* Qual: Fix phan notices (in order of appearance)

* Qual: Fix phan notices (in order of appearance)/2
2024-11-12 00:35:14 +01:00
Frédéric FRANCE
273386f52f
display fichinter rec link (#31767)
* display fichinter rec link

* display fichinter rec link

* display fichinter rec link

* display fichinter rec link

* display fichinter rec link

* display fichinter rec link
2024-11-11 18:26:57 +01:00
MDW
9ec4618199
Qual: Fix FunctionArray phan notices (#31754)
* Qual: Fix FunctionArray phan notices

* Fix class name in typing of htdocs/modulebuilder/index.php

* Fix customreports phpdoc

* Adjust file type after completeFileArrayWithDatabaseInfo

* Further phpdoc typing improvements

* More phpdoc

* Improve typing with cast on position field

* Force phpstan version

* Add phpstan exception

* Fix array index type + adjust phan config comment
2024-11-11 14:48:18 +01:00
Frédéric FRANCE
661059ca9a
fix phpstan (#31763)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-11 14:33:53 +01:00
MDW
67d932e7de
Qual: Fix phpdoc for *ArrayMethod* args/return values (non api_) (#31719) 2024-11-08 14:43:12 +01:00
Frédéric FRANCE
4f777f58dc
fix ecmfile tooltip (#30993)
* Update ecmfiles.class.php

* Update ecm.lang

* Update ecmfiles.class.php

* add translations

* wip

* wip

* enhance tooltip

* fix

* fix

* fix

* fix ajaxtooltip

* fix picto

* fix picto

* fix sql

* tooltip

* tooltip

* test
2024-11-07 05:07:41 +01:00
MDW
278d301f32
Qual: Fix phan/phpstan notices in class files (part 6) (#31634)
* Qual: Fix notices for paymentdonation...workstationusergroup.class

* Qual: Fix PhanPluginRedundantReturnComment, update baseline

* Qual: Complete array phpdoc for properties
2024-11-06 23:57:45 +01:00
MDW
178d748cad
Qual: Fix phan/phpstan notices in class files (part 5) (#31617)
* Qual: fix commonstickergen..don.class

* Fix notifications for pdf_paiement...cronjob.class

* Qual: Fix notifications for emailcollector..price_parser.class

* Ensure that NULL is used in the database when fk's are 0/empty

* Fix notifications for pdf_paiement...cronjob.class

* Cope with updated phpstan, and make fk_origin_stock int in multiple locations
2024-11-06 20:15:15 +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
e7539f2e19
Qual: Fix notices in .lib.php files (#31672)
* Qual: Fix notices in .lib.php files

* Update wrapper.php

* Update availabilities_card.php

* Update index.php

* Update document.controller.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 12:32:13 +01:00
MDW
f4ff437026
Qual: Fix phan/phpstan notices in class files (part 4) (#31598)
* Qual: Fix phan notices for DolibarrModules.class

* Qual: Fix notices for classes actioncomm..task.class.php

* fixup! Qual: Fix notices for classes actioncomm..task.class.php

* Qual: Fix new notices blocking PR
2024-10-30 21:33:30 +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
Frédéric FRANCE
fd7ac6f8e2
Update ignore_translation_keys.lst (#31604)
* Update ignore_translation_keys.lst

* Update setup.php
2024-10-28 14:41:04 +01:00
Laurent Destailleur
829edfe651 Debug v21 2024-10-28 12:12:27 +01:00
Laurent Destailleur
850f1ef143
Update README.md 2024-10-27 23:02:45 +01:00
sonikf
1778e56745
NEW: PDF add discount total if line discount exists (#31483)
* NEW: PDF add total discount if line discount exists

* NEW: PDF add total discount if line discount exists

* NEW: PDF add discount total if line discount exists

* NEW: PDF add discount total if line discount exists

* NEW: PDF add discount total if line discount exists

* NEW: PDF add discount total if line discount exists

* php doc

* Add missing translation

* fix missing translation
2024-10-26 18:29:06 +02:00
MDW
67e9eaff46
Qual: Fix phan/phpstan notices in class files (part 2) (#31523)
* Qual: Fix phan notices in class files (part 2)

* Qual: Fix phan notices doleditor...events.class

* Qual: Fix phan notices defaultvalues...formprojet.class

* Qual: Fix notices formsetup...formwebsite.class

* Qual: Fix phan notices in class files (part 2)

* Qual: Fix phan notices doleditor...events.class

* Qual: Fix phan notices defaultvalues...formprojet.class

* Qual: Fix notices formsetup...formwebsite.class
2024-10-26 18:24:40 +02:00
MDW
0ac595364b
Qual: Fix phan/phpstan notices in class files (part 1) (#31501)
* Ignore phpstan configuration for spelling

* Qual: Fix phan notices in class files
2024-10-25 21:00:02 +02:00
MDW
acda13eddf
Qual: Fix phan/stan notices for facture-rec.class (#31489)
* Qual: Fix phan/stan notices for facture-rec.class

* Update fournisseur.facture-rec.class.php

* Update fournisseur.facture.class.php

* Update fournisseur.facture-rec.class.php

* Update fournisseur.facture-rec.class.php

* Update fournisseur.facture-rec.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-25 17:11:39 +02:00
MDW
fcd680d300
Qual: Fix phan & phpstan notices (#31496)
# Qual: Fix phan & phpstan notices

Fix multiple phan & phpstan notices
2024-10-25 14:20:55 +02:00
MDW
28e78d6cb4
Qual: Fix phan/stan notices for conferenceorbooth, facture-re, productcustomerprice (#31541) 2024-10-25 14:18:17 +02:00
Laurent Destailleur
9a6ec3b059 CSS 2024-10-25 13:47:24 +02:00
MDW
f3dc9a9e45
Qual: fix phan notices in interface_50_modAgenda_ActionsAuto.class (#31478)
# Qual: fix phan notices in interface_50_modAgenda_ActionsAuto.class

Fix several notices in interface_50_modAgenda_ActionsAuto.class with typing hints.
2024-10-24 01:32:10 +02:00
MDW
76d801dcb3
Qual: Fix phan by adding typing hints, fix arguments (#31466)
* Do not analyze custom

* Update baseline, ignore everything in custom

* Qual: Fix notices in files related to ticket class

* Qual: Add typing hints to tpl files + other 'fixes'

* Qual: fix typing issu gy typing intermediate variable
2024-10-20 01:57:12 +02:00
MDW
fb3972b702
Qual: Fix phan notices in some payment/strip related classes (#31453)
* fix concat

* fix overwrite

* Clean code

* Do not analyze custom

* Update baseline, ignore everything in custom

* Qual: Fix notices in files related to ticket class

* Qual: Fix companybankaccount.class

* Fix phan/phpstan notices

---------

Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
Co-authored-by: Frédéric FRANCE <frederic.france@free.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-20 00:32:01 +02:00
MDW
11c43e8c63
Fix: ticket.class phan/phpstan notices (#31448)
* Qual: Fix ticket.class notices

* Do not analyze custom

* Fix: Correct reference to cache (+phpdoc)

* Update baseline, ignore everything in custom

* Qual: Fix notices in files related to ticket class
2024-10-19 01:21:41 +02:00
MDW
cee4535975
Qual: Fix phan notices in admin.lib and tax.lib + related (#31414)
* Qual: Fix admin.lib phpstan/phan notices

* Qual: Fix some argument types in Societe methods

* Fixup phpdoc

* Qual: Improve typing for static analysis

* Qual: Improve typing for static analysis

* Fix tax typing

* Qual: further phan/phpstan notice fixes in dol_generic_project_odt

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-17 03:08:38 +02:00
MDW
8a9f86e109
Qual: Suppress PhanTypeSuspiciousNonTraversableForeach (#31382)
# Qual: Ignore PhanTypeSuspiciousNonTraversableForeach

PhanTypeSuspiciousNonTraversableForeach reports on the use of
`foreach ($object as $key => value)` which is valid accross
tested php versions (at least since PHP7.0).

So suppressing this notice.
2024-10-17 01:54:19 +02:00
MDW
9677a370e9
Qual: Nullable mysoc hint (#31393)
* Qual: Nullable mysoc hint

# Qual: Nullable mysoc hint

$mysoc can be nullable resulting in issues (#31387) so
it is best to detect these cases with static analysis

* Prevent null assignment
2024-10-17 01:44:54 +02:00
MDW
cad13e85e3
Qual: Fix smtps.class (#31403)
# Qual: Fix smtps.class

Fix most phan notices in smtps.class
2024-10-15 15:49:41 +02:00
MDW
0524358377
Qual: Fix phan notices in dolgraph class (#31399)
# Qual: Fix phan notices in dolgraph class

This fixes most notices in the dolgraph class.
2024-10-15 15:46:19 +02: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
MDW
8609df383a
Qual: fix phan notices (#31368)
* Qual: fix phan notices

# Qual: fix phan notices

Fix phan/phpstan notices, mostly in html,formmail

* Ignore phpstan exception
2024-10-14 00:36:42 +02:00
Laurent Destailleur
a255e9b5c8 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-10-13 20:58:40 +02:00