dolibarr/htdocs/core/lib
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
..
accounting.lib.php NEW Accountancy - Transaction template system (#37286) 2026-02-24 17:50:20 +01:00
admin.lib.php Add more information on pushcounter call 2026-03-23 15:45:04 +01:00
agenda.lib.php Merge 2026-03-05 00:42:13 +01:00
ajax.lib.php Qual: Phan/fix for notices seen in #37875 & ci (#37876) 2026-04-15 17:59:06 +02:00
api.lib.php
asset.lib.php
bank.lib.php
barcode.lib.php
categories.lib.php
company.lib.php Qual: Fix phan notices (#37837) 2026-04-13 12:50:23 +02:00
contact.lib.php
contract.lib.php
cron.lib.php
customreports.lib.php
date.lib.php
doc.lib.php
doleditor.lib.php
donation.lib.php
ecm.lib.php
emailing.lib.php
emaillayout.lib.php
eventorganization.lib.php
expedition.lib.php
expensereport.lib.php
fichinter.lib.php
files.lib.php Automated merge from 23.0 to develop 2026-04-10 17:53:27 +02:00
fiscalyear.lib.php
format_cards.lib.php
fourn.lib.php QUAL - Supplier modules - Separate - Admin part (#37746) 2026-04-07 02:00:44 +02:00
ftp.lib.php
functions.lib.php Qual: Phan/fix for notices seen in #37875 & ci (#37876) 2026-04-15 17:59:06 +02:00
functions2.lib.php Clean code 2026-04-14 18:40:54 +02:00
functions_be.lib.php
functions_ch.lib.php
functions_fi.lib.php
functionscli.lib.php
functionsnumtoword.lib.php Fix issue with amount in letters for French (soixante-dix+ and quatre-vingt dix+) (#37369) 2026-02-27 15:23:01 +01:00
geturl.lib.php fix phpstan (#37648) 2026-03-29 16:29:25 +02:00
holiday.lib.php
hrm.lib.php
images.lib.php
import.lib.php
invoice.lib.php
invoice2.lib.php
json.lib.php
ldap.lib.php
loan.lib.php
mailmanspip.lib.php
member.lib.php
memory.lib.php Use json_encode/json_decode to serialize 2026-03-26 02:27:39 +01:00
modulebuilder.lib.php
multicurrency.lib.php
oauth.lib.php New/add support microsoft exchange oauth (#37329) 2026-02-24 17:48:29 +01:00
openid_connect.lib.php NEW: Add OIDC user auto-creation and fix login bugs (#37314) 2026-02-28 15:37:48 +01:00
order.lib.php
parsemd.lib.php
payments.lib.php Removed old option PAYMENT_SECURITY_TOKEN_UNIQUE has been removed 2026-04-10 15:21:37 +02:00
pdf.lib.php FIX TCPDI: honor K_TCPDF_THROW_EXCEPTION_ERROR and enable exceptions by default (#37827) 2026-04-11 18:01:59 +02:00
phpsessionindb.lib.php Restore feature to manage timeout (when garbage is done at page access) 2026-03-25 23:36:43 +01:00
prelevement.lib.php
price.lib.php Try fix CI 2026-04-07 15:05:44 +02:00
product.lib.php fix #37575 (#37587) 2026-03-24 00:00:35 +01:00
profid.lib.php
project.lib.php NEW Add mass mailing tab - with counts to project tabs (#37703) 2026-04-07 05:09:02 +02:00
propal.lib.php
public.lib.php
receiptprinter.lib.php
reception.lib.php
report.lib.php
resource.lib.php
salaries.lib.php
security.lib.php Clean code 2026-04-14 19:23:50 +02:00
security2.lib.php Now use a default salt for online signature securekey. Old links may be 2026-04-10 16:15:38 +02:00
sendings.lib.php Clean code 2026-04-14 19:23:50 +02:00
signature.lib.php Now use a default salt for online signature securekey. Old links may be 2026-04-10 16:15:38 +02:00
socialnetwork.lib.php
stock.lib.php
supplier_invoice.lib.php QUAL - Supplier modules - Separate - admin supplier invoice head (#37779) 2026-04-07 20:46:58 +02:00
supplier_order.lib.php QUAL - Supplier modules - Separate - Module descriptor part (#37769) 2026-04-07 14:30:17 +02:00
supplier_proposal.lib.php QUAL - Supplier modules - Separate - Admin part (#37746) 2026-04-07 02:00:44 +02:00
takepos.lib.php
tax.lib.php Clean code 2026-04-14 19:23:50 +02:00
ticket.lib.php Debug v23 2026-02-23 19:49:45 +01:00
treeview.lib.php Qual: Fix phan notices (#37837) 2026-04-13 12:50:23 +02:00
trip.lib.php
usergroups.lib.php NEW Can enable/disable external calender per calendar. 2026-03-20 11:51:18 +01:00
vat.lib.php
website.lib.php
website2.lib.php Sec: Add param $dolibarr_website_allow_custom_php to block by default 2026-02-08 17:41:42 +01:00
ws.lib.php
xcal.lib.php