dolibarr/htdocs/product
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
..
admin Add admin for product lang extrafields (#37586) 2026-03-23 23:55:51 +01:00
ajax
canvas Qual: Update comments from French to English (#37097) 2026-02-08 15:29:53 +01:00
class fix phpstan (#37872) 2026-04-14 19:43:00 +02:00
composition Qual: Phan/fix for notices seen in #37875 & ci (#37876) 2026-04-15 17:59:06 +02:00
dynamic_price
inventory Automated merge from 22.0 to 23.0 by tool pullmerge.sh 2026-03-12 23:40:02 +01:00
stats translate french doc to english (#37064) 2026-02-04 14:49:13 +01:00
stock Clean code. Must use USF everywhere. 2026-04-03 21:20:59 +02:00
agenda.php Fix CI 2026-02-16 20:25:07 +01:00
card.php Qual: Phan/fix for notices seen in #37875 & ci (#37876) 2026-04-15 17:59:06 +02:00
contact.php
document.php
index.php css 2026-03-07 15:50:31 +01:00
list.php Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-03-24 20:54:38 +01:00
messaging.php Debug v23 - Filter on action type ko 2026-02-08 19:30:17 +01:00
note.php
popuprop.php Qual: Update comments from French to English (#37097) 2026-02-08 15:29:53 +01:00
price.php Merge branch '23.0' of git@github.com:Dolibarr/dolibarr.git into develop 2026-04-08 21:47:37 +02:00
price_suppliers.php FIX #GHSA-v5fq-cf5m-vwv7 - Credit Grzegorz Tworek, Sec4check (#37632) 2026-03-26 17:23:42 +01:00
reassort.php Qual: Update comments from French to English (#37097) 2026-02-08 15:29:53 +01:00
reassortlot.php Qual: Update comments from French to English (#37097) 2026-02-08 15:29:53 +01:00
traduction.php Qual: Translate French 'valeur' in comments to English (#37051) 2026-02-01 18:05:15 +01:00