Skip to content

Commit

Permalink
[11.x] add queued closure type for soft delete events (#51982)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpiaia authored Jul 2, 2024
1 parent 162be67 commit b6a2abd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Illuminate/Database/Eloquent/SoftDeletes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b6a2abd

Please sign in to comment.