spbaniya's avatar

Getting error on batch dispatch

In lumen 8 and using https://github.com/vyuldashev/laravel-queue-rabbitmq, with even basic laravel code for Batch queue, I'm getting error

Cannot bind closure to scope of internal class Closure

The code is

$batch = \Illuminate\Support\Facades\Bus::batch([
    ])->then(function (\Illuminate\Bus\Batch $batch) {
        // All jobs completed successfully...
    })->catch(function (\Illuminate\Bus\Batch $batch, Throwable $e) {
        // First batch job failure detected...
    })->finally(function (\Illuminate\Bus\Batch $batch) {
        // The batch has finished executing...
    })->dispatch();
0 likes
0 replies

Please or to participate in this conversation.