-
Notifications
You must be signed in to change notification settings - Fork 102
Bump SDK to v2.0 #761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Bump SDK to v2.0 #761
Conversation
* Remove custom JSON exceptions * Lint * Update src/Http/Serialize/Json.php Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> --------- Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
WalkthroughThis change removes custom JSON exception classes and replaces their usage throughout the codebase with PHP's built-in Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Serializer (Json)
participant PHP Engine
Client->>Serializer (Json): serialize(data)
Serializer (Json)->>PHP Engine: json_encode(data, JSON_THROW_ON_ERROR)
alt On error
PHP Engine-->>Client: throws \JsonException
else Success
PHP Engine-->>Serializer (Json): JSON string
Serializer (Json)-->>Client: JSON string
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
💤 Files with no reviewable changes (2)
🧰 Additional context used🧬 Code Graph Analysis (1)src/Http/Serialize/Json.php (1)
🔇 Additional comments (14)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This is a draft PR to see CI results.
Related issue
See #749 for discussion regarding v2.0
Summary by CodeRabbit
Refactor
\JsonException
throughout the application.Tests
\JsonException
and updated related error message assertions.