diff --git a/processes.md b/processes.md index 8e0374750f..84ccb5bf00 100644 --- a/processes.md +++ b/processes.md @@ -219,7 +219,7 @@ Laravel also allows you to assign string keys to each process within a pipeline $result = Process::pipe(function (Pipe $pipe) { $pipe->as('first')->command('cat example.txt'); $pipe->as('second')->command('grep -i "laravel"'); -})->start(function (string $type, string $output, string $key) { +}, function (string $type, string $output, string $key) { // ... }); ```