Repository navigation
refactor!: cache routes as json - #14
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
/robin |
|
There was a problem hiding this comment.
The Robin Hood of code review
Heads up: this is a point-in-time review. Push fixes freely, then comment
/robinwhenever you want another pass.
Summary
The diff replaces PHP serialization with JSON for route caching and adds JsonSerializable plus runtime type coercion for Route and RouteCollection, which removes the unserialize RCE risk and centralizes cache validation. The round-trip design and added tests are generally sound. The main outstanding issues are documentation and API-change hygiene: docs/cache.md still references the old default cache file name after the code default changed, and the narrowed RouteCache return types were not reflected in the changelog.
📄 Findings Not Posted Inline
💡 1 (CHANGELOG.md) — The Unreleased changelog entry does not note the narrowed return types on RouteCache::read() and RouteCache::write().
Add a changelog entry for the API change.
d56fc36 to
f566ca4
Compare
No description provided.