dolibarr/htdocs/core
MDW 295bbc08ec
Qual: Fix PHPStan and Phan notices (#37950)
* Qual: Update GETPOST calls to handle hint array type

# Qual: Update GETPOST calls to handle hint array type

- Updated GETPOST calls for 'amounts' and 'multicurrency_amounts' to explicitly handle array inputs by adding the 'array' type parameter

This fixes PHPStan notices where expressions expect an array.

* Qual: Set type for status label mapping in LignePrelevement (PHPStan)

# Qual: Set type for status label mapping in LignePrelevement (PHPStan)

Added type hint to property `$labelStatus`

* Qual: Add type hints to datec and datep properties in PaymentSocialContribution

# Qual: Add type hints to datec and datep properties in PaymentSocialContribution

Added type hints to datec and datep properties.

* Qual: Add type hint to MIME mapping for image file extensions

# Qual: Add type hint to MIME mapping for image file extensions

Added type hint to `$image_types`

* Qual: Better type hint for getAllItemsLinkedByObjectID method

# Qual: Better type hint for getAllItemsLinkedByObjectID method

The return type annotation for the getAllItemsLinkedByObjectID method has been updated from 'array|int' to 'string[]|int'.

* Qual: Better type hint for fetchAll return value

# Qual: Better type hint for fetchAll return value

Suggest thet fetchAll returns list of objects

* Qual: Remove array from return value hint

* Qual: Add missing type hints to Notify

* Qual: Cast resource IDs to integers in getAllResourcesOfWorkstation

# Qual: Cast resource IDs to integers in getAllResourcesOfWorkstation

Ensure returned value is list of ints as parent::getAllItemsLinkedByObjectID does not ensure value type.

* Qual: Ensure correct return type for getAllGroupsOfWorkstation

* Qual: Improve typing hints

* Qual: Improve typing hints, ignore some notices

* Qual: Fix argument type

* Qual: Improve type hints

* Qual: Improve typing hints

* Qual: Add missing type hint

* Qual: Update Phan baseline

* Qual: Remove redundant exit (PHPStan, Phan)
2026-04-21 02:28:35 +02:00
..
ajax Qual: Fix PHPStan notices (#37933) 2026-04-20 12:36:21 +02:00
boxes Qual: Fix PHPStan notices (#37933) 2026-04-20 12:36:21 +02:00
class Qual: Fix PHPStan and Phan notices (#37950) 2026-04-21 02:28:35 +02:00
data
db Qual: Fix PHPStan and Phan notices (#37950) 2026-04-21 02:28:35 +02:00
filemanagerdol Qual: Fix PHPStan and Phan notices (#37950) 2026-04-21 02:28:35 +02:00
js New : js hook for setup options (#37940) 2026-04-20 22:22:06 +02:00
lib Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 22:20:29 +02:00
login Clean code 2026-04-14 18:40:54 +02:00
menus QUAL - Supplier modules - Separate - Some ajustments (#37784) 2026-04-08 20:10:26 +02:00
modules Qual: Fix PHPStan and Phan notices (#37950) 2026-04-21 02:28:35 +02:00
tpl New js context hook for object line create tpl (#37943) 2026-04-20 22:01:27 +02:00
triggers Do not add event in agenda when we modify in draft status 2026-04-10 10:36:43 +02:00
actions_addupdatedelete.inc.php Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-12-04 19:51:48 +01:00
actions_builddoc.inc.php Debug v23 2026-03-02 20:07:43 +01:00
actions_changeselectedfields.inc.php
actions_comments.inc.php
actions_dellink.inc.php
actions_extrafields.inc.php Clean code 2026-04-03 22:39:18 +02:00
actions_fetchobject.inc.php
actions_lineupdown.inc.php
actions_linkedfiles.inc.php fix phan (#37685) 2026-04-03 03:05:32 +02:00
actions_massactions.inc.php Qual: Fix PHPStan notices (#37933) 2026-04-20 12:36:21 +02:00
actions_printing.inc.php
actions_sendmails.inc.php [FIX] Keep supplier payment presend mail form available (#37641) 2026-04-03 03:15:36 +02:00
actions_setmoduleoptions.inc.php Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0 2026-02-27 14:35:48 +01:00
actions_setnotes.inc.php Fix bad test on non existing $result 2025-10-16 21:13:00 +02:00
antispamimage.php
bookmarks_page.php
commonfieldsinexport.inc.php
commonfieldsinimport.inc.php
customreports.php Clean code 2026-04-14 17:57:48 +02:00
datepicker.php
doxygen.php
extrafieldsinexport.inc.php
extrafieldsinimport.inc.php
frames.php
get_info.php
get_menudiv.php
multicompany_page.php
photos_resize.php Fix missing several test on permission on actions 2025-09-23 16:41:53 +02:00
quickadd_page.php
redirect_if_setup_not_complete.inc.php
search.php Fix regression on search 2026-04-10 19:36:18 +02:00
search_page.php CI 2026-04-10 13:00:16 +02:00
tools.php
upload_page.php Clean code. Must use USF everywhere. 2026-04-03 21:20:59 +02:00
website.inc.php Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-20 22:20:19 +02:00