dolibarr/htdocs/api/class
MDW cbf8748dd2
Fix CI #39247: Fix phan notices by reorganising code (#39264)
* Fix #39247: Fix phan notices by reorganising code

# Fix #39247: Fix phan notices by reorganising code

Phan typing analysis was disturbed by conditional assignment to array fields of array items.

This reorganises the the code and uses a foreach and a loop item by reference.
The result array is filtered after the initial loop to find matching ECM items.

Not that this does not fix an unreported issue when paging is applied for filtered items
(paging is applied on the full list, not the filtered items and may result in small(er)
or empty pages).

* Qual: Fix Phan notices

# Qual: Fix Phan notices

- The page_count value was simply ceil(...) which is typed float, now casting to int.
- Add missing properties share and agenda_id to EcmFilesLine
2026-07-23 16:09:22 +02:00
..
api.class.php Fixed extrafield type check (#38769) 2026-06-14 01:13:22 +02:00
api_access.class.php Fix API token lookup with OAuth token table (#38082) 2026-05-06 22:55:18 +02:00
api_documents.class.php Fix CI #39247: Fix phan notices by reorganising code (#39264) 2026-07-23 16:09:22 +02:00
api_emailtemplates.class.php FIX: Require delete permission for email templates API (#39134) 2026-07-13 14:59:15 +02:00
api_login.class.php FIX: scope login API token reset to user row (#39132) 2026-07-13 15:48:37 +02:00
api_objectlinks.class.php Fix report by Bhuvaneswaran R, Security Engineer. Bad permission test on 2026-06-22 02:29:53 +02:00
api_setup.class.php FIX: restrict establishment setup API to admin users (#39137) 2026-07-13 14:29:21 +02:00
api_status.class.php Qual: Fix phan notices in API classes 2025-03-02 20:49:46 +01:00