[\Magento\ConfigurableProduct\Model\Product\Type\Configurable] PHP error unoticed #39641
Open
2 of 5 tasks
Labels
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Summary
Hello,
My phpstorm detected an error in a Preference I had to declare copying the entire \Magento\ConfigurableProduct\Model\Product\Type\Configurable.
The following function has an issue because $product variable is used by the loop as looping element erasing the given variable.
The function is deprecated but I still think it's a quick correction.
Examples
Not sure if an example is relevant as the only thing that would change is the time consumed by the calls when multiple calls are made on the same object
Proposed solution
Just change the variable name is the loop ?
Release note
Correction of cache usage on configurable product models when getUsedProductIds is used multiple times on the same model
Triage and priority
The text was updated successfully, but these errors were encountered: