* Qual: Fix several phan & stan notices
# Qual: Fix several phan & stan notices
Several fixes in files while fixing UnknownClass notices
* Qual: Update prepare_head PHPDoc return types
# Qual: Update prepare_head PHPDoc return types
Provide detailed array return types for prepare_head functions.
* Fix new phan notice
* Better loadLangs typing and fix call to loadLangs
* Fix new issues (stats)
* Other fixes of new issues
* Qual: update phan baseline
* NEW Hide completed items in Link to
Hide completed items in Link to to avoid endless lists of elements
* Update html.form.class.php
* Update html.form.class.php
* Qual: Fix dolIsTms() call with empty string
# Qual: Fix dolIsTms() call with empty string
The dolibarr log indicated that dolIsTms() was called with the
empty string:
- Add code to log the caller in the log;
- Fix the dolIsTms() calls by updating project/element.php
* Fix comparison of ''<0
# Fix comparison of ''<0
As ''<0 is true, non-existing errors were added resulting in
Try to add a message in stack, but value to add is empty message
in the log.
# Qual: Fix ci (phpstan notice)
While fixing the ci notice, also fixed the array definitions
which fixes both phan notices and phpstan notices seen on cti.
Removed the exception for phan on this file
* Fix: Number of decimals for stock values ignores configuration
In the select filed for adding a new line for a proposal/invoice/... product as a line, the stock level is always printed with exactly two decimals.
The number of decimals should be controlled by the existing global variable MAIN_MAX_DECIMALS_STOCK, but it is not taken into account:
Building the stock level with the function price from the function price2num, which uses the configured number of decimals always lead to exactly two decimals.
* Fixed patch according to suggestion.
# Qual: Fix phan/stan notices in relation with UnknownObjectMethodCall
Fix notices in classes with UnknownObjectMethodCall notices or classes
related with these.
* NEW: Add option to enable PDF frame rounded corners
* NEW: function printRoundedRect
* NEW PDF frame rounded corners
* New add rounded corners in frames
* New add rounded corners in frames
* Update admin.lang
* fix incoterm frame height
* Update pdf_sponge.modules.php
* fix pre-commit
* fix pre-commit
* fix php-stan (8.2)
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* fix phan php-stan (8.2) declare property
* New add rounded corners in frames
* New add rounded corners in frames
* add phpdoc for corner radius
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* fix php-stan (8.2)
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* fix whitespace
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* New add rounded corners in frames
* fix pre-commit empty line
* fix phan php-stan (8.2)
* fix phan php-stan (8.2)
* fix Travis
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix title color
* fix phan
* fix phan
* fix phan
* fix phan
* fix phan phpdoc
* fix pre-commit
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>