* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* test phpstan
* clean baseline
* test
* test
* Qual: Fix phan notice with copy of attribute
* Qual: Fix phan notices with cast and updated param definition
* Qual: Fix phan notice with cast
* Qual: Update parameter type hint in utf8_check function
The parameter type hint for the $str parameter in the utf8_check function has been updated to include nullable types (string or int).
* Qual: Update User parameter type to nullable in call_trigger methods
The User parameter in call_trigger methods has been updated to be nullable to accommodate cases where the user object might not be available. This change ensures better flexibility and robustness in the codebase.
* Qual: Update phan baseline
* Qual: phpstan compatible type
* Qual: Add missing type hints for phan
- Add missing type hints for phan
- Fix indentation issues
- Improved consistency in code structure
* Qual: Update field configuration for backward compatibility
Enhanced the field configuration for backward compatibility by adding expected properties to the 'ref' field array.
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* fix(ecm): add support for custom entity in file operations
This commit addresses missing support for specifying custom `entity` values during file operations, ensuring proper handling of multi-entity configurations. Changes include:
- Adding an `entity` parameter to the `fetch` method of `EcmFiles` and ensuring proper filtering based on the provided entity.
- Modifying `dol_move`, `deleteFilesIntoDatabaseIndex`, and other file-related functions to support the `entity` parameter.
- Ensuring entity propagation in operations like file indexing, renaming, and deletion.
This resolves issues where operations were limited to the default entity value (`$conf->entity`), improving flexibility and correctness in multi-entity setups.
* fix(ecm): improve code formatting for entity checks
Ensure consistent coding style for entity-related conditions across file operations by adding spacing around `empty()` calls.
This improves code readability and maintains uniformity in the handling of multi-entity configurations within the `EcmFiles` class and related modules.
* fix(ecm): cast entity to int in SQL queries
Ensure `entity` values are explicitly cast to integers in SQL conditions, improving type safety and preventing potential SQL injection vulnerabilities.
This change applies consistent casting in multiple entity-related checks within the `EcmFiles` class to enhance code security and reliability.
* modify ecmfiles to link ecmfile to actioncomm
* ticket : link files to actioncomm
* display linked files in actioncomm cards
* Various fix (pre-commit, phpstan, usw.)
* FIX : Wrong entity to download document
* MODIFICATION : Remplacement de l'ID d'entité par l'objet dans les fonctions de gestion des fichiers pour une meilleure cohérence.
* Update files.lib.php
* Update files.lib.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>