diff --git a/src/Illuminate/Concurrency/ConcurrencyManager.php b/src/Illuminate/Concurrency/ConcurrencyManager.php index 1f97a0e992c4..8eafdb1f2868 100644 --- a/src/Illuminate/Concurrency/ConcurrencyManager.php +++ b/src/Illuminate/Concurrency/ConcurrencyManager.php @@ -28,6 +28,8 @@ public function driver($name = null) * * @param array $config * @return \Illuminate\Concurrency\ProcessDriver + * + * @throws \Illuminate\Contracts\Container\BindingResolutionException */ public function createProcessDriver(array $config) { diff --git a/src/Illuminate/Concurrency/ForkDriver.php b/src/Illuminate/Concurrency/ForkDriver.php index 4460449c78e4..7ec6a0d14029 100644 --- a/src/Illuminate/Concurrency/ForkDriver.php +++ b/src/Illuminate/Concurrency/ForkDriver.php @@ -14,6 +14,9 @@ class ForkDriver implements Driver { /** * Run the given tasks concurrently and return an array containing the results. + * + * @param Closure|array $tasks + * @return array */ public function run(Closure|array $tasks): array { @@ -30,6 +33,9 @@ public function run(Closure|array $tasks): array /** * Start the given tasks in the background after the current task has finished. + * + * @param Closure|array $tasks + * @return \Illuminate\Support\Defer\DeferredCallback */ public function defer(Closure|array $tasks): DeferredCallback { diff --git a/src/Illuminate/Concurrency/ProcessDriver.php b/src/Illuminate/Concurrency/ProcessDriver.php index ed2ffe651e1d..741aeb4ee42f 100644 --- a/src/Illuminate/Concurrency/ProcessDriver.php +++ b/src/Illuminate/Concurrency/ProcessDriver.php @@ -18,6 +18,9 @@ class ProcessDriver implements Driver { /** * Create a new process based concurrency driver. + * + * @param ProcessFactory $processFactory + * @return void */ public function __construct(protected ProcessFactory $processFactory) { @@ -26,6 +29,9 @@ public function __construct(protected ProcessFactory $processFactory) /** * Run the given tasks concurrently and return an array containing the results. + * + * @param Closure|array $tasks + * @return array */ public function run(Closure|array $tasks): array { @@ -58,6 +64,9 @@ public function run(Closure|array $tasks): array /** * Start the given tasks in the background after the current task has finished. + * + * @param Closure|array $tasks + * @return \Illuminate\Support\Defer\DeferredCallback */ public function defer(Closure|array $tasks): DeferredCallback { diff --git a/src/Illuminate/Concurrency/SyncDriver.php b/src/Illuminate/Concurrency/SyncDriver.php index a2f27bae54a8..d229ada33900 100644 --- a/src/Illuminate/Concurrency/SyncDriver.php +++ b/src/Illuminate/Concurrency/SyncDriver.php @@ -13,6 +13,9 @@ class SyncDriver implements Driver { /** * Run the given tasks concurrently and return an array containing the results. + * + * @param Closure|array $tasks + * @return array */ public function run(Closure|array $tasks): array { @@ -23,6 +26,9 @@ public function run(Closure|array $tasks): array /** * Start the given tasks in the background after the current task has finished. + * + * @param Closure|array $tasks + * @return \Illuminate\Support\Defer\DeferredCallback */ public function defer(Closure|array $tasks): DeferredCallback {