Skip to content

Conversation

@vikstrous
Copy link

Previously, the Binder interface was only checked within the struct case of the type switch, causing primitive types (strings, ints, etc.) that implement Binder to bypass their custom binding logic. This fix moves the Binder check to the beginning of BindStringToObject, ensuring all types implementing Binder use their custom Bind method, regardless of their underlying type. The redundant check in the struct case has been removed.

Previously, the Binder interface was only checked within the struct case
of the type switch, causing primitive types (strings, ints, etc.) that
implement Binder to bypass their custom binding logic. This fix moves
the Binder check to the beginning of BindStringToObject, ensuring all
types implementing Binder use their custom Bind method, regardless of
their underlying type. The redundant check in the struct case has been
removed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vikstrous vikstrous requested a review from a team as a code owner November 19, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant