Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
ba05eeb to
45308cb
Compare
There was a problem hiding this comment.
🟢 Approval recommended
The aggregation preserves every write attempt, and the regression test covers the reported failure scenario.
No open issues 🎉
What changed in this PR
Fixes FileCache::setMultiple() failure reporting, building on #111 without changing the cache file format.
Changes:
- Returns
falseif any write fails while still attempting every entry. - Adds a regression test and changelog entry.
| File | Description |
|---|---|
| tests/SetMultipleFailureTest.php | Verifies failure reporting and continued writes. |
| src/FileCache.php | Aggregates individual write results. |
| CHANGELOG.md | Documents the bug fix. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## fix-set-write-errors #112 +/- ##
==========================================================
+ Coverage 92.77% 92.81% +0.04%
- Complexity 69 70 +1
==========================================================
Files 1 1
Lines 166 167 +1
==========================================================
+ Hits 154 155 +1
Misses 12 12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
setMultiple()currently returnstrueeven when an individualset()call fails. Returnfalseif any write fails, while continuing to attempt every entry.Stacked on #111 to keep each extracted fix in a separate review. This change does not require the atomic writes or new file format proposed in #110.