Skip to content

Commit

Permalink
[Process] change all documentation type to callable
Browse files Browse the repository at this point in the history
  • Loading branch information
boombatower committed Sep 7, 2012
1 parent 4dc197c commit 622102e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Symfony/Component/Process/Process.php
Expand Up @@ -153,8 +153,8 @@ public function __destruct()
* The STDOUT and STDERR are also available after the process is finished
* via the getOutput() and getErrorOutput() methods.
*
* @param Closure|string|array $callback A PHP callback to run whenever there is some
* output available on STDOUT or STDERR
* @param callable $callback A PHP callback to run whenever there is some
* output available on STDOUT or STDERR
*
* @return integer The exit status code
*
Expand Down Expand Up @@ -184,8 +184,8 @@ public function run($callback = null)
* with true as a second parameter then the callback will get all data occurred
* in (and since) the start call.
*
* @param Closure|string|array $callback A PHP callback to run whenever there is some
* output available on STDOUT or STDERR
* @param callable $callback A PHP callback to run whenever there is some
* output available on STDOUT or STDERR
*
* @throws \RuntimeException When process can't be launch or is stopped
* @throws \RuntimeException When process is already running
Expand Down Expand Up @@ -307,7 +307,7 @@ public function start($callback = null)
* from the output in real-time while writing the standard input to the process.
* It allows to have feedback from the independent process during execution.
*
* @param mixed $callback A valid PHP callback
* @param callable $callback A valid PHP callback
*
* @return int The exitcode of the process
*
Expand Down Expand Up @@ -684,7 +684,7 @@ public function setEnhanceWindowsCompatibility($enhance)
* The callbacks adds all occurred output to the specific buffer and calls
* the user callback (if present) with the received output.
*
* @param mixed $callback The user defined PHP callback
* @param callable $callback The user defined PHP callback
*
* @return mixed A PHP callable
*/
Expand Down Expand Up @@ -746,7 +746,7 @@ protected function updateOutput()
/**
* Handles the windows file handles fallbacks
*
* @param mixed $callback A valid PHP callback
* @param callable $callback A valid PHP callback
* @param Boolean $closeEmptyHandles if true, handles that are empty will be assumed closed
*/
private function processFileHandles($callback, $closeEmptyHandles = false)
Expand Down

0 comments on commit 622102e

Please sign in to comment.