Skip to content

13.2.0 breaks Laravel 13 cache when serializable_classes is null #210

Closed

Description

@MarcEspiard

Hi,

We just updated this package from 13.1.0 to 13.2.0 and it broke our Cache due to the automatic registration of serializable_classes in this package's Provider.

When serializable_classes is null in config, Laravel 13 skips the check entirely. See https://github.com/laravel/framework/pull/58911/files#diff-8761f19dd8736261cdad5cf58b1d15aad73a97af320f0b2fd7c67a031b0248f1R497-R505

Because this package automatically adds its classes to serializable_classes, the serializable_classes is no longer null (now an array) and cache fails for classes outside this package.

if serializable_classes is already null, there is no need for this package to automatically add its classes.

I understand I can set auto_register_serializable_classes to false, and while it solves the issue I'm sure plenty of others will wonder why their cache suddenly fails when performing patch / minor updates.

Happy to make a PR for it unless you want to take it yourself.

Activity

  1. mikebronner commented on May 28, 2026

    @mikebronner
    Member

    @MarcEspiard thanks for sharing and being so detailed in the explanation.

    I will add in a check to see if it is null before adding serializable class entries. Will get it done this weekend, most likely.

  2. self-assigned this
    on May 28, 2026
  3. MarcEspiard commented on May 31, 2026

    @MarcEspiard
    Author

    @mikebronner Thanks for the quick fix and release!

  4. mikebronner commented on May 31, 2026

    @mikebronner
    Member

    @MarcEspiard absolutely! let me know how it works out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions