8000 [Process] change all documentation type to callable · richardudovich/symfony@622102e · GitHub
[go: up one dir, main page]

Skip to content

Commit 622102e

Browse files
committed
[Process] change all documentation type to callable
1 parent 4dc197c commit 622102e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ public function __destruct()
153153
* The STDOUT and STDERR are also available after the process is finished
154154
* via the getOutput() and getErrorOutput() methods.
155155
*
156-
* @param Closure|string|array $callback A PHP callback to run whenever there is some
157-
* output available on STDOUT or STDERR
156+
* @param callable $callback A PHP callback to run whenever there is some
157+
* output available on STDOUT or STDERR
158158
*
159159
* @return integer The exit status code
160160
*
@@ -184,8 +184,8 @@ public function run($callback = null)
184184
* with true as a second parameter then the callback will get all data occurred
185185
* in (and since) the start call.
186186
*
187-
* @param Closure|string|array $callback A PHP callback to run whenever there is some
188-
* output available on STDOUT or STDERR
187+
* @param callable $callback A PHP callback to run whenever there is some
188+
* output available on STDOUT or STDERR
189189
*
190190
* @throws \RuntimeException When process can't be launch or is stopped
191191
* @throws \RuntimeException When process is already running
@@ -307,7 +307,7 @@ public function start($callback = null)
307307
* from the output in real-time while writing the standard input to the process.
308308
* It allows to have feedback from the independent process during execution.
309309
*
310-
* @param mixed $callback A valid PHP callback
310+
* @param callable $callback A valid PHP callback
311311
*
312312
* @return int The exitcode of the process
313313
*
@@ -684,7 +684,7 @@ public function setEnhanceWindowsCompatibility($enhance)
684684
* The callbacks adds all occurred output to the specific buffer and calls
685685
* the user callback (if present) with the received output.
686686
*
687-
* @param mixed $callback The user defined PHP callback
687+
* @param callable $callback The user defined PHP callback
688688
*
689689
* @return mixed A PHP callable
690690
*/
@@ -746,7 +746,7 @@ protected function updateOutput()
746746
/**
747747
* Handles the windows file handles fallbacks
748748
*
749-
* @param mixed $callback A valid PHP callback
749+
* @param callable $callback A valid PHP callback
750750
* @param Boolean $closeEmptyHandles if true, handles that are empty will be assumed closed
751751
*/
752752
private function processFileHandles($callback, $closeEmptyHandles = false)

0 commit comments

Comments
 (0)
0