Commit Graph

128726 Commits

Author SHA1 Message Date
Laurent Destailleur
fdaffc8368 Merge pull request #27707 from mdeweerd/flow/optimize
Qual: Optimize/explain workflows
2024-01-21 23:32:40 +01:00
Laurent Destailleur
f9d79cf73f Merge pull request #27708 from frederic34/patch-3
fix default value
2024-01-21 23:30:32 +01:00
Laurent Destailleur
4a5a109ebc Merge pull request #27710 from frederic34/patch-7
fix incorrect default value
2024-01-21 23:30:12 +01:00
Laurent Destailleur
80931c287c Merge pull request #27711 from frederic34/readme
fix chmod
2024-01-21 23:29:22 +01:00
Laurent Destailleur
74693660b1 Merge pull request #27709 from frederic34/patch-5
fix incorrect phpdoc
2024-01-21 23:28:19 +01:00
Frédéric France
875b2d62a1 fix chmod 2024-01-21 20:07:47 +01:00
Frédéric FRANCE
80787b661e Update fournisseur.facture.class.php 2024-01-21 19:58:44 +01:00
Frédéric FRANCE
3a1b7a16f4 fix incorrect default value 2024-01-21 19:57:11 +01:00
Frédéric FRANCE
83e7d5182e fix incorrect phpdoc 2024-01-21 19:54:42 +01:00
Laurent Destailleur
db21befda1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-01-21 19:53:19 +01:00
Frédéric FRANCE
7cc42fdec4 fix default value 2024-01-21 19:52:19 +01:00
Laurent Destailleur
f3c25d1d25 Merge pull request #27639 from mdeweerd/fix/depr/gmstrftime
Fix: Resolve gmstrftime deprecation by using dol_print_date
2024-01-21 18:50:53 +01:00
MDW
7bb1e57f6c Qual: Optimize/explain workflows
# Qual: Optimize/explain workflows

phpstan checkout took about 1.5 minutes, while pre-commit only takes 10s.
So I removed the option to the checkout option which likely makes
the difference.

I removed the IMHO useless step of installing node - it may have been
useful during setting up the workflow, but not now.

I commented on the pre-commit workflow.
2024-01-21 18:00:22 +01:00
Laurent Destailleur
f83ff02fa9 Fix warning 2024-01-21 17:37:08 +01:00
Laurent Destailleur
b82c518277 Merge pull request #27703 from mdeweerd/spelling/script_and_dict
Qual: codespell: Limit adding exceptions to git files only
2024-01-21 17:26:36 +01:00
Laurent Destailleur
967938b3d8 Merge pull request #27693 from thibdrev/patch-4
qual: phpstan
2024-01-21 17:25:38 +01:00
Laurent Destailleur
92570480cc Merge pull request #27694 from thibdrev/patch-5
qual: phpstan
2024-01-21 17:24:59 +01:00
Laurent Destailleur
218643fa9d Merge pull request #27699 from mdeweerd/tool/updatelicense
NEW: dev: Add tool to update license with developer info
2024-01-21 17:24:37 +01:00
Laurent Destailleur
6ccc1b32d5 Merge pull request #27695 from thibdrev/patch-6
qual: phpstn
2024-01-21 17:23:26 +01:00
Laurent Destailleur
1dae2f165b Merge pull request #27697 from thibdrev/patch-8
qual: phpstan
2024-01-21 17:20:44 +01:00
Laurent Destailleur
354f65cd48 Merge pull request #27698 from thibdrev/patch-9
qual:phpstan
2024-01-21 17:19:56 +01:00
Laurent Destailleur
e42700014a Update product.class.php 2024-01-21 17:19:37 +01:00
MDW
b8d7c1970b Fix: Resolve gmstrftime by using dol_print_date with
# Fix: Resolve gmstrftime by using dol_print_date with

gmstrftime is deprecated, use dol_print_date with  parameter.
Also update related typing for static check tools.
2024-01-21 16:37:05 +01:00
MDW
37620bcbbe NEW: dev: Add tool to update licence with developer info
This is a tool in php to update license information in the header
base on the git user setting.
2024-01-21 16:36:08 +01:00
MDW
39bbe766b5 Qual: codespell: Limit adding exceptions to git files only
addCodespellIgnores.sh was applied on all files, now limit to
git controlled files only.
2024-01-21 16:35:43 +01:00
thibdrev
0d2dbe3318 Merge branch 'Dolibarr:develop' into patch-4 2024-01-21 16:26:04 +01:00
thibdrev
8dfe144439 Merge branch 'Dolibarr:develop' into patch-5 2024-01-21 16:25:47 +01:00
thibdrev
ca7c703d9e Merge branch 'Dolibarr:develop' into patch-6 2024-01-21 16:25:30 +01:00
thibdrev
86623da9ec Merge branch 'Dolibarr:develop' into patch-8 2024-01-21 16:24:35 +01:00
Laurent Destailleur
8a6bd5b4d5 Merge branch 'develop' into patch-9 2024-01-21 16:14:53 +01:00
Laurent Destailleur
b128ec6a4b Merge pull request #27692 from thibdrev/patch-3
qual: phpstan
2024-01-21 16:06:44 +01:00
Laurent Destailleur
b4174e7a01 Merge pull request #27688 from libremaster/develop
CRON: fetchAll will return list of Cronjob object instead of Cronjobline
2024-01-21 16:05:38 +01:00
Laurent Destailleur
1c0fd5f4d0 Merge pull request #27702 from mdeweerd/qual/spelling
Qual: Fix spelling.
2024-01-21 16:00:33 +01:00
Laurent Destailleur
6ccea73912 Merge pull request #27704 from mdeweerd/flow/limit-cache-storage
Qual: Store phpstan cache only if not loaded or successful run
2024-01-21 16:00:04 +01:00
MDW
19ac1e4b02 Qual: Store phpstan cache only if not loaded or successful run
The PHPStan steps run a long time for the latest runs and I suspect that
this may be because of a bad cache, possibly includeing:
```
Result cache was not saved because of non-ignorable exception: Syntax error, unexpected } on line 378
``` .

