18
18
19
19
use function Illuminate \Support \enum_value ;
20
20
21
- /**
22
- * @template TClass of object
23
- */
24
21
class Gate implements GateContract
25
22
{
26
23
use HandlesAuthorization;
@@ -329,7 +326,7 @@ public function after(callable $callback)
329
326
* Determine if all of the given abilities should be granted for the current user.
330
327
*
331
328
* @param iterable|\UnitEnum|string $ability
332
- * @param array{class-string<TClass>|TClass, ...} $arguments
329
+ * @param mixed $arguments
333
330
* @return bool
334
331
*/
335
332
public function allows ($ ability , $ arguments = [])
@@ -341,7 +338,7 @@ public function allows($ability, $arguments = [])
341
338
* Determine if any of the given abilities should be denied for the current user.
342
339
*
343
340
* @param iterable|\UnitEnum|string $ability
344
- * @param array{class-string<TClass>|TClass, ...} $arguments
341
+ * @param mixed $arguments
345
342
* @return bool
346
343
*/
347
344
public function denies ($ ability , $ arguments = [])
@@ -353,7 +350,7 @@ public function denies($ability, $arguments = [])
353
350
* Determine if all of the given abilities should be granted for the current user.
354
351
*
355
352
* @param iterable|\UnitEnum|string $abilities
356
- * @param array{class-string<TClass>|TClass, ...} $arguments
353
+ * @param mixed $arguments
357
354
* @return bool
358
355
*/
359
356
public function check ($ abilities , $ arguments = [])
@@ -367,7 +364,7 @@ public function check($abilities, $arguments = [])
367
364
* Determine if any one of the given abilities should be granted for the current user.
368
365
*
369
366
* @param iterable|\UnitEnum|string $abilities
370
- * @param array{class-string<TClass>|TClass, ...} $arguments
367
+ * @param mixed $arguments
371
368
* @return bool
372
369
*/
373
370
public function any ($ abilities , $ arguments = [])
@@ -379,7 +376,7 @@ public function any($abilities, $arguments = [])
379
376
* Determine if all of the given abilities should be denied for the current user.
380
377
*
381
378
* @param iterable|\UnitEnum|string $abilities
382
- * @param array{class-string<TClass>|TClass, ...} $arguments
379
+ * @param mixed $arguments
383
380
* @return bool
384
381
*/
385
382
public function none ($ abilities , $ arguments = [])
@@ -391,7 +388,7 @@ public function none($abilities, $arguments = [])
391
388
* Determine if the given ability should be granted for the current user.
392
389
*
393
390
* @param \UnitEnum|string $ability
394
- * @param array{class-string<TClass>|TClass, ...} $arguments
391
+ * @param mixed $arguments
395
392
* @return \Illuminate\Auth\Access\Response
396
393
*
397
394
* @throws \Illuminate\Auth\Access\AuthorizationException
@@ -405,7 +402,7 @@ public function authorize($ability, $arguments = [])
405
402
* Inspect the user for the given ability.
406
403
*
407
404
* @param \UnitEnum|string $ability
408
- * @param array{class-string<TClass>|TClass, ...} $arguments
405
+ * @param array|mixed $arguments
409
406
* @return \Illuminate\Auth\Access\Response
410
407
*/
411
408
public function inspect ($ ability , $ arguments = [])
@@ -429,7 +426,7 @@ public function inspect($ability, $arguments = [])
429
426
* Get the raw result from the authorization callback.
430
427
*
431
428
* @param string $ability
432
- * @param array{class-string<TClass>|TClass, ...} $arguments
429
+ * @param array|mixed $arguments
433
430
* @return mixed
434
431
*
435
432
* @throws \Illuminate\Auth\Access\AuthorizationException
0 commit comments