* Qual: Fix phan notice
Fix PhanTypeMismatchArgumentNullable: Argument 1 ($stringtosanitize) is $origin of type ?\CommonObject|?\CommonTrigger|?\DolDeprecationHandler|?array{}|?non-empty-array<mixed,mixed>|?non-empty-string|?string but \DoliDB::sanitize() takes string defined at htdocs/core/db/DoliDB.class.php:187 (expected type to be non-nullable)
* Qual: Fix PhanPluginSuspiciousParamPosition
# Qual: Fix PhanPluginSuspiciousParamPosition
Fix notices by using intermediate variable name that matches the parameter of the called function
where the original parameter name matches the name of a parameter in another position
* Qual: Fix PhanTypeMismatchArgument
# Qual: Fix PhanTypeMismatchArgument
Fix PhanTypeMismatchArgument: Argument 1 ($stringtosanitize) is $local of type int but \DoliDB::sanitize() takes string
in get_localtax_by_third($local) where local is an int already.
So use cast to (int) instead.
Also limit typehint of local to 1 and 2 which are the only allowed values
* Qual: Fix PhanTypeMismatchArgument in cloneCategories()
# Qual: Fix PhanTypeMismatchArgument in cloneCategories()
The argument $toId which is already an integer was passed to DoliDB::sanitize() which expects a string.
So casting to (int) instead to fix this.
* Qual: Ignore complex PhanUndeclaredStaticProperty
# Qual: Ignore complex PhanUndeclaredStaticProperty
Accessing static property provided by a trait on some classes - ignore the phan notice
* Qual: Phan ignore PhanUndeclaredMethod for getPossibleLevels
* Qual: Add typing hints for phan
* Qual: Add typehint for phan
* Qual: Remove redundant semicolon in objectonoff.php
# Qual: Remove redundant semicolon in objectonoff.php
Removed an unnecessary semicolon in the error handling loop of objectonoff.php.
* Qual: Fix PhanPossiblyUndeclaredGlobalVariable
* Qual: Ignore PhanPossiblyUndeclaredGlobalVariable
|
||
|---|---|---|
| .. | ||
| fields | ||
| antivir.class.php | ||
| canvas.class.php | ||
| ccountry.class.php | ||
| cemailtemplate.class.php | ||
| cgenericdic.class.php | ||
| cleadstatus.class.php | ||
| CMailFile.class.php | ||
| comment.class.php | ||
| commondict.class.php | ||
| commondocgenerator.class.php | ||
| commonhookactions.class.php | ||
| commonincoterm.class.php | ||
| commoninvoice.class.php | ||
| commonnumrefgenerator.class.php | ||
| commonobject.class.php | ||
| commonobjectline.class.php | ||
| commonorder.class.php | ||
| commonpeople.class.php | ||
| commonsignedobject.class.php | ||
| commonsocialnetworks.class.php | ||
| commonstickergenerator.class.php | ||
| commontrigger.class.php | ||
| conf.class.php | ||
| cproductnature.class.php | ||
| cregion.class.php | ||
| CSMSFile.class.php | ||
| cstate.class.php | ||
| ctypent.class.php | ||
| ctyperesource.class.php | ||
| cunits.class.php | ||
| defaultvalues.class.php | ||
| diasporahandler.class.php | ||
| discount.class.php | ||
| doldeprecationhandler.class.php | ||
| doleditor.class.php | ||
| dolexception.class.php | ||
| dolgeoip.class.php | ||
| dolgeophp.class.php | ||
| dolgraph.class.php | ||
| emailsenderprofile.class.php | ||
| evalmath.class.php | ||
| events.class.php | ||
| extrafields.class.php | ||
| extralanguages.class.php | ||
| fediverseparser.class.php | ||
| fieldinfos.class.php | ||
| fieldsmanager.class.php | ||
| fileupload.class.php | ||
| fiscalyear.class.php | ||
| genericobject.class.php | ||
| geomapeditor.class.php | ||
| google.class.php | ||
| hookmanager.class.php | ||
| html.form.class.php | ||
| html.formaccounting.class.php | ||
| html.formactions.class.php | ||
| html.formadmin.class.php | ||
| html.formai.class.php | ||
| html.formbank.class.php | ||
| html.formbarcode.class.php | ||
| html.formcategory.class.php | ||
| html.formcompany.class.php | ||
| html.formcontract.class.php | ||
| html.formcron.class.php | ||
| html.formexpensereport.class.php | ||
| html.formfile.class.php | ||
| html.formfiscalyear.class.php | ||
| html.formintervention.class.php | ||
| html.formldap.class.php | ||
| html.formmail.class.php | ||
| html.formmailing.class.php | ||
| html.formmargin.class.php | ||
| html.formorder.class.php | ||
| html.formother.class.php | ||
| html.formprojet.class.php | ||
| html.formpropal.class.php | ||
| html.formsetup.class.php | ||
| html.formsms.class.php | ||
| html.formsocialcontrib.class.php | ||
| html.formticket.class.php | ||
| html.formwebsite.class.php | ||
| infobox.class.php | ||
| interfaces.class.php | ||
| jsonResponse.class.php | ||
| ldap.class.php | ||
| lessc.class.php | ||
| link.class.php | ||
| mastodonhandler.class.php | ||
| menu.class.php | ||
| menubase.class.php | ||
| notify.class.php | ||
| objectlink.class.php | ||
| openid.class.php | ||
| reddithandler.class.php | ||
| rssparser.class.php | ||
| smtps.class.php | ||
| socialnetworkmanager.class.php | ||
| stats.class.php | ||
| timespent.class.php | ||
| translate.class.php | ||
| utils.class.php | ||
| utils_diff.class.php | ||
| validate.class.php | ||
| vcard.class.php | ||
| workboardresponse.class.php | ||