* Qual: Enable & fix or ignore Invalid DimOffset
# Qual: Enable & fix or ignore Invalid DimOffset
The Invalid DimOffset notices occur when array keys are defined and
the index used is not amongst the known array keys.
This PR enables these notices and fixes array definitions when needed,
or ignores the notices locally if it's a false positive, or in the
baseline.txt when it does not seem to be a false positive so that
it can be fixed later
* Nullable object typing in function signature not ok for 7.0/8.4
Can't user '?User' as argument type for PHP7.0 which is required by PHP8.4.
Therefore, removing the typing specification in the function definition
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* qual: Move the function checking Spanish Tax Identification Numbers from societe.class.php to profid.lib.php
Create the function isValidTinForES($str)
* qual: Update societe.class.php using function isValidTinForES($str) from profid.lib.php
* phpcs
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* qual: Update profid.lib.php - move functions checking profid from societe.class.php
- One function checking the Tax Identification Number for PT (called NIF)
- One function checking the Tax Identification Number for DZ (called NIF)
- One function checking the Tax Identification Number for BE (called NN)
* qual: Update societe.class.php - use the isValidTinXX() functions from profid.lib.php
isValidTinForPT($this->idprof1)
isValidTinForDZ($this->idprof1)
isValidTinForBE($this->idprof1)
* typo