Fix toArray() recursive nested stdClass conversion#32
Conversation
The foreach loop assigned recursive results to a local copy instead of writing back to the array. Nested stdClass objects survived conversion, causing 'Cannot use object of type stdClass as array' errors downstream in Document constructor.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughA new CodeRabbit configuration file is added to define code review filtering rules and set the default base branch for automatic reviews. The Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
toArray()inClient.phpwhere the foreach loop assigned recursive results to a local copy ($item) instead of writing back to$ret[$key]Document.phpSummary by CodeRabbit
Bug Fixes
Tests