You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does look suspicious to create contents for a list called $variations from a list called $combinations and then pass $variations to the method's argument called combinations instead of passing it to variations.
Environment Version
At least 16.0 up to develop included
Environment OS
No response
Environment Web server
No response
Environment PHP
No response
Environment Database
No response
Environment URL(s)
No response
Expected and actual behavior
No response
Steps to reproduce the behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered:
Bug
Phan report:
Warning: ProductCombination.class.php: PhanPluginSuspiciousParamPosition: Suspicious order for argument variations - This is getting passed to parameter #4 (array $variations) of \ProductCombination::createProductCombination(\User $user, \Product $product, array $combinations, array $variations, array|bool $price_var_percent = false, bool|float $forced_pricevar = false, bool|float $forced_weightvar = false, bool|string $forced_refvar = false, string $ref_ext = '') defined at htdocs/variants/class/ProductCombination.class.php:716
Code:
dolibarr/htdocs/variants/class/ProductCombination.class.php
Lines 951 to 965 in f45f5c3
It does look suspicious to create contents for a list called
$variations
from a list called$combinations
and then pass$variations
to the method's argument calledcombinations
instead of passing it tovariations
.Environment Version
At least 16.0 up to develop included
Environment OS
No response
Environment Web server
No response
Environment PHP
No response
Environment Database
No response
Environment URL(s)
No response
Expected and actual behavior
No response
Steps to reproduce the behavior
No response
Attached files
No response
The text was updated successfully, but these errors were encountered: