Commit Graph

148 Commits

Author SHA1 Message Date
Frédéric FRANCE
90a0d3cc28 clean phpstan baseline (#35798)
* fix missing translation

* fix missing translation

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

* clean phpstan baseline

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-17 02:01:47 +02:00
ldestailleur
0f69530cb4 Fix phpstan rules 2025-08-10 03:52:56 +02:00
ldestailleur
aa0e5c57a0 Fix CI 2025-08-10 03:49:12 +02:00
ldestailleur
7cbe50d926 More complete phpstan rule 2025-08-10 03:35:30 +02:00
ldestailleur
542539368f Fix CI 2025-05-05 21:30:32 +02:00
ldestailleur
66a79dba27 Exclude a warning that is nearly all the time a false positive 2025-03-19 14:09:19 +01:00
Laurent Destailleur (aka Eldy)
1910ca079f Test fix phpstan 2025-02-13 20:59:43 +01:00
Laurent Destailleur (aka Eldy)
e70995ca7e Fix phpstan 2025-02-13 20:16:42 +01:00
Laurent Destailleur (aka Eldy)
01b9ff7f00 Add exclude file 2025-02-13 19:34:39 +01:00
Frédéric France
01a956a48a add odtphp to phpstan check 2025-01-09 21:01:00 +01:00
Laurent Destailleur (aka Eldy)
9a61a6e6c9 Update files after moving build into dev/ 2025-01-05 14:46:26 +01:00
Frédéric France
f3abc3825f fix phpstan doc ui 2024-11-23 10:38:30 +01:00
Frédéric FRANCE
45b07ca0a1 fix phpstan (#31988)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-11-18 21:21:40 +01:00
Laurent Destailleur
ab9c7f9a31 Try to exclude phpstan false positive 2024-11-16 22:31:40 +01:00
Laurent Destailleur
a6266ce664 Try to discard a false positive of phpstan 2024-11-16 22:22:49 +01:00
Laurent Destailleur
16c46fbb03 Fix phpstan 2024-11-15 15:20:48 +01:00
Laurent Destailleur
9794bd13fe Try to reduce some ci task for devcamp bugfix contest 2024-11-15 14:50:16 +01:00
Laurent Destailleur
e6e3112ee2 Exclude admin tools ui 2024-11-13 23:37:41 +01:00
Frédéric FRANCE
2f207dd347 switching on phpstan v2 level 10 (#31764)
* switching on phpstan v2 level 10

* switching on phpstan v2 level 10

* switching on phpstan v2 level 10

* switching on phpstan v2 level 10

* switching on phpstan v2 level 10

* version

* fix phpstan

* fix phpstan

* test

* test

* test

* test

* test

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* add action to refresh phpstan baseline

* add action to refresh phpstan baseline

* add action to refresh phpstan baseline

* add action to refresh phpstan baseline

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* update baseline
2024-11-12 23:18:02 +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
Frédéric FRANCE
0349f5b513 fix unable to resolve template T (#31680) 2024-11-04 12:24:18 +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
475976a733 fix phpstan (#31597)
* fix phpstan

* fix phpstan

* fix phpstan
2024-10-28 00:53:03 +01:00
Frédéric FRANCE
0bcb54fd7e fix phpstan (#31596)
* fix phpstan

* fix phpstan
2024-10-28 00:50:51 +01:00
Frédéric FRANCE
e269c133ca fix phpstan (#31591)
* fix phpstan

* fix phpstan
2024-10-28 00:28:04 +01:00
Frédéric FRANCE
a2d4f3a039 fix phpstan (#31583) 2024-10-27 00:56:22 +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
552d504868 Qual: phpstan api_*/Ignore 'no value type specified in iterable type array' (#31568)
# Qual: phpstan api_*/Ignore 'no value type specified in iterable type array'

This phpstan notice seems to be manually added as an exception and
creates conflicts when merging.

So this updates phpstan.neon.dist for all these notices in the api_* files.
2024-10-26 18:21:33 +02:00
Frédéric FRANCE
1ec7b1d571 fix phpstan (#31566)
* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-10-26 13:22:48 +02:00
Frédéric FRANCE
0d7523d928 fix phpstan (#31567)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-10-26 13:05:05 +02:00
Frédéric FRANCE
17e69f8a21 fix phpstan (#31565)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-10-26 13:03:52 +02:00
Frédéric FRANCE
19b653a599 fix phpstan (#31564)
* fix phpstan

* fix phpstan
2024-10-26 13:03:04 +02:00
Frédéric FRANCE
701fbcc15a Update phpstan.neon.dist for level 6 (#31561) 2024-10-26 13:01:38 +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
Frédéric FRANCE
f0e5bb4ce1 fix phpstan level 6 (#31555) 2024-10-25 17:12:04 +02:00
MDW
28e78d6cb4 Qual: Fix phan/stan notices for conferenceorbooth, facture-re, productcustomerprice (#31541) 2024-10-25 14:18:17 +02:00
Frédéric FRANCE
13acd4be7a fix phpstan (#31542)
* fix phpstan

* fix phpstan
2024-10-25 14:16:10 +02:00
Frédéric FRANCE
801a759975 fix phpstan (#31543)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-10-25 14:15:39 +02:00
Frédéric FRANCE
331c5e9f4b fix phpstan (#31547)
* fix phpstan

* fix phpstan

* fix phpstan
2024-10-25 13:24:10 +02:00
Frédéric FRANCE
baa0cf6fbb add filters for phpstan level 6 (#31540) 2024-10-24 20:15:08 +02:00
MDW
0d2f1cf666 Qual: Fix phpstan notices (int expected) (#31485)
# Qual: Fix phpstan notices (int expected)

Fix several notices where int was expected (casting/phpdoc/GETPOSTINT).
Separate phpstan exceptions for methods containing 'pdf' from
other methods/functions.
2024-10-24 14:01:30 +02:00
Frédéric FRANCE
c0a5e58a41 fix phpstan add exclude for level 6 (#31482)
* fix phpstan add exclude for level 6

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-10-24 02:51:38 +02:00
Frédéric FRANCE
e2ac3330a8 fix phpstan (#31480) 2024-10-24 00:27:53 +02:00
Frédéric FRANCE
2f81c32315 fix phpstan (#31481)
* fix phpstan

* fix phpstan
2024-10-24 00:26:36 +02:00
Frédéric FRANCE
12ca029fb0 fix phpstan (#31491)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-10-23 23:28:38 +02:00
Frédéric FRANCE
b1c4912afc fix phpstan (#31493)
* fix phpstan

* fix phpstan
2024-10-23 23:26:48 +02:00
Frédéric FRANCE
a185fb4296 fix phpstan (#31479)
* fix phpstan

* fix phpstan
2024-10-20 10:13:40 +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