dolibarr/htdocs/core/class
MDW e23059184f
Qual: Phan/fix for notices seen in #37875 & ci (#37876)
* 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
2026-04-15 17:59:06 +02:00
..
fields Clean code 2026-04-14 17:57:48 +02:00
antivir.class.php
canvas.class.php
ccountry.class.php
cemailtemplate.class.php
cgenericdic.class.php Clean code 2026-04-14 17:57:48 +02:00
cleadstatus.class.php
CMailFile.class.php
comment.class.php
commondict.class.php
commondocgenerator.class.php Automated merge from 23.0 to develop 2026-04-10 17:53:27 +02:00
commonhookactions.class.php
commonincoterm.class.php
commoninvoice.class.php Clean code 2026-04-14 19:23:50 +02:00
commonnumrefgenerator.class.php Qual: Phan/fix for notices seen in #37875 & ci (#37876) 2026-04-15 17:59:06 +02:00
commonobject.class.php Qual: Phan/fix for notices seen in #37875 & ci (#37876) 2026-04-15 17:59:06 +02:00
commonobjectline.class.php
commonorder.class.php
commonpeople.class.php
commonsignedobject.class.php
commonsocialnetworks.class.php
commonstickergenerator.class.php
commontrigger.class.php
conf.class.php Merge the dir bank and banque into bank. 2026-04-12 15:20:51 +02:00
cproductnature.class.php
cregion.class.php
CSMSFile.class.php
cstate.class.php
ctypent.class.php Clean code 2026-04-14 17:57:48 +02:00
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 Clean code 2026-04-14 17:57:48 +02:00
extralanguages.class.php
fediverseparser.class.php
fieldinfos.class.php
fieldsmanager.class.php
fileupload.class.php FIX #33038 drag and drop files are not prefixed with object reference (second time because not fix not propagated from 18.0) (#37860) 2026-04-14 11:55:10 +02:00
fiscalyear.class.php
genericobject.class.php
geomapeditor.class.php
google.class.php
hookmanager.class.php
html.form.class.php Fix regression missing link 2026-04-15 14:43:57 +02:00
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 Clean code. Must use USF everywhere. 2026-04-03 21:20:59 +02:00
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 Qual: Fix phan notices (#37837) 2026-04-13 12:50:23 +02:00
html.formmailing.class.php
html.formmargin.class.php
html.formorder.class.php
html.formother.class.php Clean code 2026-04-14 17:57:48 +02:00
html.formprojet.class.php Clean code 2026-04-14 17:57:48 +02:00
html.formpropal.class.php
html.formsetup.class.php Try ci fix 2026-04-12 13:52:10 +02:00
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 NEW : Quick memo module (#37422) 2026-04-15 17:47:50 +02:00
ldap.class.php
lessc.class.php
link.class.php Clean code 2026-04-14 17:57:48 +02:00
mastodonhandler.class.php
menu.class.php
menubase.class.php
notify.class.php Qual: Fix phan notices (#37837) 2026-04-13 12:50:23 +02:00
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 Clean code 2026-04-14 17:57:48 +02:00
utils.class.php
utils_diff.class.php
validate.class.php Clean code 2026-04-14 17:57:48 +02:00
vcard.class.php
workboardresponse.class.php