From 545ab0fb13adfa5081f12a0e9da2c1094e8909d4 Mon Sep 17 00:00:00 2001 From: s4muel Date: Fri, 21 Apr 2023 17:14:58 +0200 Subject: [PATCH] [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 --- src/Illuminate/Process/Factory.php | 2 +- src/Illuminate/Support/Facades/Process.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Process/Factory.php b/src/Illuminate/Process/Factory.php index 6ec62db777b0..51ed037ec9a9 100644 --- a/src/Illuminate/Process/Factory.php +++ b/src/Illuminate/Process/Factory.php @@ -275,7 +275,7 @@ public function pool(callable $callback) * Start defining a series of piped processes. * * @param callable|array $callback - * @return \Illuminate\Process\Pipe + * @return \Illuminate\Contracts\Process\ProcessResult */ public function pipe(callable|array $callback, ?callable $output = null) { diff --git a/src/Illuminate/Support/Facades/Process.php b/src/Illuminate/Support/Facades/Process.php index dbe03cf8746e..1df17ba7e7a9 100644 --- a/src/Illuminate/Support/Facades/Process.php +++ b/src/Illuminate/Support/Facades/Process.php @@ -35,7 +35,7 @@ * @method static \Illuminate\Process\Factory assertDidntRun(\Closure|string $callback) * @method static \Illuminate\Process\Factory assertNothingRan() * @method static \Illuminate\Process\Pool pool(callable $callback) - * @method static \Illuminate\Process\Pipe pipe(callable|array $callback, callable|null $output = null) + * @method static \Illuminate\Contracts\Process\ProcessResult pipe(callable|array $callback, callable|null $output = null) * @method static \Illuminate\Process\ProcessPoolResults concurrently(callable $callback, callable|null $output = null) * @method static \Illuminate\Process\PendingProcess newPendingProcess() * @method static void macro(string $name, object|callable $macro)