htdocs/compta/sociales/class/paymentsocialcontribution.class.php 539 Property PaymentSocialContribution::$fk_typepaiement (int) does not accept string.
htdocs/intracommreport/class/intracommreport.class.php 193 Method IntracommReport::getXML() should return int|SimpleXMLElement but returns string|false.
htdocs/intracommreport/class/intracommreport.class.php 225 Method IntracommReport::getXMLDes() should return int|SimpleXMLElement but returns string|false.
htdocs/intracommreport/class/intracommreport.class.php 466 Method IntracommReport::getNextDeclarationNumber() should return string but returns (float|int).
htdocs/holiday/class/holiday.class.php 94 Property Holiday::$date_valid (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 114 Property Holiday::$date_refuse (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 124 Property Holiday::$date_cancel (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php 1603 Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php 1614 Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php 1797 Method Holiday::getCPforUser() should return float but returns null.
htdocs/holiday/class/holiday.class.php 1800 Method Holiday::getCPforUser() should return float but returns null.
htdocs/variants/class/ProductAttribute.class.php 1401 Parameter #7 $seller (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $seller (Societe) of method CommonObject::printObjectLine()
htdocs/variants/class/ProductAttribute.class.php 1401 Parameter #8 $buyer (string) of method ProductAttribute::printObjectLine() should be compatible with parameter $buyer (Societe) of method CommonObject::printObjectLine()
# Qual: Fix apstats & add phan
I fixed several issues that I ran into when running apstats.php
locally to test the phan integration.
So this commit only proposes the updates to apstats.php.
I added a test that disables phan when its configurations is not
found so it should be fine to integration in develop.
The files with exceptions can be updated as there are many less cases to
exclude.
In the project files there are a few minor spelling corrections, and
`$scrit` was changed to `$search_crit` to avoid a spelling suggestion.
* Qual: Fix/extend language scripts, integrate in pre-commit
Updated scripts to comply with shellscript.
Integrated one in pre-commit that seems useful.
* Qual: Find duplicate lang keys
* Add line numbers (to allow annotation)
* Fix fixaltlanguages.sh and add to pre-commit
* Make historical language checks 'manual' in 'pre-commit'
This adds a hook to .pre-commit-config.yaml and updates the workflow
to run php-cs with cache when it is run for all files.
When running on changed files only, the cache is not useful.
The php-codesniffer ruleset.xml was cleaned up (duplicates removal/formatted)
# Qual: Set reported php-cs severity level to 1 (travis)
After lowering the severity level to 4 for some messages, these are no longer shown
in the travis build. The '--severity=1' argument fixes this.
These warnings will not be reported because of ignore_warnings_on_exit
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>