Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] Require laravel/serializable-closure on Database component #53822

Merged

Conversation

patrickcarlohickman
Copy link
Contributor

The laravel/serializable-closure package is currently only suggested for the Database component. This PR moves it from a suggestion to a requirement.

With recent updates, the package is getting pretty ingrained into Eloquent. With the merging of PR #52883, it is now used whenever a model is saved or deleted (via calls to touchOwners()). This basically makes Eloquent unusable without the package, and breaks existing packages that use Eloquent in the Database component outside of the framework (Error: Class "Laravel\SerializableClosure\Support\ReflectionClosure" not found).

This PR updates the composer.json to require the package instead of just suggest it. I set the version requirements to match that found in the framework composer.json file and the Queue component.

Thanks,
Patrick

@taylorotwell taylorotwell merged commit dfdc059 into laravel:11.x Dec 10, 2024
40 checks passed
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.

2 participants