Fix indexed and associative values on upsert()#562
Conversation
Tigrov
commented
Apr 30, 2026
| Q | A |
|---|---|
| Is bugfix? | ✔️ |
| New feature? | ❌ |
| Breaks BC? | ✔️/❌ |
| Fixed issues | #559 |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #562 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 656 656
===========================================
Files 43 43
Lines 1628 1626 -2
===========================================
- Hits 1628 1626 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| array_diff_key($updateProperties, $updateNames), | ||
| $this->newPropertyValues($updateNames), | ||
| ); | ||
| $updateProperties = array_diff_key($updateProperties, $updateNames) + $this->newValues($updateNames); |
There was a problem hiding this comment.
There was a problem hiding this comment.
Yes, but perhaps #559 is not a bug. To avoid potential problems, we need to give priority to passed properties with values.
There was a problem hiding this comment.
This change is OK. But I suggest don't close issue.