fix: add instanceof RequestException check in ChecksClient.logError()#54
fix: add instanceof RequestException check in ChecksClient.logError()#54jordanpartridge wants to merge 1 commit intomasterfrom
Conversation
logError() accepted GuzzleException but called hasResponse() which only exists on RequestException. Added instanceof guard for type safety. Includes pint style fixes. Closes #51
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe pull request refactors syntax across multiple PHP files, primarily converting object instantiation from parentheses to parameter-less syntax. Additionally, it adds type safety to the ChecksClient.logError method by guarding against undefined method calls on unspecific exception types, and adjusts string concatenation formatting throughout. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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 |
📊 Coverage Report
Files Below Threshold
🏆 Synapse Sentinel Gate |
🔧 Synapse Sentinel: 2 checks need attentionThe following issues must be resolved before this PR can be merged: All tests passed.--- Security AuditReview the output and fix any issues.Quick Reference:
🤖 Generated by Synapse Sentinel - View Run |
Summary
logError()acceptsGuzzleExceptionbut calledhasResponse()which only exists onRequestException— addedinstanceof RequestExceptionguard for type safety./vendor/bin/pint— includes style fixes across 5 filesTest plan
Closes #51
Summary by CodeRabbit
Bug Fixes
Refactor