@@ -153,8 +153,8 @@ public function __destruct()
153
153
* The STDOUT and STDERR are also available after the process is finished
154
154
* via the getOutput() and getErrorOutput() methods.
155
155
*
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
158
158
*
159
159
* @return integer The exit status code
160
160
*
@@ -184,8 +184,8 @@ public function run($callback = null)
184
184
* with true as a second parameter then the callback will get all data occurred
185
185
* in (and since) the start call.
186
186
*
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
189
189
*
190
190
* @throws \RuntimeException When process can't be launch or is stopped
191
191
* @throws \RuntimeException When process is already running
@@ -307,7 +307,7 @@ public function start($callback = null)
307
307
* from the output in real-time while writing the standard input to the process.
308
308
* It allows to have feedback from the independent process during execution.
309
309
*
310
- * @param mixed $callback A valid PHP callback
310
+ * @param callable $callback A valid PHP callback
311
311
*
312
312
* @return int The exitcode of the process
313
313
*
@@ -684,7 +684,7 @@ public function setEnhanceWindowsCompatibility($enhance)
684
684
* The callbacks adds all occurred output to the specific buffer and calls
685
685
* the user callback (if present) with the received output.
686
686
*
687
- * @param mixed $callback The user defined PHP callback
687
+ * @param callable $callback The user defined PHP callback
688
688
*
689
689
* @return mixed A PHP callable
690
690
*/
@@ -746,7 +746,7 @@ protected function updateOutput()
746
746
/**
747
747
* Handles the windows file handles fallbacks
748
748
*
749
- * @param mixed $callback A valid PHP callback
749
+ * @param callable $callback A valid PHP callback
750
750
* @param Boolean $closeEmptyHandles if true, handles that are empty will be assumed closed
751
751
*/
752
752
private function processFileHandles ($ callback , $ closeEmptyHandles = false )
0 commit comments