Skip to content

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

Merged
taylorotwell merged 1 commit intolaravel:11.xfrom
patrickcarlohickman:update-database-composer
Dec 10, 2024
Merged

[11.x] Require laravel/serializable-closure on Database component#53822
taylorotwell merged 1 commit intolaravel:11.xfrom
patrickcarlohickman:update-database-composer

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
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