Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evarisk#3982 [RiskAssessment] fix: make sure each risk has distinct a…
…ppliedOn In PHP, when you add an object to an array, the array holds a reference to that object, not a copy of it. So if you modify the object afterward, all references to that object reflect those changes. To fix this, you need to clone the object before modifying it and adding it to the $risks array. This ensures that each entry in $risks is a separate object, and modifying one does not affect the others.
- Loading branch information