Skip to content

Commit 7f0bc56

Browse files
authored
add array type for callback (#44433)
1 parent da859e7 commit 7f0bc56

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasEvents.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function removeObservableEvents($observables)
147147
* Register a model event with the dispatcher.
148148
*
149149
* @param string $event
150-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
150+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
151151
* @return void
152152
*/
153153
protected static function registerModelEvent($event, $callback)
@@ -230,7 +230,7 @@ protected function filterModelEventResults($result)
230230
/**
231231
* Register a retrieved model event with the dispatcher.
232232
*
233-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
233+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
234234
* @return void
235235
*/
236236
public static function retrieved($callback)
@@ -241,7 +241,7 @@ public static function retrieved($callback)
241241
/**
242242
* Register a saving model event with the dispatcher.
243243
*
244-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
244+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
245245
* @return void
246246
*/
247247
public static function saving($callback)
@@ -252,7 +252,7 @@ public static function saving($callback)
252252
/**
253253
* Register a saved model event with the dispatcher.
254254
*
255-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
255+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
256256
* @return void
257257
*/
258258
public static function saved($callback)
@@ -263,7 +263,7 @@ public static function saved($callback)
263263
/**
264264
* Register an updating model event with the dispatcher.
265265
*
266-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
266+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
267267
* @return void
268268
*/
269269
public static function updating($callback)
@@ -274,7 +274,7 @@ public static function updating($callback)
274274
/**
275275
* Register an updated model event with the dispatcher.
276276
*
277-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
277+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
278278
* @return void
279279
*/
280280
public static function updated($callback)
@@ -285,7 +285,7 @@ public static function updated($callback)
285285
/**
286286
* Register a creating model event with the dispatcher.
287287
*
288-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
288+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
289289
* @return void
290290
*/
291291
public static function creating($callback)
@@ -296,7 +296,7 @@ public static function creating($callback)
296296
/**
297297
* Register a created model event with the dispatcher.
298298
*
299-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
299+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
300300
* @return void
301301
*/
302302
public static function created($callback)
@@ -307,7 +307,7 @@ public static function created($callback)
307307
/**
308308
* Register a replicating model event with the dispatcher.
309309
*
310-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
310+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
311311
* @return void
312312
*/
313313
public static function replicating($callback)
@@ -318,7 +318,7 @@ public static function replicating($callback)
318318
/**
319319
* Register a deleting model event with the dispatcher.
320320
*
321-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
321+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
322322
* @return void
323323
*/
324324
public static function deleting($callback)
@@ -329,7 +329,7 @@ public static function deleting($callback)
329329
/**
330330
* Register a deleted model event with the dispatcher.
331331
*
332-
* @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
332+
* @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callback
333333
* @return void
334334
*/
335335
public static function deleted($callback)

0 commit comments

Comments
 (0)