Skip to content

Commit d199af3

Browse files
s4mueltaylorotwell
andauthored
[10.x] update return type in docblock for Process pipe method (#46848)
* update return type in docblock for Process pipe method * update the Process.php docblock as well * Update Factory.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 3d28bdc commit d199af3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Process/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public function pool(callable $callback)
275275
* Start defining a series of piped processes.
276276
*
277277
* @param callable|array $callback
278-
* @return \Illuminate\Process\Pipe
278+
* @return \Illuminate\Contracts\Process\ProcessResult
279279
*/
280280
public function pipe(callable|array $callback, ?callable $output = null)
281281
{

src/Illuminate/Support/Facades/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @method static \Illuminate\Process\Factory assertDidntRun(\Closure|string $callback)
3636
* @method static \Illuminate\Process\Factory assertNothingRan()
3737
* @method static \Illuminate\Process\Pool pool(callable $callback)
38-
* @method static \Illuminate\Process\Pipe pipe(callable|array $callback, callable|null $output = null)
38+
* @method static \Illuminate\Contracts\Process\ProcessResult pipe(callable|array $callback, callable|null $output = null)
3939
* @method static \Illuminate\Process\ProcessPoolResults concurrently(callable $callback, callable|null $output = null)
4040
* @method static \Illuminate\Process\PendingProcess newPendingProcess()
4141
* @method static void macro(string $name, object|callable $macro)

0 commit comments

Comments
 (0)