Skip to content

Commit b6a2abd

Browse files
authored
[11.x] add queued closure type for soft delete events (#51982)
1 parent 162be67 commit b6a2abd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Illuminate/Database/Eloquent/SoftDeletes.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function trashed()
165165
/**
166166
* Register a "softDeleted" model event callback with the dispatcher.
167167
*
168-
* @param \Closure|string $callback
168+
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
169169
* @return void
170170
*/
171171
public static function softDeleted($callback)
@@ -176,7 +176,7 @@ public static function softDeleted($callback)
176176
/**
177177
* Register a "restoring" model event callback with the dispatcher.
178178
*
179-
* @param \Closure|string $callback
179+
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
180180
* @return void
181181
*/
182182
public static function restoring($callback)
@@ -187,7 +187,7 @@ public static function restoring($callback)
187187
/**
188188
* Register a "restored" model event callback with the dispatcher.
189189
*
190-
* @param \Closure|string $callback
190+
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
191191
* @return void
192192
*/
193193
public static function restored($callback)
@@ -198,7 +198,7 @@ public static function restored($callback)
198198
/**
199199
* Register a "forceDeleting" model event callback with the dispatcher.
200200
*
201-
* @param \Closure|string $callback
201+
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
202202
* @return void
203203
*/
204204
public static function forceDeleting($callback)
@@ -209,7 +209,7 @@ public static function forceDeleting($callback)
209209
/**
210210
* Register a "forceDeleted" model event callback with the dispatcher.
211211
*
212-
* @param \Closure|string $callback
212+
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
213213
* @return void
214214
*/
215215
public static function forceDeleted($callback)

0 commit comments

Comments
 (0)