diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index f171681468d0..106fa520868b 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -224,6 +224,8 @@ public function run($callback = null) * * @param callback|null $callback A PHP callback to run whenever there is some * output available on STDOUT or STDERR + * + * @return Process The process itself * * @throws RuntimeException When process can't be launch or is stopped * @throws RuntimeException When process is already running @@ -329,6 +331,8 @@ public function start($callback = null) } $this->updateStatus(); + + return $this; } /**