Skip to content

Fix rate provider correctness edge cases#3

Open
entity wants to merge 3 commits into
mainfrom
fix/rate-correctness-hardening
Open

Fix rate provider correctness edge cases#3
entity wants to merge 3 commits into
mainfrom
fix/rate-correctness-hardening

Conversation

@entity
Copy link
Copy Markdown
Member

@entity entity commented May 4, 2026

Summary

  • Validate and normalize requested base currencies before cache keys and provider requests are built.
  • Reject provider responses whose base/source metadata does not match the requested base, preventing silent wrong conversions and cache pollution.
  • Harden edge cases around empty rate payloads, custom-base cache flushing, ECB reference updates, invalid conversion amounts, and fallback driver validation.

Tests

  • composer lint
  • composer test

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