This change should only save the cache if the run was successful or if no cache
was loaded.  The possibly preserves a cache that still reduces the run time.

For instance, the following got an empty cache, saved at 2024-01-19T21:28:22.18Z.
- https://github.com/Dolibarr/dolibarr/actions/runs/7589384926
That was an aborted run:
- https://github.com/Dolibarr/dolibarr/actions/runs/7589372703/job/20673878193

So I added `cancelled()` to avoid overwriting valid cache and phpstan cache
will only be written if the outcome was success or if the cache could not
be loaded before.

I also updated the version for the cache action.
2024-01-21 15:05:47 +01:00
MDW
ef95c56ecd Qual: Fix spelling.
# Qual: Fix some spelling
2024-01-21 13:37:53 +01:00
thibdrev
b4bb255f04 qual:phpstan
htdocs/product/class/product.class.php	666	Property Product::$price_ttc (float) does not accept string.
htdocs/product/class/product.class.php	667	Property Product::$price (float) does not accept string.
htdocs/product/class/product.class.php	668	Property Product::$price_min_ttc (float) does not accept string.
htdocs/product/class/product.class.php	669	Property Product::$price_min (float) does not accept string.
htdocs/product/class/product.class.php	2404	Property Product::$price (float) does not accept string.
htdocs/product/class/product.class.php	2405	Property Product::$price_ttc (float) does not accept string.
htdocs/product/class/product.class.php	2863	Property Product::$price_ttc (float) does not accept string.
2024-01-20 22:00:38 +01:00
thibdrev
8e69be7f8d qual: phpstan
htdocs/product/card.php	578	Property CommonObject::$barcode_type (int) does not accept array|string.
htdocs/product/card.php	820	Property CommonObject::$barcode_type (int) does not accept array|string.
2024-01-20 21:55:24 +01:00
thibdrev
2ea1254c6b qual: phpstn
htdocs/loan/card.php	135	Property Loan::$fk_bank (int) does not accept array|string.
htdocs/loan/card.php	143	Property Loan::$fk_project (int) does not accept array|string.
2024-01-20 21:46:38 +01:00
thibdrev
54adf6a285 qual: phpstan
htdocs/holiday/card_group.php	310	Property Holiday::$fk_validator (int) does not accept array|string.
2024-01-20 21:43:27 +01:00
thibdrev
747820da7c qual: phpstan
htdocs/fourn/facture/card-rec.php	197	Property FactureFournisseurRec::$fk_project (int) does not accept array|string.
htdocs/fourn/facture/card-rec.php	389	Property CommonObjectLine::$id (int) does not accept array|string.
2024-01-20 21:29:46 +01:00
thibdrev
02da32736e qual: phpstan
htdocs/fourn/facture/card.php	763	Property CommonInvoice::$socid (int) does not accept array|string.
2024-01-20 21:27:24 +01:00
Laurent Destailleur
18a6d9695c Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-01-20 17:55:39 +01:00
Laurent Destailleur
9eaefcfdbf Fix missing header 2024-01-20 17:16:16 +01:00
Laurent Destailleur
6e6aa29ff3 Log 2024-01-20 16:48:39 +01:00
Christophe TREMBLAY-GUILLOUX
c1c45a171a Debug 2024-01-20 14:23:17 +01:00
Christophe TREMBLAY-GUILLOUX
2f32ac6fe3 Debug 2024-01-20 14:16:14 +01:00
Christophe TREMBLAY-GUILLOUX
0701d31325 Someone did a typo mistake 2024-01-20 14:03:56 +01:00
Christophe TREMBLAY-GUILLOUX
6e1a8f2942 Merge remote-tracking branch 'upstream/develop' into develop 2024-01-20 13:42:46 +01:00
Christophe TREMBLAY-GUILLOUX
2ac3b914cb CRON: fetchAll->lines will return list of Cronjob object instead of Cronjobline object 2024-01-20 13:42:39 +01:00