From b6a2abd9eba7ec2166ea3b830eed076f5090aae7 Mon Sep 17 00:00:00 2001 From: Humberto Piaia Date: Tue, 2 Jul 2024 12:38:25 -0300 Subject: [PATCH] [11.x] add queued closure type for soft delete events (#51982) --- src/Illuminate/Database/Eloquent/SoftDeletes.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Database/Eloquent/SoftDeletes.php b/src/Illuminate/Database/Eloquent/SoftDeletes.php index da7a4a371479..0c509b50fcfd 100644 --- a/src/Illuminate/Database/Eloquent/SoftDeletes.php +++ b/src/Illuminate/Database/Eloquent/SoftDeletes.php @@ -165,7 +165,7 @@ public function trashed() /** * Register a "softDeleted" model event callback with the dispatcher. * - * @param \Closure|string $callback + * @param \Illuminate\Events\QueuedClosure|\Closure|string $callback * @return void */ public static function softDeleted($callback) @@ -176,7 +176,7 @@ public static function softDeleted($callback) /** * Register a "restoring" model event callback with the dispatcher. * - * @param \Closure|string $callback + * @param \Illuminate\Events\QueuedClosure|\Closure|string $callback * @return void */ public static function restoring($callback) @@ -187,7 +187,7 @@ public static function restoring($callback) /** * Register a "restored" model event callback with the dispatcher. * - * @param \Closure|string $callback + * @param \Illuminate\Events\QueuedClosure|\Closure|string $callback * @return void */ public static function restored($callback) @@ -198,7 +198,7 @@ public static function restored($callback) /** * Register a "forceDeleting" model event callback with the dispatcher. * - * @param \Closure|string $callback + * @param \Illuminate\Events\QueuedClosure|\Closure|string $callback * @return void */ public static function forceDeleting($callback) @@ -209,7 +209,7 @@ public static function forceDeleting($callback) /** * Register a "forceDeleted" model event callback with the dispatcher. * - * @param \Closure|string $callback + * @param \Illuminate\Events\QueuedClosure|\Closure|string $callback * @return void */ public static function forceDeleted($callback)