Commit Graph

8998 Commits

Author SHA1 Message Date
Frédéric FRANCE
64e7ccf5ef
fix phpstan (#31124)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-26 15:30:49 +02:00
Laurent Destailleur
1aae82898c Fix error management 2024-09-26 12:46:08 +02:00
Laurent Destailleur
7c2e2bfbea Fix error management 2024-09-26 12:44:38 +02:00
Frédéric FRANCE
1640fa8017
fix phpstan (#31093)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-25 22:56:28 +02:00
Laurent Destailleur
6e2589e981 FIX Position of box for shipping address in PDF 2024-09-25 13:02:27 +02:00
Laurent Destailleur
3f00ea3d6b FIX Position of box for shipping address in PDF 2024-09-25 13:01:35 +02:00
Laurent Destailleur
cc95331fc6 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-23 22:09:24 +02:00
Mohamed DAOUD
77367f349f fix inventory det (#31097) 2024-09-23 15:21:32 +02:00
Mohamed DAOUD
6bb679c632
fix inventory det (#31097) 2024-09-23 15:04:16 +02:00
Frédéric FRANCE
000173c7b9
fix phpstan (#31075)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* 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-09-23 01:59:14 +02:00
MDW
7b4c4d772c
Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related (#31086)
* Qual: Fix Array of tabs typing hints

# Qual: Fix Array of tabs typing hints

Fixed same typing hints accross several files

* Qual: Fix pdf.lib.php, project.lib.php and related files

# Qual: Fix pdf.lib.php, project.lib.php and related files

Fix most phan notices for pdf.lib.php and project.lib.php.
And fixed some items in other files in the process

* Qual: Fix notifications commande/card advtarget.tpl fichinter/card societe/card supplier_proposal/card

* Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

# Qual: Fix notices for FormSms, RssParser, ExpenseReportIk and related

Fix notices in the files for the classes above and other files to accomodate
these changes/fixes
2024-09-23 00:37:30 +02:00
Laurent Destailleur
c340c34aeb FIX Hide a feature that is a security vulnerability. 2024-09-20 00:19:36 +02:00
Laurent Destailleur
ed8560ca07 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-09-19 22:51:52 +02:00
Laurent Destailleur
0ba26aacdd FIX Debug option WORKFLOW_TICKET_LINK_CONTRACT. Bad id stored. Bad
condition to activate it. Bad position in setup. Bad selection of
catrogy on setup.
2024-09-19 22:51:33 +02:00
Frédéric FRANCE
3976525aef
add missing translations (#31037)
* add missing translations

* add missing translations
2024-09-19 21:07:50 +02:00
Frédéric FRANCE
66861de097
fix phpstan 🚨 (#31041)
* fix phpstan

* fix phpstan
2024-09-19 21:03:26 +02:00
Laurent Destailleur
0cafebab55 Fix type of field in export 2024-09-19 13:50:57 +02:00
Laurent Destailleur
26b7c59fc6 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-18 13:29:01 +02:00
Laurent Destailleur
6065984cce NEW Can force log file name using a define('SYSLOG_FILE_ADDSUFFIX')
NEW Can force ip into log file name using a define('SYSLOG_FILE_ADDIP')
2024-09-18 13:27:30 +02:00
MDW
099dbd9c1e
Qual: Fix notices for htdocs/admin/* (#30982)
* Fix (Possibly)UndeclaredGlobalVariable

* Update phan baseline

* Fix (Possibly)UndeclaredGlobalVariable (2)

* Qual: Fix notices for htdocs/admin/*

# Qual: Fix notices for htdocs/admin/*

Fixes most phan/phpstan noticies for files under htdocs/admin/* and ai.
2024-09-18 03:27:25 +02:00
MDW
115627a054
Qual: Fix PhanPluginUnknownObjectMethodCall where is the only phan notice (#30957)
* Qual: PhanPluginUnknownObjectMethodCall where it is the only phan notice

# Qual: PhanPluginUnknownObjectMethodCall where it is the only phan notice

Fix PhanPluginUnknownObjectMethodCall in files where it is the only phan notice

* Update phan baseline

* Fix $website global type in some contexts
2024-09-16 01:49:38 +02:00
Josep Lluís
fa62be55d9
Update pdf_vinci.modules.php (#30946)
The date_approve field doesn't exist and has been replaced by date_start_planned
2024-09-13 17:39:39 +02:00
MDW
f89245b354
Qual: Fix some CommonIncoterm/DocGenerator/People typings (#30940)
* Fix extraparams property typing

* Fix argument typing

* Fix 'status' argument type in calls to dolGetButtonTitle

* Fix argument2 for price to 1 (was 2)

* Fix deliveryreceipt argument

* Fix PHPDoc dol_sort_array

* Fix range for int argument

* Fix arg type for str_pad and add some PHPDoc

* Fix natsort value for dol_sort_array

* Fix arguments on calls to dol_sort_array

* Reduce phpstan exceptions

* Qual: Add type hints for Stripe objects

# Qual: Add type hints for Stripe objects

Suggest the more specific implementation of the StripObject.

* Typing, initialisation

* Qual: Fix undeclared variables

* Update phan baseline

* Update baseline

* Qual: Add type hints for Stripe objects

# Qual: Add type hints for Stripe objects

Suggest the more specific implementation of the StripObject.

* Add PHPDoc for host class properties

* Ignore false positive (phan) for deprecated property

* Improve typing

* Update baseline
2024-09-13 03:09:23 +02:00
Laurent Destailleur
bf697f83eb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-09-12 21:50:31 +02:00
MDW
76eaf8bd8d
Qual: Fix phan notices in classes related to class using getNextValue. (#30925)
* FIX 🛟 phan

* getToolTip() can take null for $coc

* Fix uninitialized vars & arg types

* PHPDoc typing, argument fixes

* PHPDoc typing, argument fixes for AdherentType

* PHPDoc typing, argument fixes for AdherentStats

* Update baseline to enable adherent notices

* Fix PHPDoc typing in api_members

* Minor bug fixes, typing

* PHPDoc api_subscriptions

* PHPDoc Societe

* Ignore empty foreach notice

* Add initialiser

* Categorie is string, old int mode is deprecated

* Fix missing initialisations

* Fix missing initialisations adherents/note

* Fix typing (cast), initialisation of var

* Fix initialisations

* Fix argument types

* Improve array PHPDoc type

* PHPDoc array type

* PHPDoc: Improve typing

* Correct argument type to getNomUrl

* Improve typing for timespent

* Fix typing for getNextValue args

* Improve typing

* Fix typing hints contrat/card

* Update baseline

* Fix typing

* Fix extraparams property typing

* Fix argument typing

* Qual: Correct covariant type

* Impove typing for timespent

* Remove exclusion no longer matched (level 6)

---------

Co-authored-by: Frédéric FRANCE <frederic34@users.noreply.github.com>
2024-09-12 21:16:42 +02:00
John BOTELLA
aaa65ddf6b
Fix v20 php8 patch001 (#30932)
* Fix PHP 8 notices, warninngs, fatal

* precommit
2024-09-12 21:10:01 +02:00
Laurent Destailleur
2b6af8ddfb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-10 02:02:37 +02:00
Laurent Destailleur
613c25b5ff Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-10 02:02:16 +02:00
Laurent Destailleur
def1cfe27e Debug clone tasks 2024-09-10 01:57:46 +02:00
Laurent Destailleur
870a5248ec Trans 2024-09-10 01:33:23 +02:00
Frédéric FRANCE
fba71ab043
fix phpstan (#30893)
* fix phpstan

* fix phpstan

* fix phpstan
2024-09-10 01:02:56 +02:00
Laurent Destailleur
53684c0825 Debug v20 - export service if module product not enabled 2024-09-09 12:00:40 +02:00
Laurent Destailleur
94eac45115 Debug v20 - export service if module product not enabled 2024-09-09 12:00:18 +02:00
Laurent Destailleur
8bb3f38890 Fix permission 2024-09-09 11:51:35 +02:00
MDW
32732d37d2
Qual: Improve typing in Export class (#30859)
* Update baseline

* Qual: Improve typing in Export class

* Add 'abstract' methods to help with typing

* Add some typing

* Improve typing in export modules

* Improve typing for AccountancyExport

* Qual: PHPDoc executeCLI (nullable arguments, range)

* PHPDoc for export function

* Fix $permissiontoClose -> $permissiontoclose

* PHPDoc - Improve AccountingJournal typing

* Improve export_journal tpl typing

* Improve html.formsetup typing

* Impove commonfieldsexport typing

* Improve extrafieldsinexport typing

* Fix typing, initialisation

* Fix typing intracommreport

* Ensure string in $error for CronJob
2024-09-09 03:15:26 +02:00
Frédéric FRANCE
797bfb27e0
fix phpstan (#30881)
* fix phpstan

* fix phpstan
2024-09-09 02:28:35 +02:00
Laurent Destailleur
11e965b6d4 The experimental and deprecated module WebserviceClient is completely
removed (SOAP technology is deprecated). May be replaced with the stable
module Webhook.
2024-09-07 01:50:41 +02:00
Frédéric FRANCE
eb04c5c427
fix phpstan (#30860)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-06 13:44:29 +02:00
Frédéric FRANCE
80d1f47d4d
fix ignored phpstan (most of expects string, int given) (#30649)
* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-05 16:05:37 +02:00
Laurent Destailleur
227e13fe31 Fix phan 2024-09-04 22:27:18 +02:00
Laurent Destailleur
001dc9378f Fix phan 2024-09-04 22:10:33 +02:00
Laurent Destailleur
310d858978 Fix phan warnings 2024-09-04 21:55:59 +02:00
Laurent Destailleur
93fa554583 Fix phan 2024-09-04 20:17:31 +02:00
Laurent Destailleur
37922f464f Fix phan 2024-09-04 19:44:01 +02:00
Laurent Destailleur
c98273fed1 Fix phan error; Currently getExample has different signature defined
into parents
2024-09-03 17:59:06 +02:00
Laurent Destailleur
8ac8451314 Typo type 2024-09-03 17:01:12 +02:00
Laurent Destailleur
c6ab1583d9 Hide warning when using a profile with not available fields 2024-09-03 16:54:07 +02:00
Laurent Destailleur
adfefb010f Fix PHP Fatal error: Can't inherit abstract function
CommonNumRefGenerator::getExample() (previously declared abstract in
ModeleProductCode)
2024-09-03 09:55:28 +02:00
Laurent Destailleur
16bb994698 Debug v21 2024-09-02 13:55:08 +02:00
Laurent Destailleur
14d5b4bcc3 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-02 12:14:51 +02:00
Laurent Destailleur
aa096719b2 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-09-02 11:18:06 +02:00
boudet jean pascal
10924547ea
FIX : attached file on first page load (#30694)
* fix attached file on first page load

* PRE-COMMIT

* set mode init

* Update 18.0.0-19.0.0.sql

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>

---------

Signed-off-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-09-01 15:13:53 +02:00
Laurent Destailleur
20270b56af Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-31 19:44:45 +02:00
Alexandre SPANGARO
e3384305b8
NEW Add export for thirdparty bank accounts (#30807) 2024-08-31 19:36:08 +02:00
Laurent Destailleur
815352e8f9 Fix permission on delete token 2024-08-31 19:26:46 +02:00
Laurent Destailleur
650ecc23bd Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-31 12:14:06 +02:00
Laurent Destailleur
264534afba Debug v20 2024-08-31 12:12:59 +02:00
Laurent Destailleur
c8e2b537c6 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-30 16:44:24 +02:00
Laurent Destailleur
f758ef89f9 Debug v20 2024-08-30 15:42:36 +02:00
Alexandre SPANGARO
7b0efa03e3
NEW Invoice line import - fk_product can be a ref (#30795) 2024-08-29 17:30:54 +02:00
MDW
c496e84916
Qual: Fix phan issues related to getNextValue() notices (#30747)
* Qual: 🛟 Fix reference to $db with $this->db

# Qual: reference to $db with $this->db

$db was undeclared, use $this->db.

* Fix suspected issue with environment max size and md5sum working on limited files

* Qual: Fix LDAP typing

* Qual: Fix some phan typing related to getNextValue()

# Qual: Fix some phan typing related to getNextValue()

This fixes a few typings in relation to getNextValue().

* Update phan baseline

* PHPDoc: set arguments as nullable (+update array types)

* Improve PHPDoc

* Force toselect type to int[]

* Enable all phan notices on actions_massactions.inc.php

* Test was wrong, can not count when it's not an array

* Update baseline

* Remove ignore for notice that no longer exists

* Update baseline

* Fix format argument

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-29 15:01:42 +02:00
MDW
a8367a6cd8
Qual: Fix getNextValue related phan notices (part2) (#30752)
* Qual: 🛟 Fix reference to $db with $this->db

# Qual: reference to $db with $this->db

$db was undeclared, use $this->db.

* Fix suspected issue with environment max size and md5sum working on limited files

* Qual: Fix LDAP typing

* Qual: Fix getNextValue related phan notices (part2)

* Update baseline

* Qual: Fix phan notice
2024-08-29 13:34:24 +02:00
Laurent Destailleur
8ab740a95f Export inventory 2024-08-29 10:46:10 +02:00
MDW
e6630cd7d1
Qual: Improve dol_syslog (#30782)
* Qual: 🛟 Fix reference to $db with $this->db

# Qual: reference to $db with $this->db

$db was undeclared, use $this->db.

* Fix suspected issue with environment max size and md5sum working on limited files

* Qual: Fix LDAP typing

* Qual: Improve dol_syslog

# Qual: Improve dol_syslog

The changes:
- Keep the log file open for less time (better for concurrency);
- Open the log file only to append data (no internal preparation for writing);
- Avoids re-assigning a constant array;
- Add PHPDoc information about the array parameters and return values;
- May reduce the computation of global settings;
- Result in a slight performance improvement.
2024-08-29 08:49:27 +02:00
Laurent Destailleur
ba16a13a89 export inventory 2024-08-28 22:01:07 +02:00
MDW
f5c7ca1769
Qual: Fix PhanPluginUnknownObjectMethodCall in classes with high occurence (#30754)
* Qual: Fix PhanPluginUnknownObjectMethodCall in import.php

* Qual: PHPDoc for import/export array types

* Qual: Add PHPDoc types to import.class.php

* Fix PhanPluginUnknownObjectMethodCall in stats.class.php

* Add methods expected on ModeleImport child classes

* Force imapemail type for phan

* Qual: Update phan baseline

* Qual: Fix Undefined/Undeclared phan notices in module_help

* Update baseline
2024-08-27 04:51:41 +02:00
Lucas Marcouiller
6d1d41bb9d
Fix inventory export profile (#30721)
* Fix inventory export profile

* fix CI

---------

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-08-23 15:24:40 +02:00
noec764
18bf0c940e
FIX: Dolibarrize DolibarrModules::insert_cronjobs() method (#24747)
* FIX: Dolibarrize DolibarrModules::insert_cronjobs() method

* Fixing style errors.

* Update DolibarrModules.class.php

---------

Co-authored-by: stickler-ci <support@stickler-ci.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-22 13:23:42 +02:00
Laurent Destailleur
ecc5f90574 Fix init cron when priority is not set. 2024-08-22 04:05:25 +02:00
MDW
d71cd352d5
Qual: Fix PhanUndeclaredMethod (#30661)
* Qual: Fix PhanUndeclaredMethod cases

* Fix PhanUndeclaredMethod cases

* Qual: Remove PhanUndeclaredMethod exceptions

* Fix spelling "disacard"

* Improve phpdoc, add abstract method to trait for typing

* Improve phpdoc typing for PHanUndeclaredMethod

* Suppress phan notices for guarded AliasNbPages calls

* Fix return value for printFile stub

* Fix getting message from Exception

* Define dummy getAllByProducts(), typing for it.

* Fix typo in comment

* Qual: Better typing for apiService (phan)

* Test that the Generic OAuth Service is provided

* Qual: Fix getSqlArrayForStats typing

* Force modTcpdfbarcode

* Correct typing hint

* Set ModelePDFAsset typehint

* Fix ModelePDFUserGroup typing hint

* Fix phan typing hints htdocs/core/modules/printing/printgcp.modules.php

* Fix write_file in ModelePDFStock*

* Update printsheet.php

* Adjust typing hint for barcode generator

* Update printsheet.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-19 02:05:27 +02:00
MDW
b0087aaf61
Qual: Enable phan on modulebuilder (#30652)
* Allow null for buyer, and force '' for  in printObjectLine(s)

* Allow null for Contact in show_actions_done

* Qual: Enable phan on modulebuilder

# Qual: Enable phan on modulebuilder

Most files of the modulebuilder template can be checked as regular files.
It will help improve the template

* Update baseline (enable modulebuilder notices)

* Add properties that are expected to exist on modules_boxes

* Qual: Ignore false positive (phan)

* Set phpdoc type to include null on formAddObjectLine

* Qual: Fixes for modulebuilder (phan, phpstan, bugs, format)

* Fix phpcs for intracom

* Make ModeleBoxes:showBox() signature match child class's

* Fix *box::showBox() phpdoc types

* Update index.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-18 18:16:08 +02:00
Laurent Destailleur
4f93bc7d09 Try to fix fatal PHP error 2024-08-17 22:47:59 +02:00
MDW
75ed925f06
Qual: Fix PhanPluginUnknownObjectMethodCall ("part 1") (#30563)
* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add typing hint to fix phan notice.

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add typing hint in phan config to fix phan notice.

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint to fix phan notice.

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for linkedObjectBlock

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for linkedObjectBlock

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for linkedObjects

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

# Qual: Fix PhanPluginUnknownObjectMethodCall (add typing hints)

Add/improve typing hint for PhanPluginUnknownObjectMethodCall

* Fix: MemberNumRefNumbers getExample does not take any arguments

Found thanks to adding the typing for phan!

* Qual: Correct forced type for $module

* Qual: Ignore phan false positive

* Qual: phan/Correct module type and ignore false positive

* Qual: phan/Ignore false positive

* Qual: phan/Ignore false positive, replace depr.prop with method

* Qual: Fix typing for count by adding is_array check

* Qual: replace depr.prop `nom` with method

* Qual: phan/Correct module type and ignore false positive

* Qual: phan/Correct module type and ignore false positive

* Qual: phan/Correct module type and ignore false positive

* Qual: phan/Fix depr.prop with getter and ignore false positive

* Qual: phan/Correct module type and ignore false positive

* Qual: phan/Correct module type and ignore false positive

* Qual: phan/Correct module type and ignore false positive

* Qual: Improve typing for mymodule template

* Make info method arguments match calls

* Make PrintingDriver abstract class because we added abstract methods

* Add phpdoc typing for phan

* Update getExample function signature for compatibility

* Update getExample function signature for compatibility

* Update getExample function signature for compatibility

* Update header wit correct information

* Update getExample method signature

* Update getExample method signature

* Correct reference to class in comment

* Force php phan typing for numbering modules

* Correct $_GLOBALS to $GLOBALS

* Add phpdoc to indicat type of properties

* Correct default to null

* Improve getNextValue typehint

* Improve getNextValue typehint

* Qual: Improve ModeleNumRefTakepos typing

* Qual: Improve ModeleNumRefRecruitmentJobPosition typing

* Fix default for $langs

* Do not use non-existing ModeleNumRefTakepos::nom

* Allow getNextValue argument to be null

* Correct $_GLOBAL into $GLOBALS

* Improve typing for ldap functions

* Allow null for outputlangs argument

* Improve typing for printOriginLine

* Improve typing for linkedObject access

* Fix PhanTypeMismatchArgumentNullableInternal and optimize

* Fix PhanPossiblyUndeclaredVariable by setting default value

* Ignore PhanPluginDuplicateExpressionAssignmentOperation - needs PHP7.4

* getToolTip does not accept null, changed to ''

* Improve getNextValue typing

* Change PrintingDriver back to normal class (instantiated)

And add errors for functions that should be overloaded

* Adjust pringOriginLine typing to match parent

* Fix phpdoc for getNextValue

* Fix phan typing

* Add/Improve phpdoc typing hints

* Qual: Adjustments to match typing

* Update typing for unit, use GETPOSTINT

* ModeleNumRefTask needs Project

* Fix several notices appearing after update from develop

* Index for choices is int, use GETPOSTINT

* Qual: Ignore empty foreach

* Force BOMLine on object line

* phan typing to indicate that linked objects are BOM

* Type the correct variable name (phan)

* Add typing for $langs

* Type to CommonNumRefGenerator (no class for availabilities)

* Resolve several phan notices after update from dev branch

* Extra typing fixes

* Move common attributes to parent class (phan)

* Add typing to Calendar class

* Improve typing hints

* Add typing to pdf_eagle_proforma

* Qual: Add typing for token in generic_oauthcallback.php

* Add typing for objMod

* Correct getNextValue function signature (phpstan)

* Fix typing (phpstan)

* Update version declarations (fix phpstan)

* Fix phpstan typing issues

* Adjust typing (phpstan)

* Qual: Update baseline & conf to detect 25% of PhanPluginUnknownObjectMethodCall
2024-08-17 19:32:52 +02:00
Laurent Destailleur
52fdd19d0f Doc 2024-08-17 19:28:17 +02:00
Laurent Destailleur
3f73447489 Fix warning on scandir for #30563 2024-08-17 17:28:18 +02:00
Laurent Destailleur
3b147a2776 Fix typo 2024-08-17 17:00:36 +02:00
Laurent Destailleur
3e714ad8fe Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-16 21:27:01 +02:00
Frédéric FRANCE
97392965e1
fix ignored phpstan (#30645)
* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan
2024-08-16 20:13:02 +02:00
MDW
54880f92cd
Qual: Fix PhanTypeMismatchProperty and some other phan notices (#30542)
* Qual: Fix PhanTypeMismatchProperty and some other phan notices

* Qual: Phan fixes for BOM

* Phan - fix fields

* fixup! Qual: Phan fixes for BOM

* Fix phpstan double array keys for syslog

* Fix $fields phpdoc

* Fix phan typing issues with intermediate var and ??

* Fix phan typing issue with ?? operator

* Ignore htdocs/install/install.forced.php for git

* Qual: Revert to original code, ignore notice

When changing the method to avoid one notice type, another one
appears.  So simply ignoring this error.

* Qual: Revert to original code, ignore notice

When changing the method to avoid one notice type, another one
appears.  So simply ignoring this error.

* Update baseline

* Qual: Phan fixes for BOM

* fixup! Qual: Phan fixes for BOM

* Fix phpstan double array keys for syslog

* Qual: Revert to original code, ignore notice

When changing the method to avoid one notice type, another one
appears.  So simply ignoring this error.

* Ignore PhanTypeSuspiciousNonTraversableForeach to allow integration

* Fix typing hints (phpstan)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-15 17:05:00 +02:00
MDW
203cbb7023
Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp (#30557)
* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Update phan baseline (remove PhanTypeInvalidLeftOperandOfNumericOp)

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Fix: Change argument '' to null as by getAvailableDiscounts signature

* Qual: Cast '' to float for Phan notice

* Fix: Convert $number with price2num before using this parameter

* Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

# Qual: Fix PhanTypeInvalidLeftOperandOfNumericOp

These changes ensure that the left operand is a numeric value

* Add cast to ensure fmod is presented with floats
2024-08-15 16:57:02 +02:00
Laurent Destailleur
aa3a4fbf52 QUAL Clean code 2024-08-15 16:53:49 +02:00
MDW
66b91c43e7
Fix: Typo in property multicurrency_tx (was:mylti...) (#30641)
# Fix: Typo in property multicurrency_tx (was:mylti...)

Fixes typo whan copying multicurrency_tx, improved some typing at the same time.
2024-08-15 16:47:22 +02:00
MDW
3d04a7195c
Qual: Updates regarding write_file(s) methods for Phan (#30511)
* Fix phpdoc for phpstan

* Add abstract write_file to ModelePDFContract

And update phpdoc for derived classes

* Fix typing for php_standard_actions writefile

* Improve phpdoc for write_files (& related)

* Add abstract write_file to ModelePDFBom

* Add abstract write_file to ModelePDFDeliveryOrder

* Add abstract write_file to ModeleExpenseReport

* Add abstract write_file to ModelePDFFicheinter

* Add abstract write_file to ModelePDFEvaluation

* Add abstract write_file to ModelePDFFactures

* Add abstract write_file to ModelePDFSuppliersInvoices

* Update ModelePDFProjects and ModelePDFTask related classes

* Qual: Add abstract write_file to ModelePdfExpedition

And update phpdoc for derived classes

* Qual: Correct reference (doc) to ModelePDFEvaluation

* Qual: Add abstract write_file to ModelePDFKnowledgeRecord

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFMo & ModelePDFMouvement

And update phpdoc for derived classes

* Qual: Set typehint to ModelePDFFicheinter

* Qual: Add abstract write_file to ModelePDFCommandes

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFPropales

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePdfReception

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSuppliersOrders

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSuppliersOrders

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSuppliersPayments

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSupplierProposal

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFWorkstation

And update phpdoc for derived classes

* Set typing for doc generator (commonobject)

* Improve typing for write_file

* Set typing for doc generator

* Qual: Add abstract write_file to ModelePDFMember

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFProduct

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFProductBatch

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFRecruitmentJobPosition

And update phpdoc for derived classes

* Add abstract write_file to ModelePDFTicket

* Add abstract write_file to ModelePDFUser

* Add abstract write_file to ModelePDFUserGroup

* Add abstract write_file to ModeleThirdPartyDoc

* Add abstract write_file to ModelePDFAsset

* Find all incompatible classes

* Qual: update phan baseline

* Set typing for doc generator (commonobject)

* Qual: update phan baseline

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-14 19:21:10 +02:00
Josep Lluís
fc03920d78
Align and padding in ref column (#30621)
Add in ref column the same align (left) and padding than description column
2024-08-14 17:37:55 +02:00
Laurent Destailleur
2c86c9b21b Clean code to swith to code_compta_client 2024-08-14 16:51:53 +02:00
MDW
e570f59e2d
Qual: Phan fixes (mainly Initial type cannot be inferred) in popular changed classes (#30604)
* Update setValueFrom $id type to include null

* Only 2 arguments for ModeleNumRefMembers::getToolTip

* Fix PhanTypeConversionFromArray

* Only 6 args for PaymentSalary::addPaymentToBank

* Fix typing hints (array -> string)

* Fix uninitialized variables

* Add cssview to attributes phpdoc

* Avoid double typing specification (Phan notice)

* Qual: Ensure variable is defined (phan)

* Ensure phpdoc typing for verif method

* Ensure phpdoc typing for getNextValue method

* Add status as data key in cols array

* Ensure preg_replace operates on string (phan)

* Correct type for desiredstock

* Fix typing with casts (phan)

* Fix check that notification already exists

* Initialise fk_parent_id to fix typing issue

* Qual: Fix phan notices for Societe & related

* Qual: Fix typing for Facture and related

* Qual: Fix typing for Product & related

* Update baseline

* Fix new phpstan notices
2024-08-14 01:24:55 +02:00
Laurent Destailleur
8810753422 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-13 23:35:07 +02:00
Laurent Destailleur
6115f0a614 Fix tabs must appears only on setup of module 2024-08-13 23:34:21 +02:00
Frédéric FRANCE
32839b138b
fix phpstan level 5 (#30565)
* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phpstan level 5

* fix phan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

fix phpstan

fix phpstan

fix phpstan

* increase level for apstat
2024-08-13 23:16:09 +02:00
thibdrev
e5c0150be4
qual: avoid double negations by introducing getDolGlobalBool() (#30618)
* Update index.php

* Update api.class.php

* Update pdf_eratosthene.modules.php

* Update pdf_sponge.modules.php

* Update pdf_cyan.modules.php

* Update partnershiputils.class.php

* Update paypalfunctions.lib.php

* Update societe.class.php

* Update functions.lib.php - create getDolGlobalBool()

* Update index.php

* Update api.class.php

* Update pdf_eratosthene.modules.php

* Update pdf_sponge.modules.php

* Update pdf_cyan.modules.php

* Update partnershiputils.class.php

* Update paypalfunctions.lib.php

* Update societe.class.php

* Update functions.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-13 22:50:31 +02:00
Frédéric FRANCE
803c3c2f30
fix phpstan sendXXX expects int (#30519)
* fix sendXXX expects int

* fix sendEmailTo expects int

* fix regression

* fix loadxxx expects int

* fix loadxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int

* fix getxxx expects int
2024-08-13 20:39:40 +02:00
Laurent Destailleur
0196cf944b Implement a generic handler for OAUTH token (tested with Mastodon) 2024-08-13 20:25:01 +02:00
Laurent Destailleur
88253bf647 WIP Work on generic OAuth service 2024-08-13 18:36:33 +02:00
Laurent Destailleur
eef5cea575 Clean code 2024-08-13 13:05:38 +02:00
lamrani abdelwadoud
d92e50fc66
New refactoring fediverse class (#30572)
* NEW Display for socialnetworks admin

* Fix pre-commit errors

* New functionality for custom socialnetworks

* Fix CTI errors

* Fix phan errors

* Fix Phan errors

* Fix display tabs for setup socialnetworks

* Fix CTI errors

* Fix CTI errors

* remove comments

* New display widget for fediverse

* Add test to the end for get_fiche_en

* Fix pre-commit and phan CTI errors

* update translation for title of widget

* Fix errors and update function loadBox

* add translation and fix error phpstan

* Refactoring Fediverse class for handling social networks in each class

* Fix CTI errors

* remove return function

* add description for attribute

* Fix phpStan errors

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-13 12:19:37 +02:00
Rafael San José
2dc7b4f173 The tables associated with the BOM module are created when it is initialized. (#30603)
Co-authored-by: Rafael San José Tovar <rafael.sanjose@x-netdigital.com>
2024-08-13 12:13:13 +02:00
Rafael San José
ac929bc24f
The tables associated with the BOM module are created when it is initialized. (#30603)
Co-authored-by: Rafael San José Tovar <rafael.sanjose@x-netdigital.com>
2024-08-13 12:12:20 +02:00
Laurent Destailleur
79f1cc95bb Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/lib/company.lib.php
2024-08-13 04:47:12 +02:00
Laurent Destailleur
4eeee464ba Code comment 2024-08-13 01:59:00 +02:00
UltraViolet33
32e4be2507
NEW add last stock movement and product nature to StocksWithBatch export (#30578)
* NEW add last stock movement and product nature to StocksWithBatch export

Add fields to the StockWithBatch export:
- date of the last stock movement
- the nature of product from llx_c_product_nature dictionary

* fix getDateLastMovementProductBatch

* remove whitespaces

* fix whitespaces

---------

Co-authored-by: Ulysse Valdenaire <uvaldenaire@easya.solutions>
2024-08-10 23:44:52 +02:00
MDW
45ed4caeb2
Qual: Enable Phan Simplify rule and fix notices (#30537)
* Qual: Phan - Enable Simplyfy expression

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Qual: Simplify expression (phan notice)

* Update functions2.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-07 03:05:02 +02:00
MDW
8b71242997
Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests (#30544)
* Remove PhanPluginDuplicateExpressionAssignmentOperation from baseline

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* fixup! Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

* Qual: Apply PhanPluginDuplicateExpressionAssignmentOperation as phan suggests

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-07 02:53:45 +02:00
Laurent Destailleur
e1117a9a67 Merge remote-tracking branch 'origin/20.0' into develop 2024-08-07 02:14:27 +02:00
Laurent Destailleur
af4763d259 Merge remote-tracking branch 'origin/19.0' into 20.0 2024-08-07 01:30:57 +02:00
MDW
d6948077b2
Qual: Fix spelling/update .pre-commit configuration (versions) (#30546)
* Qual: Update pre-commit configuration

* Qual: Update spelling

* Ignore use of deprecated constant
2024-08-07 01:20:43 +02:00
Laurent Destailleur
6532d27248 Fix trans 2024-08-07 00:23:03 +02:00
Laurent Destailleur
8e7ab422e3 Fix info 2024-08-03 18:50:24 +02:00
Laurent Destailleur
d1f1c0aa57 Clean code - Fix phpstan warning 2024-08-03 13:44:38 +02:00
Laurent Destailleur
033f0aa0a7 Fix translations 2024-08-02 14:52:34 +02:00
Laurent Destailleur
cd17e88a50 Debug v20 2024-08-02 14:37:01 +02:00
Laurent Destailleur
a41d9daa21 Debug v20 2024-08-02 14:35:42 +02:00
Laurent Destailleur
f002fb4ed1 Use the non deprecated function loadRights instead of getrights 2024-08-02 10:36:43 +02:00
Laurent Destailleur
3789332f40 Fix to force to get a token with the refresh token 2024-08-01 17:09:36 +02:00
Laurent Destailleur
edd56da1f8 Fix to force to get a token with the refresh token 2024-08-01 16:31:53 +02:00
MDW
46eb5f83c2
Qual: Updates for phpstan notices (#30509)
* Fix int<0> typing to int<0,0> for phpstan

* Fix phpdoc for phpstan

* Fix phpdoc for phpstan

* Qual: Several phpstan notice fixes

* Fix phpdoc

* Qual: totalpaid is never null, remove null test

* improve phpdoc typing

* Also return null to statisfy phpstan

* Allow null value for $var

* object->Object to make it meaningful

* Type EvalMathStack properties

* Comment out unused private methods (phpstan)

* Changes for phpstan (return values, phpdoc, code)

* Change order of tests for phpstan

* phpdoc object to Object for correct typing

* Typing hing for phpstan

* UPdate test for phpstan

* Change phpdoc position for phpstan

* Update phpdoc for phpstan

This needs further improvement

* Change $op to $ope to fix phpstan

* Update sqlite3.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-01 12:59:45 +02:00
Frédéric FRANCE
173dc1a70e
fix constructor expects int (#30512)
* constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-01 10:52:53 +02:00
Laurent Destailleur
871e01d955 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-31 14:32:55 +02:00
Laurent Destailleur
09eaf38bd1 Fix phpstan 2024-07-31 14:31:29 +02:00
Laurent Destailleur
d2bd6a03ec Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-31 13:21:02 +02:00
Laurent Destailleur
2f7a252244 Fix warnings 2024-07-31 13:09:10 +02:00
Laurent Destailleur
038ce032e0 Fix tooltip on numbering modules 2024-07-31 12:40:24 +02:00
Laurent Destailleur
a701f84543 Fix tooltip on numbering modules 2024-07-31 12:14:39 +02:00
Laurent Destailleur
feee2e13e7 CSS 2024-07-28 20:05:10 +02:00
Laurent Destailleur
9e01c45df6 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-28 16:56:07 +02:00
Laurent Destailleur
e5e1f385b5 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-07-28 16:49:12 +02:00
Laurent Destailleur
75d1fbc49f Debug v20 - fix cond to show dict, several fix in public ticket gui 2024-07-28 15:02:08 +02:00
Laurent Destailleur
7d1aa1e7f6 Debug v20 - fix cond to show dict, several fix in public ticket gui 2024-07-28 14:54:06 +02:00
sonikf
4ffb024369
fix #30456 add Not Validated warning when in draft, remove pointless info (#30475)
* fix #30456 add Not Validated warning when in draft, remove pointless info

* fix Dolibarr#30456 add Not Validated warning when in draft, remove pointless info

* remove whitspace
2024-07-26 12:12:06 +02:00
Laurent Destailleur
c9b92bb32d Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-25 18:21:47 +02:00
Laurent Destailleur
6b076821e3 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-07-25 18:20:01 +02:00
Laurent Destailleur
f4611fcec9 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-07-25 18:06:37 +02:00
Thibault Fiacre
7c9e6b1fb9
FIX lang output for sales representative on PDF (#30469) 2024-07-25 17:56:13 +02:00
Laurent Destailleur
b494d26f95 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-25 14:51:48 +02:00
Regis Houssin
a1ed02fa6d
Fix 20 missing entity filter (#30466)
* FIX missing entity filter for holiday types dict

* FIX wrong table name for field name

* FIX wrong table name (travis error)
2024-07-25 14:30:07 +02:00
Laurent Destailleur
74cbae2579 Code comment 2024-07-25 14:28:18 +02:00
atm-adrien
862befbed5
FIX : Bom tables were not created when we activate the module (#30464) 2024-07-25 14:25:22 +02:00
Regis Houssin
df932f7fea
FIX to avoid error during upgrade with pgsql (#30443) 2024-07-24 20:32:32 +02:00
Laurent Destailleur
5eb0e0785a Fix phan 2024-07-24 18:03:53 +02:00
Laurent Destailleur
f1cfbb68c6 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-22 11:23:41 +02:00
Laurent Destailleur
53bca480a1 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-07-21 14:56:20 +02:00
Laurent Destailleur
1bb6be158b CSS 2024-07-21 02:45:42 +02:00
Eric - CAP-REL
799f9f5e08
new option for elephant (#30273)
* new option for elephant

* fix typo in comment for codespell check

* Update mod_codeclient_elephant.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-21 02:29:03 +02:00
MaximilienR-easya
66d8bc4f01
NEW Module to setup OpenID Connect module (#30317)
* import openid connect custom module phase 1

* indent fix

* fix ci

* Fix ci

* Fix

* add missing lang file

* lang file

* Multiple fix: callback url overwriten by a js.php from a module, admin page path fix, add a field to set MAIN_AUTHENTICATION_OIDC_LOGIN_CLAIM

* windows-ci friendly modification

* windows-ci friendly modification

* comment

* Fix precommit

* Fix precommit

* Fix precommit

* Fix precommit

* Update lang file and conditions

* Update functions_openid_connect.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-21 02:12:03 +02:00
Laurent Destailleur
0dbc872af7 Debug v20 2024-07-20 16:24:21 +02:00
Laurent Destailleur
1496043967 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-18 19:17:46 +02:00
Laurent Destailleur
9e45367826 Code comment 2024-07-18 17:26:18 +02:00
Laurent Destailleur
6213c167fd Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-18 02:44:55 +02:00
Laurent Destailleur
a39d55474f Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-18 02:44:35 +02:00
Laurent Destailleur
b303be54fd Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-07-18 02:41:28 +02:00
lamrani abdelwadoud
56667da139
New Export stock inventory (#30401)
* New Export stock with correction

* Fix Travis CI errors
2024-07-18 00:45:23 +02:00
Laurent Destailleur
7a57b704cc Fix phan 2024-07-17 14:53:14 +02:00
Laurent Destailleur
948fecb9b5 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-07-17 14:01:44 +02:00
Alexandre SPANGARO
26eb9b4948
Situation invoice - Fix column title (#30406) 2024-07-17 13:45:51 +02:00
Sami Filali
22def4f35a
Fix #30298 - billing contact in supplier proposal (#30404)
* add external contact with billing code in supplier_proposal pdf

* update with pr returns

* Update pdf_other.php

* fix inversing condition

* Update pdf_other.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-16 22:35:09 +02:00
Sami Filali
4aa5e4578a
NEW : add option to add external billing contact on the supplier_proposal pdf (#30298)
* add external contact with billing code in supplier_proposal pdf

* update with pr returns

* Update pdf_other.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-16 22:09:39 +02:00
Laurent Destailleur
d9962e22ee FIX Import of date with type field from excel files does not work. 2024-07-16 21:38:40 +02:00
Laurent Destailleur
150e162022 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-13 18:22:59 +02:00
Alexandre SPANGARO
388ac640f6
Situation invoice - Missing Category of operations in Octopus head (#30356) 2024-07-13 18:14:36 +02:00
Laurent Destailleur
5661a381ee Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/comm/propal/class/propal.class.php
	htdocs/projet/tasks/time.php
2024-07-13 17:47:55 +02:00
Laurent Destailleur
305406d802 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0
Conflicts:
	htdocs/core/lib/functions.lib.php
2024-07-13 17:45:13 +02:00
Laurent Destailleur
88ee5ec89a Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-07-13 17:41:37 +02:00
lvessiller-opendsi
09fdb887bb
FIX expedition PDF models using units labels (#30358) 2024-07-13 17:18:05 +02:00
Laurent Destailleur
ba08148ffa Clean code 2024-07-13 01:38:02 +02:00
Frédéric FRANCE
2707475a12
fix phpstan (#30319)
* fix phpstan

* fix phpstan expects int, false given ...

* fix phpstan expects int, true given ...
2024-07-08 21:45:35 +02:00
Frédéric FRANCE
ea416aac93
replace old syntax, rename pdf models with same class name (#30271)
* replace old syntax

* replace old syntax

* replace old syntax

* replace old syntax

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* rename files with same class name

* fix class with same name

* fix class with same name

* clean code
2024-07-06 02:59:40 +02:00
Laurent Destailleur
1c52869e3b Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-07-05 16:59:07 +02:00
Frédéric FRANCE
29f223fd3c
fix checkFunctionArgumentTypes (#30249)
* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes
2024-07-04 17:47:31 +02:00
Laurent Destailleur
9af159cdd8 Replace "! empty($conf->global->$" with "getDolGlobalString($" 2024-07-03 20:05:29 +02:00
Laurent Destailleur
8b6ef4dfe0 Fix PDF_LOCALTAXx_LABEL_IS_CODE_OR_RATE 2024-07-03 15:25:19 +02:00
Laurent Destailleur
89d102c2b1 Quick hack to allow to hide vat rate 2024-07-03 14:27:57 +02:00
Vincent de Grandpré
b0cd32bf68
NEW Implementing Billable tasks on projects using new attribute "billable" (#30092)
* Implementing Billable task function on projects using new attribute in #30014

* added billable to Task->initAsSpecimen()

* default billable to 1 in initAsSpecimen

* set billable to 1 in ProjectTest::testTaskCreate

* Moving attribut usage in usage_bill_time condition of project

* PPDoc

* fusion

* pre-commit + typo

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-03 03:29:05 +02:00
Frédéric FRANCE
2f5647e4e3
fix checkFunctionArgumentTypes (#30234)
* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* add ignore

* add ignore

add ignore

add ignore

add ignore

add ignore

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes

* fix checkFunctionArgumentTypes
2024-07-03 02:30:53 +02:00
Alexandre SPANGARO
f105f9339b
Small review of asset module (#30213) 2024-07-01 13:02:08 +02:00
Alexandre SPANGARO
96afcaa476
Better comments (#30200)
* Fix language

* Fix language

* Fix language

* Fix language

* Fix language

* Fix language

* Fix language

* CI Missing language key

* Update eventorganization.lang

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-30 21:02:50 +02:00
Laurent Destailleur
4ba6b0d2f0 Clean language 2024-06-30 15:26:31 +02:00
Laurent Destailleur
1104b95137 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-27 13:47:27 +02:00
Laurent Destailleur
34aea4b5bc Debug v20 2024-06-27 00:49:50 +02:00
Laurent Destailleur
cfaadbaa7c Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-26 21:50:14 +02:00
Laurent Destailleur
d2a2e1a7e7 Fix octopus template must be visible if INVOICE_USE_SITUATIONis 2 only. 2024-06-26 17:39:01 +02:00
Alexandre SPANGARO
0cb82b4035
Situation invoice #29897 - Add specific model Octopus (#30116)
* Situation invoice #29897 - Add specific model Octopus

* Fix phan

* Comment translation

* Fix phan

* add fix to octopus

* add fix to octopus

* Add fix octopus

* fix phan

fix phan

fix phan

fix phan

* fix phan

fix phan

fix phan

fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* fix phan

* Cancel fix (compatibility php 8.x only)

* Add fix octopus

* Fix phan

* Fix phan

---------

Co-authored-by: Frédéric France <frederic.france@free.fr>
2024-06-26 17:25:15 +02:00
Laurent Destailleur
2e938fe9ef Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-24 12:44:28 +02:00
Laurent Destailleur
c54a97e923 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-06-24 01:47:18 +02:00
Frédéric FRANCE
4eec08ac84
remove deprecated and copy phan ignore for octopus (#30136) 2024-06-23 19:35:16 +02:00
Sylvain Legrand
7c9107acc0
New TCPDF v6.7.5 (#29903)
* New TCPDF v6.7.5

Update TCPDF to the last one

* Fix PHAN

* Fix PHAN
2024-06-22 16:16:11 +02:00
Laurent Destailleur
8b518d081a Add dependency on module agenda 2024-06-20 17:16:38 +02:00
Frédéric FRANCE
6cfd7d16e6
fix phpstan check class case (#30058) 2024-06-18 15:48:18 +02:00
Frédéric FRANCE
77986d3d10
fix dead catch in odt stock (#30059) 2024-06-18 15:47:46 +02:00
Frédéric FRANCE
efdc7f92b9
fix phpstan empty oldcopy is not falsy (#30049)
* fix phpstan empty olcopy is not falsy

* fix phpstan empty olcopy is not falsy

* remove code not used

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-17 13:22:20 +02:00
Frédéric FRANCE
a21af12652
fix phpstan (#30043)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpdoc

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-16 11:09:43 +02:00
Frédéric FRANCE
80b41e0398
fix phpstan (#30042)
* fix phpstan

* Update modules_import.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-15 19:43:56 +02:00
Laurent Destailleur
12f7ba82c1 Doxygen 2024-06-15 19:42:52 +02:00
Laurent Destailleur
82614d7fca Debug v20 2024-06-15 18:55:17 +02:00
Frédéric FRANCE
567e6e7c9c
fix phpstan dead catch in generic odt societe (#30017)
* fix phpstan dead catch

* fix phpstan dead catch
2024-06-15 16:03:10 +02:00
Laurent Destailleur
e4db878042 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-15 14:53:53 +02:00
Laurent Destailleur
89b56120eb Fix error when import module not compatible with PHP 2024-06-15 14:53:36 +02:00
Frédéric FRANCE
17401c2bff
fix phpstan ref_customer is not nullable (#30002) 2024-06-13 08:12:24 +02:00
Frédéric FRANCE
a6ec8a0f22
fix phpstan dead catch (#30007) 2024-06-13 08:07:16 +02:00
Frédéric FRANCE
f4d278b3db
fix odt shipping (#29991)
* fix odt shipping

* fix odt shipping

* fix odt shipping
2024-06-12 16:44:15 +02:00
Laurent Destailleur
6717ce209d Fix menu link 2024-06-12 15:44:54 +02:00
atm-corentin
1766311338
FIX : move porpale ref pdf cornas (#29989)
Co-authored-by: x <x@x.x>
2024-06-11 20:03:10 +02:00
Frédéric FRANCE
c9233d417b
fix phpstan dead catch (#29986) 2024-06-11 20:02:06 +02:00
Frédéric FRANCE
499f012081
fix phpstan dead catch (#29976) 2024-06-10 20:47:47 +02:00
Frédéric FRANCE
7ea296ff75
Fix Dead catch Exception phpstan (#29959)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

fix phpstan

fix phpstan

* fix phpstan
2024-06-10 14:26:41 +02:00
Laurent Destailleur
7a2b4938c9 FIX #29963 2024-06-10 14:23:07 +02:00
Frédéric FRANCE
b76f2acedd
fix phpstan (#29948) 2024-06-09 14:58:07 +02:00
Frédéric FRANCE
acd8fdc24e
fix phpstan level 4 (#29954)
* fix phpstan level 4

* fix phpstan level 4
2024-06-09 13:26:45 +02:00
Frédéric FRANCE
1ff0e8a821
fix an old error (#29850)
* fix an old error

* fix OdfException is never thrown in the try block

* fix OdfException is never thrown in the try block

* fix Undefined array key "name"

* fix missing translation

* fix missing translation

* fix Undefined variable $lineid

* fix warnings

* fix upload dir

* fix phpcs
2024-06-08 16:59:40 +02:00
Frédéric FRANCE
00161fba9a
fix phpstan Expression "'@phan-var string[] $prim%.... (#29928) 2024-06-08 14:53:46 +02:00
Charlène Benke
c8c220a394
FIX : create mrp table if enabled (#29921)
* create mrp table if enabled

* Update modMrp.class.php
2024-06-08 12:00:58 +02:00
Laurent Destailleur
6de472e242 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-06-05 16:32:48 +02:00
Laurent Destailleur
b1783cb813 Export profile for confrerence or booth of an event 2024-06-05 16:32:25 +02:00
Frédéric FRANCE
74806473ab
fix cti (#29842)
* fix cti odt asset

* comment unused code in template

* phpdoc

* fix unreachable code

* fix unreachable code

* fix not falsy
2024-06-05 14:55:07 +02:00
Frédéric FRANCE
a371083741
Update modBookCal.class.php (#29827) 2024-06-04 10:59:54 +02:00
Lucas Marcouiller
fd728cc28a
fix Show online payment link by using getValidOnlinePaymentMethod (#29764)
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-06-03 18:06:46 +02:00
Frédéric FRANCE
652c8526fa
fix cti (#29813)
* fix cti

* fix cti

* no photo in asset lines

* no photo in asset lines

* no photo in asset lines

* no photo in asset lines

* no photo in recruitment lines

* no photo in recruitment lines

* fix

* fix dead catch
2024-06-03 13:44:14 +02:00
Frédéric FRANCE
689cfc36eb
fix cti (#29812)
* fix cti

Dead catch - OdfException is never thrown in the try block.

* Update json.lib.php
2024-06-03 13:43:20 +02:00
Laurent Destailleur
ef3f007f51 Fix #yogosha22395 2024-06-02 22:43:54 +02:00
Laurent Destailleur
680fa14e8c Debug v20 2024-05-31 18:23:32 +02:00
Laurent Destailleur
b62cfac59b Debug v20 2024-05-31 12:54:53 +02:00
Laurent Destailleur
74c2d34e5d Debug v20 2024-05-30 13:59:16 +02:00
Laurent Destailleur
82908a30eb Clean phan warnings 2024-05-30 13:37:17 +02:00
Laurent Destailleur
48c5d9b0bc Debug v20 2024-05-29 12:26:04 +02:00
Laurent Destailleur
3dcc9c4500 Try better fix for #28194 2024-05-25 14:16:51 +02:00
Laurent Destailleur
ac4ce3d667 Try better fix for #28194 2024-05-25 14:12:53 +02:00
Laurent Destailleur
66b272b689 Debug v20 2024-05-23 13:43:03 +02:00
Laurent Destailleur
644ba77323 Clean code 2024-05-23 13:34:34 +02:00
Laurent Destailleur
d1e4205e46 Fix bad var 2024-05-23 13:05:49 +02:00
Laurent Destailleur
c8e457c73c Debug v20 2024-05-22 22:21:02 +02:00
lamrani abdelwadoud
7c02a468c5
Fix qr code in stock transf (#29743)
* Fix display Qrcode on stock transfer pdf

* Fix php run
2024-05-22 21:39:59 +02:00
Laurent Destailleur
e9e7c1e4fe Debug v20 2024-05-22 21:39:32 +02:00
Laurent Destailleur
a924b0c014 Close #29741 2024-05-22 21:30:56 +02:00
Laurent Destailleur
393e8baa7a Better position of barcode 2024-05-22 20:58:13 +02:00
Laurent Destailleur
01f584a43b Debug v20 2024-05-22 20:40:11 +02:00
lamrani abdelwadoud
5945fd8c7f
Fix display Qrcode on reception pdf (#29742)
* Fix display Qrcode on reception pdf

* Fix run phan
2024-05-22 20:31:11 +02:00
Laurent Destailleur
d7b9e7b4ef Fix warnings 2024-05-22 17:25:31 +02:00
Laurent Destailleur
8b4f94ac22 Debug v20 2024-05-22 17:10:43 +02:00
Laurent Destailleur
73cada0dc5 Debug v20 2024-05-22 16:12:56 +02:00
lamrani abdelwadoud
4f0cbb6188
NEW functionality for display codebar on pdf files (#29623)
* NEW functionality for display codebar on pdf files

* update encoding and add option to set pdf

* fix CI/phan

* fix CI/phan

* fix CI/phan

* Update pdf_rouget.modules.php

* Update pdf_eagle.modules.php

* Update pdf_rouget.modules.php

* Update pdf_rouget.modules.php

* fix undeclared variables

* Update pdf_rouget.modules.php

* Update pdf_espadon.modules.php

* Update pdf_eagle.modules.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Co-authored-by: Lucas Marcouiller <45882981+Hystepik@users.noreply.github.com>
2024-05-22 16:04:18 +02:00
Laurent Destailleur
1cccc808e7 Clean code for barcode generators 2024-05-22 15:49:33 +02:00
Laurent Destailleur
7dad1ce5a1 Module agenda is enabled by default 2024-05-22 13:10:39 +02:00
Laurent Destailleur
71524d819b Clean code 2024-05-22 00:27:42 +02:00
Laurent Destailleur
ad28872b74 Clean code 2024-05-21 20:23:24 +02:00
Laurent Destailleur
929d7e4d6b Fix bad property 2024-05-17 12:59:09 +02:00
Laurent Destailleur
5a9e0f7493 Debug v20 2024-05-17 12:53:21 +02:00
Laurent Destailleur
448d6d3381 Fix bad property 2024-05-17 12:39:25 +02:00
lvessiller-opendsi
f72232399b
NEW auto-determine piece number in FEC import (#29672)
* NEW auto-determine piece number in FEC import

* FIX float value for abs function
2024-05-15 18:10:21 +02:00
Laurent Destailleur
1d7fe9c04d Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-05-15 15:21:30 +02:00
Laurent Destailleur
cf7e44408e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-05-15 15:21:07 +02:00
atm-jonathan
868525a4f4
add update import kit (#29684) 2024-05-15 15:20:32 +02:00
IC-Mathieu
c01720ff31
NEW Can force position of signature on PDF using a setup constant (#29676)
* Fix waning during migration

* FIX-POSITION SIGNATURE ON ALL PAGES

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-15 15:12:26 +02:00
Laurent Destailleur
05602a64ec Debug v20 2024-05-14 04:30:39 +02:00
Laurent Destailleur
c2c4e683e1 Deprecate module not used and not maintained 2024-05-13 14:21:45 +02:00
Laurent Destailleur
242f00e701 Fix waning during migration 2024-05-13 12:34:02 +02:00
Laurent Destailleur
de07195aa9 Fix position 2024-05-13 12:03:08 +02:00
Laurent Destailleur
bf5e1e3e43 Clean code 2024-05-13 11:55:24 +02:00
Laurent Destailleur
130c2e2a8f Clean code 2024-05-13 11:27:56 +02:00
Laurent Destailleur
16336a66ad Rename french module name into english 2024-05-13 10:45:20 +02:00
Frédéric FRANCE
933e87ca81
Update codespell-dict.txt (#29644)
* Update codespell-dict.txt

* WYSIWYG

* phan
2024-05-10 12:34:08 +02:00
Laurent Destailleur
70a7197327 Fix warning 2024-05-05 18:30:25 +02:00
Frédéric FRANCE
d0830b3159
fix phpstan (#29602)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix travis

* fix phpstan

* fix phpstan

* fix phan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

fix phpstan

fix phpstan

fix phpstan

fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix travis

* fix phpstan

* fix phpstan

* fix phpstan

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-05 00:34:19 +02:00
Laurent Destailleur
b7317e3e7c Fix warning 2024-05-05 00:02:25 +02:00
Laurent Destailleur
f8bf23da3a Fix phpunit 2024-05-04 18:56:26 +02:00
Laurent Destailleur
efd7702bc4 Fix travis 2024-05-04 18:28:34 +02:00
Florian Mortgat
702709f890
New declare dictionaries more easily (#29600)
* NEW: method to help declare dictionaries more easily

* Example use of `declareNewDictionary()` method (redeclaring dictionaries of module Ticket with the new method)

* minor fixes: $this->db->prefix() in modTicket.class.php
2024-05-03 19:03:00 +02:00
Laurent Destailleur
94c69c08ba NEW Add option PDF_ADD_POSITION 2024-05-02 16:41:48 +02:00
Frédéric FRANCE
aac412592b
fix tests (#29573) 2024-05-02 13:02:20 +02:00
Christophe Battarel
c9c2446e1f
FIX : Avoid duplicates in insertions (#29553)
* avoid duplicates in insertions

* avoid duplicates in insertions from xslx

* Update import_xlsx.modules.php

* Update import_csv.modules.php

* Update import_csv.modules.php

---------

Co-authored-by: Christophe Battarel <christophe@altairis.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-05-01 17:41:11 +02:00
lvessiller-opendsi
1f399d9a1e
NEW input reason label in customer proposal and order export (#29540) 2024-05-01 17:35:35 +02:00
Frédéric FRANCE
e90840ca65
fix odt generation fails if missing segment (#29543)
fix odt generation fails if missing segment
2024-05-01 17:33:16 +02:00
Laurent Destailleur
bb2721754a NEW On OAuth Google login, no prompt at all if already logged in Google 2024-05-01 16:53:13 +02:00
Laurent Destailleur
c0784ac9d6 Debug v20 2024-04-30 00:28:47 +02:00
Laurent Destailleur
b648fbeee3 Fix warning 2024-04-29 20:15:38 +02:00
Laurent Destailleur
12c686a767 FIX #29531 2024-04-29 20:00:18 +02:00
Laurent Destailleur
39c4f3faca FIX #29531 2024-04-29 19:57:05 +02:00
Laurent Destailleur
5c018013ed Debug v20 2024-04-29 19:38:02 +02:00
Laurent Destailleur
c02194a3c5 Doc 2024-04-29 16:32:28 +02:00
Laurent Destailleur
f5adfeca59 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-29 13:39:20 +02:00
Philippe Grand
661582875a
Fix : Warning: Undefined property: stdClass::$PRODUIT_DEFAULT_BARCODE_TYPE in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/core/modules/barcode/mod_barcode_product_standard.php on line 187 (#29479)
* fix : Warning: Undefined variable  in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/compta/bank/various_payment/list.php on line 370

* backward

* fix : Warning: Undefined property: stdClass:: in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/core/modules/barcode/mod_barcode_product_standard.php on line 187

* fix : Warning: Undefined property: stdClass:: in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/core/modules/barcode/mod_barcode_thirdparty_standard.php on line 188

* fix :  Warning: Undefined property: stdClass:: in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/core/class/html.formbarcode.class.php on line 83

* fix : Warning: Undefined property: stdClass:: in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/core/class/html.formbarcode.class.php on line 84

* fix :Warning: Undefined property: stdClass:: in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/admin/barcode.php on line 460

* fix : Warning: Undefined property: stdClass:: in /home/httpd/vhosts/aflac.fr/domains/dol190.aflac.fr/httpdocs/admin/barcode.php on line 471

* Update mod_barcode_product_standard.php

* Update mod_barcode_thirdparty_standard.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-27 18:14:20 +02:00
Frédéric FRANCE
26da44e254
fix phpstan (#29431)
* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* remove params not used

* add WARNING
2024-04-27 12:45:50 +02:00
Laurent Destailleur
f156610572 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-27 05:03:15 +02:00
HENRY Florian
1c76738797
fix: php warning on migration (#29466) 2024-04-27 04:21:42 +02:00
Laurent Destailleur
ca57bac266 Removed a deprecated page 2024-04-26 23:45:39 +02:00
Laurent Destailleur
0ceacfdc6a Clean code 2024-04-25 11:13:34 +02:00
Laurent Destailleur
4fa1de5951 Debug v20 2024-04-24 22:37:16 +02:00
Quentin Lombat
e512f6f18d
NEW: Implement EPC QR Code on Invoices (#29445)
* Add EPC QR code to sponge invoices based on config

* fix code style issue (replace spaces by tab)

* fix code style issue (Opening brace should be on a new line)

* Fix translation issue

---------

Co-authored-by: Quentin Lombat <Quentin.Lombat@itzy.be>
2024-04-24 21:57:55 +02:00
Laurent Destailleur
7712a80c55 Fix phpstan 2024-04-24 16:48:05 +02:00
Laurent Destailleur
f1bc41d100 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-23 22:36:13 +02:00
Laurent Destailleur
dfa1d0b9b1 FIX The localtax must be exported only if activated 2024-04-23 03:19:46 +02:00
Laurent Destailleur
c5318e51f2 MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING is not used and not visible
feature so option set on by default and hidden.
2024-04-22 19:43:51 +02:00
Laurent Destailleur
60c0fc2386 Fix warning PHP 8.2 2024-04-22 18:42:34 +02:00
Laurent Destailleur
50ec5754dd Fix phpunit 2024-04-22 16:31:34 +02:00
Laurent Destailleur
623841f124 Clean code 2024-04-22 15:25:26 +02:00
Frédéric FRANCE
6de3359219
fix aurore currency (#29390)
fix aurore currency

fix aurore currency

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-20 23:29:17 +01:00
Frédéric FRANCE
5b349cc318
clean code pdf (#29399) 2024-04-20 22:36:54 +01:00
Frédéric FRANCE
dbd8657de1
Cleanaccount (#29271)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* wip

* wip

* wip
2024-04-20 21:53:40 +01:00
Laurent Destailleur
2114803276 Debug v20 2024-04-20 20:54:31 +02:00
Laurent Destailleur
2e533f692f Debug v20 2024-04-20 13:17:53 +02:00
Laurent Destailleur
4dc8eb3a44 NEW Can export security events. 2024-04-19 17:37:44 +02:00
Laurent Destailleur
e133092cb0 NEW Can export security events. 2024-04-19 17:36:57 +02:00
Laurent Destailleur
1e3b2c6a7c Try to fix GETPOSTINT regressions 2024-04-19 13:34:48 +02:00
Laurent Destailleur
612e41a8ca Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/core/class/commondocgenerator.class.php
	htdocs/core/lib/functions.lib.php
	htdocs/fourn/commande/card.php
	htdocs/install/mysql/migration/19.0.0-20.0.0.sql
	htdocs/product/stock/replenish.php
	htdocs/takepos/invoice.php
2024-04-18 02:48:52 +02:00
Laurent Destailleur
fdebfdb8c6 Fix warning 2024-04-17 23:30:07 +02:00
MDW
da9fd874bc
Qual: Fix or ignore functions.lib.php phan notices (#29344)
* Fix: LogHandler parent class, implements interface & provides $code

* Fix: functions.lib phan notices

* Fix phan notifications

* Match expected DebugBar signature - rename getRenderer

* Call the correct renderer method for the DebugBar

* Use correct key type to access array

* Ignore notices

* Update functions.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-14 04:46:33 +02:00
Laurent Destailleur
64ecea7c83 FIX #26959 2024-04-14 02:53:20 +02:00
atm-sami
2670e74403
NEW : Added a configuration in workflows (#26959)
* Added a configuration that allows an customer order to be placed in invoiced status if its total excluding tax is equal to the sum of the totals excluding tax of the linked invoices

* update for travis CI

* update

* update

* update

* update

* update for travis CI

* update travis ci

* update

* Update interface_20_modWorkflow_WorkflowManager.class.php

* Update interface_20_modWorkflow_WorkflowManager.class.php

* Update interface_20_modWorkflow_WorkflowManager.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-14 01:52:20 +02:00
Laurent Destailleur
93507620ca Fix regression fatal error 2024-04-12 01:35:32 +02:00
thomas-Ngr
0f70306c87
New : Printipp ssl (#29320)
* BasicIPP : set SSL to TRUE

* add SSL support to printing module

* trad

* Revert "BasicIPP : set SSL to TRUE"

This reverts commit 19c7c05a26.

* fix SSL
2024-04-12 01:25:30 +02:00
Laurent Destailleur
0a3f66c6c4 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	dev/tools/codespell/codespell-ignore.txt
	htdocs/admin/system/security.php
	htdocs/core/class/commondocgenerator.class.php
	htdocs/core/menus/standard/eldy.lib.php
	htdocs/product/fournisseurs.php
2024-04-11 22:57:43 +02:00
Laurent Destailleur
500381ab1a FIX Oauth login 2024-04-11 14:47:09 +02:00
MDW
bec5ff4749
Fix: Enforce/use int nature of BookKeeping(Line)::$piece_num, fix hooks typings (#29298)
* Fix: Enforce/use int nature of BookKeeping(Line)::$piece_num

* Fix typing in hookmanager class

* Improve DolHooksCollector phpdoc

* Fix PhanTypePossiblyInvalidDimOffset by testing index's existence

* Ignore PhanTypePossiblyInvalidDimOffset that phan can not detect

* Allow  to be null, initialise instead of unset
2024-04-09 23:21:28 +02:00
Zephyriony
6f524405af
QUAL Rename column fk_origin_line on shipment lines into fk_elementdet to match a generic use. (#28989)
* Update expedition.class.php 

Adapting the query and code to the new table format

* Update llx_expeditiondet.sql

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update expedition.class.php

* Update llx_expeditiondet.sql

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update expedition.class.php

* Update expedition.class.php

* rename fk_origin_line to fk_elementdet

* rename fk_origin_line to fk_elementdet

* Update 19.0.0-20.0.0.sql

---------

Co-authored-by: sonikf <93765174+sonikf@users.noreply.github.com>
2024-04-08 12:44:49 +02:00
Laurent Destailleur
7f780fcb57 It seems constant are for storing data only and used for
DolibarrModules.class.php file only (main code shoud only use
->hasRight), so i try to move them.
2024-04-08 11:53:49 +02:00
Regis Houssin
68eb5e409a
NEW module user rights enhancement (#29150)
* NEW module user rights enhancement

* FIX syntax error

* FIX fuck

* FIX syntax error

* FIX Add label with the current language (key or with PermissionXXX)

* FIX wrong test

* FIX optimize

* FIX doc

* FIX add class "Rights" for constant

* FIX replace with constants

* FIX missing constant

* FIX wrong check

* TODO sql error : data too long for column 'libelle'

* FIX syntax error

* FIX synax error "the return"... i'll be back

* FIX use operator with double question mark

* FIX add comment

* FIX just remplace integer with constant

* FIX remove unused code

* FIX add an example

* FIX remove the possibility to have entity = 0 (too complicated)

* FIX perms must not be empty

* FIX sql syntax error

* FIX phpstan undefined property DolibarrModules::$modules

* FIX same fix of frederic34

* Update llx_rights_def.sql

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

* Update DolibarrModules.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-04-08 11:40:02 +02:00
Laurent Destailleur
0e5440f256 Fix bad var 2024-04-06 13:33:42 +02:00
Laurent Destailleur
2ca5518625 Fix use of dynamic property conf->xxx->enabled must be abandonned. 2024-04-05 16:51:27 +02:00
Florian Mortgat
8b00b89f9d
FIX: $conf must reflect enabled/disabled state of modules (#29126) 2024-04-05 16:36:02 +02:00
Laurent Destailleur
389857fdf1 FIX missing trans on VolumeUnitcm3 2024-04-04 13:16:32 +02:00
Laurent Destailleur
0284ee2ee1 Fix position of description of product on left on espadon template 2024-04-04 13:05:58 +02:00
Laurent Destailleur
0fe0cd7c01 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-04-04 11:39:02 +02:00
Laurent Destailleur
56f9ec41c0 FIX regression. A lot of broken feature and corruption of data du to
deprecation management.
2024-04-03 22:34:59 +02:00
Laurent Destailleur
f03eb260de Nicer combo of companies for external modules 2024-04-03 13:20:26 +02:00
Laurent Destailleur
e671860ffa
Merge pull request #29158 from mdeweerd/typing/printipp
Fix printipp phpdoc typing
2024-04-02 11:54:49 +02:00
Francis Appels
6a330096fd Fix debug phpbarcode 2024-04-02 09:48:48 +02:00
Laurent Destailleur
7158757fa1 Debug v20 2024-03-31 23:48:29 +02:00
MDW
c1c4f95371
Fix printipp phpdoc typing 2024-03-31 22:28:08 +02:00
Laurent Destailleur
a001d48252 Clean duplicate comment 2024-03-31 21:17:20 +02:00
MDW
a974df28ab
Improve doc typing 2024-03-31 01:03:34 +01:00
MDW
9afe7dba59
Fix phan notices related to fournisseur.facture.class.php
# Fix phan notices related to fournisseur.facture.class.php

This fixes deprecations and phpdoc.
2024-03-29 23:48:40 +01:00
Laurent Destailleur
b58e439a17 Clean use of $_POST 2024-03-28 21:29:02 +01:00
Laurent Destailleur
3e8c3edd6d Clean code from _GET 2024-03-28 17:10:22 +01:00
Laurent Destailleur
787b1a1c83
Merge branch 'develop' into fix/filebyfile 2024-03-28 14:23:54 +01:00
Laurent Destailleur
a7e33e6573
Merge pull request #29047 from mdeweerd/fix/PhanPluginUnknownObjectMethodCall1
Fixes for PhanPluginUnknownObjectMethodCall
2024-03-28 14:20:57 +01:00
Laurent Destailleur
0465aeb412 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-27 11:39:26 +01:00
Laurent Destailleur
dc43a7e87b Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-27 11:22:38 +01:00
Laurent Destailleur
dd42f45d1a Fix precommit 2024-03-27 10:59:05 +01:00
MDW
1ee639bb81
Adjust to real typings 2024-03-27 10:18:35 +01:00
MDW
9a65d5fabc
Force LANGFILE constant in subclass 2024-03-27 10:18:13 +01:00
MDW
28521f7dcd
Adjust write_file signature 2024-03-27 10:18:12 +01:00
MDW
92bdf2308c
Add abstract method for improved typing check 2024-03-27 10:17:30 +01:00
Regis Houssin
2ae4f94eed FIX inventoryDeletePermission id define twice 2024-03-27 02:24:57 +01:00
Regis Houssin
f16b08fbdb FIX peut pas faire mieux ! 2024-03-27 01:21:15 +01:00
Regis Houssin
d8e102a24c FIX wrong stock permission number 2024-03-27 01:15:03 +01:00
Regis Houssin
0da7288546 FIX try to fix phan error 2024-03-26 22:47:57 +01:00
Laurent Destailleur
caf6367a4e NEW Add the process and user ID into log 2024-03-26 14:14:11 +01:00
Laurent Destailleur
d756c8c3d3 Fix unexpected quote 2024-03-24 16:13:19 +01:00
Laurent Destailleur
14278a3e8c
Update pdf_strato.modules.php 2024-03-24 16:08:58 +01:00
Laurent Destailleur
727b8c3a0d
Update pdf_strato.modules.php 2024-03-24 16:07:47 +01:00
Laurent Destailleur
d63e241050
Update pdf_strato.modules.php 2024-03-24 16:06:51 +01:00
Laurent Destailleur
247ab6d4f8
Merge branch 'develop' into new_branch_11_03_2024 2024-03-24 16:03:33 +01:00
Laurent Destailleur
3bbbf8ac38 Clean code 2024-03-24 16:03:00 +01:00
MDW
baaa7c721e
Fix PHPdoc typing ($cols, $phpmin) 2024-03-24 14:19:09 +01:00
Laurent Destailleur
a17cb8aa42 Fix var_dump 2024-03-24 07:01:24 +01:00
Laurent Destailleur
57c75a7dec Fix bad object name 2024-03-24 06:56:50 +01:00
Laurent Destailleur
946de96912 Fix for phan #29037 2024-03-24 06:42:29 +01:00
Laurent Destailleur
686463a292 Fix phan warning 2024-03-24 06:37:09 +01:00
Laurent Destailleur
d1c9475089 Better management of MD file with style HTML tags 2024-03-24 03:23:07 +01:00
Laurent Destailleur
a5fec9f06f
Merge branch 'develop' into PhanTypeInvalidRightOperandOfNumericOp 2024-03-23 20:44:54 +01:00
Laurent Destailleur
19fbfb9444
Merge pull request #29013 from frederic34/box_member_phpstan
clean code for phpstan
2024-03-23 19:36:27 +01:00
Laurent Destailleur
5c31471053
Merge pull request #29020 from frederic34/last_main_doc
fetch last_main_doc in invoice supplier
2024-03-23 17:37:38 +01:00
Laurent Destailleur
6a0678e717
Merge branch 'develop' into PhanTypeInvalidRightOperandOfNumericOp 2024-03-23 17:36:29 +01:00
MDW
3d130e3bd5
Fix double $conf->global->$conf into $conf->global->...
# Fix double $conf->global->$conf into $conf->global->...

Found with PhanTypeInvalidPropertyName - may be appropriate for backport
2024-03-23 15:17:12 +01:00
MDW
35d2dd5611
Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:47 +01:00
MDW
c97e400b9d
Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:46 +01:00
MDW
7fe931c46f
Fix PhanTypeInvalid{Left,Right}OperandOfNumericOp mostly by typing, casting, idate 2024-03-23 02:06:45 +01:00
Laurent Destailleur
d448b57cf2 Debug v20 2024-03-22 19:58:33 +01:00
Frédéric FRANCE
b78766b904 fetch last_main_doc in invoice supplier 2024-03-22 12:28:56 +01:00
MDW
8e577b6d5a
Fix typing with phpdoc 2024-03-22 09:52:33 +01:00
MDW
ba7a452451
Fix typing with phpdoc 2024-03-22 09:52:21 +01:00
MDW
37ceda734f
Fix typing with phpdoc 2024-03-22 09:52:20 +01:00
MDW
e7e2ff95f6
Fix typing with phpdoc 2024-03-22 09:52:19 +01:00
MDW
fbb3cb3588
Fix typing with phpdoc 2024-03-22 09:52:18 +01:00
MDW
e31fa59fd4
Fix typing with phpdoc 2024-03-22 09:52:17 +01:00
MDW
396bf9079e
Fix typing with phpdoc 2024-03-22 09:52:16 +01:00
MDW
2db76fbfff
Fix typing with phpdoc 2024-03-22 09:52:15 +01:00
MDW
280dadbf6c
Fix typing with phpdoc 2024-03-22 09:52:14 +01:00
MDW
afda2103ff
Fix typing with phpdoc 2024-03-22 09:52:13 +01:00
MDW
f75e5cd13a
Fix typing with phpdoc 2024-03-22 09:52:12 +01:00
MDW
d5400967ce
Fix typing with phpdoc 2024-03-22 09:52:11 +01:00
MDW
aff10352c2
Fix typing with phpdoc 2024-03-22 09:52:10 +01:00
MDW
4d5e2d23a6
Fix typing with phpdoc 2024-03-22 09:52:09 +01:00
MDW
ec855a2e5c
Fix typing with phpdoc 2024-03-22 09:52:08 +01:00
MDW
4500b30b8e
Fix typing with phpdoc 2024-03-22 09:52:07 +01:00
MDW
d148c3f955
Fix typing with phpdoc 2024-03-22 09:52:06 +01:00
MDW
8bf8972a2d
Fix typing with phpdoc 2024-03-22 09:52:05 +01:00
MDW
a7b00efafe
Fix typing with phpdoc 2024-03-22 09:52:04 +01:00
MDW
90f36e4613
Fix typing with phpdoc 2024-03-22 09:52:03 +01:00
MDW
78c1bb4619
Fix typing with phpdoc 2024-03-22 09:52:02 +01:00
MDW
2fc604b1af
Fix typing with phpdoc 2024-03-22 09:52:01 +01:00
MDW
56b6ab31f9
Fix typing with phpdoc 2024-03-22 09:51:59 +01:00
MDW
6944e71ec2
Fix typing with phpdoc 2024-03-22 09:51:58 +01:00
MDW
81c0026be6
Fix typing with phpdoc 2024-03-22 09:51:57 +01:00
MDW
378c98cac6
Fix typing with phpdoc 2024-03-22 09:51:56 +01:00
MDW
b84c9a1d47
Fix typing with phpdoc 2024-03-22 09:51:55 +01:00
MDW
58a6ef8c7c
Fix typing with phpdoc 2024-03-22 09:51:54 +01:00
MDW
83ca2f80d8
Fix PHPdoc for typing 2024-03-22 09:51:49 +01:00
Frédéric France
c76ab41c91
fix warnings with syslog checkconfiguration 2024-03-21 22:01:11 +01:00
Frédéric France
ce38158c35
fix warnings with syslog checkconfiguration 2024-03-21 21:50:42 +01:00
Laurent Destailleur
922f30eceb Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-03-21 15:38:11 +01:00
Laurent Destailleur
61eefe5fa9
Merge branch 'develop' into fix/PhanTypeMismatchReturnNullable 2024-03-21 12:51:27 +01:00
Laurent Destailleur
ae10eedf2a Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-21 11:29:16 +01:00
Laurent Destailleur
57eb393dad Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-03-21 11:22:28 +01:00
MDW
2496d20d4f
Fix nullable return with if($ok == 1) in stead of if($ok)
# Fix nullable return with if($ok == 1) in stead of if($ok)

This seems to be a bug in Phan where if($ok) changes the type of $ok.
Testing with '$ok == 1' instead fixes the issue.

This has been reported to the phan team.
2024-03-21 00:28:14 +01:00
MDW
942239b5d6
Update PHPdoc to show nullable return 2024-03-20 23:54:32 +01:00
MDW
9ecb4bd639
Fix null return by returning empty string in else case 2024-03-20 21:58:47 +01:00
MDW
e105b577ee
Fix PhanTypeMismatchReturn by changing return and logging error 2024-03-20 21:58:39 +01:00
Kamel Khelifa
9e7aeca447 FIX: Fix save directory for invoice ODT and multientities 2024-03-20 15:26:19 +01:00
Laurent Destailleur
cb3880cc62 Clean translations 2024-03-20 15:15:28 +01:00
Laurent Destailleur
96bca35d43
Merge pull request #28972 from mdeweerd/fix/PhanTypeMismatchInternal4
Fix PhanTypeMismatchInternal notifications (part 4)
2024-03-20 01:00:45 +01:00
MDW
de13b93e43
Fix arg type to preg_match(),str_replace() with casts 2024-03-19 22:52:37 +01:00
MDW
4262637a5e
Fix arg type to preg_match(),str_replace() with casts 2024-03-19 22:52:36 +01:00
MDW
e74c473e72
Fix arg type to preg_match(),str_replace() with casts 2024-03-19 22:52:35 +01:00
MDW
439c32237c
Fix arg type to preg_match() with cast 2024-03-19 22:52:34 +01:00
MDW
0590395119
Fix arg type to preg_match() with cast 2024-03-19 22:52:33 +01:00
MDW
72e3522ac5
Fix arg type to abs() with casts 2024-03-19 22:52:33 +01:00
MDW
b8fca80953
Fix arg type to preg_match(),str_replace() with casts 2024-03-19 22:52:32 +01:00
MDW
873db9b477
Fix arg type to preg_match(),str_replace() with casts 2024-03-19 22:52:31 +01:00
MDW
b9f03d7704
Fix arg type to strlen() with cast, improve conversion to int 2024-03-19 22:52:30 +01:00
MDW
bd2f8e0255
Fix arg type to str_replace() with casts 2024-03-19 22:52:29 +01:00
MDW
4dc6b98766
Fix arg type to str_replace() with casts 2024-03-19 22:52:28 +01:00
MDW
20943dc8c2
Fix arg type to str_replace() and preg_match() with casts 2024-03-19 22:52:27 +01:00
MDW
afff9695c3
Fix arg type to str_replace() and preg_match() with casts 2024-03-19 22:52:26 +01:00
Laurent Destailleur
5d073ac208 Fix hasRights into hasRight 2024-03-19 22:02:42 +01:00
Christophe Battarel
e3a5977274
Merge branch 'develop' into rdb4 2024-03-19 15:58:40 +01:00
Christophe Battarel
446b574de5 renaming of columns impact db access 2024-03-19 15:49:42 +01:00
MDW
750ffdc9d2
Fix args to substr by casting (value from user setting) 2024-03-19 02:59:21 +01:00
MDW
cde95b3037
Fix bad typing in thirdparty lib (TCPDF) with cast 2024-03-19 02:59:20 +01:00
MDW
b683ad4b66
Fix $labelToUse 2024-03-19 02:43:25 +01:00
Laurent Destailleur
ebba438fbe
Merge pull request #27528 from altairisfr/rdb
[DATA_MODEL] rename commande_fournisseur_dispatch into receptiondet_batch
2024-03-17 21:31:27 +01:00
MDW
012f284b3d
Fix PhanParamSuspiciousOrder by suppressing notification 2024-03-17 20:12:53 +01:00
Laurent Destailleur
7aef2022d6
Merge pull request #28026 from ariel-bentu/fix-pdf-lines-header-height
QUAL fix lines' title height calculation
2024-03-17 12:38:59 +01:00
Laurent Destailleur
1b9db96e4f Fix picto 2024-03-17 00:35:06 +01:00
Laurent Destailleur
75fae0f27d
Merge branch 'develop' into fix/PhanTypeMismatchReturn 2024-03-16 16:08:08 +01:00
MDW
9eed23c6d0
Fix return type by cast or typing update
# Fix return type by cast or typing update

Fix most PhanTypeMismatchReturn notifications.

The remaining ones are likely real bugs or need more Dolibarr
knowledge to fix them efficiently
2024-03-16 13:52:12 +01:00
MDW
13ab939691
Fix deprecated function calls 2024-03-16 13:27:51 +01:00
Laurent Destailleur
e994d6650f Fix regression in GETPOST limit 2024-03-16 11:41:00 +01:00
Laurent Destailleur
25dd05c35e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-03-16 10:45:55 +01:00
Frédéric France
41fccbaac5 fix phpstan warnings 2024-03-16 08:49:50 +01:00
Laurent Destailleur
79aa9fb1f1 Code simpler 2024-03-15 20:29:21 +01:00
Laurent Destailleur
372c8445fd
Merge pull request #28809 from mdeweerd/PhanPluginPrintfIncompatibleArgumentTypeWeak
Fix & enable PhanPluginPrintfIncompatibleArgumentTypeWeak occurrences
2024-03-15 16:32:40 +01:00
Laurent Destailleur
0ee6fd6bad
Merge pull request #28877 from mdeweerd/PhanTypeMismatchDefault
Fix & enable PhanTypeMismatchDefault
2024-03-15 15:44:30 +01:00
Laurent Destailleur
7d585f2a48
Merge pull request #28839 from lamrani002/fixTypagePAram
FIX PHPStan warnings
2024-03-15 15:25:51 +01:00
Lamrani Abdel
d9694bec3d fix type by adding both to doc function 2024-03-15 14:38:22 +01:00
Lamrani Abdel
4a53b3dd17 fix type by adding both to doc function 2024-03-15 14:37:35 +01:00
MDW
920e1fbe77
Fix PhanTypeMismatchDefault by removing defaults ($object is required) 2024-03-15 14:29:21 +01:00
MDW
972028bb95
Fix PhanTypeMismatchDefault by removing defaults ($object is required) 2024-03-15 14:29:20 +01:00
MDW
f91d32de86
Qual: Fix typing - module_parts['hooks'] may be empty
# Qual: Fix typing - moduleparts['hooks'] may be empty

PHPstan reported on initialisation mismatch when module_parts['hooks']
is initialised to empty array.  This change makes the fields optional.
2024-03-15 10:46:20 +01:00
Laurent Destailleur
e238cc204e
Merge pull request #28750 from mdeweerd/fix/PhanPluginSuspiciousParamPosition
Fix: Resolve several PhanPluginSuspiciousParamPosition cases
2024-03-15 08:45:25 +01:00
Laurent Destailleur
1639bc83ca
Merge pull request #28817 from frederic34/skiljob
fix warnings
2024-03-15 00:18:44 +01:00
MDW
0f8b9e73f0
Fix: Enable/fix PhanPluginPrintfIncompatibleArgumentTypeWeak occurences
# Fix: Enable/fix PhanPluginPrintfIncompatibleArgumentTypeWeak occurences

Fix the PhanPluginPrintfIncompatibleArgumentTypeWeak occurences and fix the rule
2024-03-14 23:00:47 +01:00
MDW
f5ab94634a
Fix PhanNoopBinaryOperator by commenting NOOP tests 2024-03-14 22:57:33 +01:00