laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.76k stars 294 forks source link

Serialization of 'Laravel\Octane\Tables\OpenSwooleTable' is not allowed #954

Open MatusBoa opened 1 week ago

MatusBoa commented 1 week ago

Octane Version

2.5.5

Laravel Version

11.23.5

PHP Version

8.3.10

What server type are you using?

Open Swoole

Server Version

22.1.2

Database Driver & Version

No response

Description

When I try to pass query builder to Octane::concurrently closure, serialization exception is thrown.

image

Steps To Reproduce

$query = DB::table('products')->limit(10);

Octane::concurrently([
    static function () use ($query) {
        return $query->get();
    },
]);
github-actions[bot] commented 3 days ago

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!