vuongxuongminh / laravel-async

Package provide simple way to run code asynchronously for your Laravel application.
MIT License
154 stars 26 forks source link

Problem seeing the following error #39

Closed kirkbushell closed 1 year ago

kirkbushell commented 1 year ago

After running the code, I see the following issue:

Cannot assign Laravel\SerializableClosure\Serializers\Native to property Symfony\Component\Console\Input\InputArgument::$suggestedValues of type Closure|array

I thought migrating to this library would solve that problem (as it's also present when using the underlying async library), however, no-go :(

And I'm not entirely sure what's wrong. Any ideas?

kirkbushell commented 1 year ago

Okay so this is only an issue when using async functions. When I migrated my code to use jobs, it works fine.

Thanks for the package :)