-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Illuminate/Support package does not declare Laravel/SerializeClosure as a Dependency #52670
Comments
Thanks for reporting this. I sent in a PR to add this to the package's suggest list: #52673 |
I get same error: |
I also am experiencing the same issue after upgrading to 11.33.2 |
so you probably did not study this thread thoroughly. For clarification: PR #52673 did not fix this "automagically", it has just added $ composer require laravel/serializable-closure tested in an ancient ZF1 project which uses |
Laravel Version
11.22
PHP Version
8.3
Database Driver & Version
No response
Description
I use some Illuminate packages without the Laravel/Framework package in a project and I've started getting errors for "Error: Class "Laravel\SerializableClosure\Support\ReflectionClosure" not found in file /path/to/project/vendor/illuminate/support/Onceable.php on line 66"
Checking the dependency list for the Support package in
composer.json
, I can't see "laravel/serializable-closure" package listed there which is causing the error when it's not listed elsewhere (i.e. in the main laravel/framework package where it is listed).Steps To Reproduce
Install 'Illuminate/Support' by itself and use a function that calls the "Onceable" class.
The text was updated successfully, but these errors were encountered: