Skip to content

fix(cache): serialize notice as array to prevent __PHP_Incomplete_Class on cache hits - #438

Merged
trtajim merged 1 commit into
mainfrom
fix/notice-cache-serialization
Oct 24, 2026
Merged

trtajim merged 1 commit into
mainfrom
fix/notice-cache-serialization

Conversation

@trtajim

@trtajim trtajim commented Oct 24, 2026

Copy link
Copy Markdown
Member

Summary

Serializes Notice to array in Notice::activeForDisplay() instead of caching the raw Eloquent model instance. This prevents PHP unserialization __PHP_Incomplete_Class TypeErrors on subsequent cache-hit requests.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@trtajim
trtajim merged commit 20b8476 into main Oct 24, 2026
5 of 6 checks passed
@trtajim
trtajim deleted the fix/notice-cache-serialization branch October 24, 2026 17:12
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