JasonYao's avatar

JasonYao started a new conversation+100 XP

3mos ago

I upgrade laravel from 9 to 12 to use Concurrency, but when I run the code below, it shows error "Trying to access array offset on value of type null"

$result = Concurrency::run([ 'task-1' => fn() => 1 + 1, 'task-2' => fn() => 2 + 2, ]); dd($result);

What could be the reason for this? Thank you very much.