Skip to content

Commit b59cb3b

Browse files
authored
remove unnecessary types (#56411)
1 parent 090a083 commit b59cb3b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Illuminate/Auth/Access/Gate.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function after(callable $callback)
326326
* Determine if all of the given abilities should be granted for the current user.
327327
*
328328
* @param iterable|\UnitEnum|string $ability
329-
* @param array|mixed $arguments
329+
* @param mixed $arguments
330330
* @return bool
331331
*/
332332
public function allows($ability, $arguments = [])
@@ -338,7 +338,7 @@ public function allows($ability, $arguments = [])
338338
* Determine if any of the given abilities should be denied for the current user.
339339
*
340340
* @param iterable|\UnitEnum|string $ability
341-
* @param array|mixed $arguments
341+
* @param mixed $arguments
342342
* @return bool
343343
*/
344344
public function denies($ability, $arguments = [])
@@ -350,7 +350,7 @@ public function denies($ability, $arguments = [])
350350
* Determine if all of the given abilities should be granted for the current user.
351351
*
352352
* @param iterable|\UnitEnum|string $abilities
353-
* @param array|mixed $arguments
353+
* @param mixed $arguments
354354
* @return bool
355355
*/
356356
public function check($abilities, $arguments = [])
@@ -364,7 +364,7 @@ public function check($abilities, $arguments = [])
364364
* Determine if any one of the given abilities should be granted for the current user.
365365
*
366366
* @param iterable|\UnitEnum|string $abilities
367-
* @param array|mixed $arguments
367+
* @param mixed $arguments
368368
* @return bool
369369
*/
370370
public function any($abilities, $arguments = [])
@@ -376,7 +376,7 @@ public function any($abilities, $arguments = [])
376376
* Determine if all of the given abilities should be denied for the current user.
377377
*
378378
* @param iterable|\UnitEnum|string $abilities
379-
* @param array|mixed $arguments
379+
* @param mixed $arguments
380380
* @return bool
381381
*/
382382
public function none($abilities, $arguments = [])
@@ -388,7 +388,7 @@ public function none($abilities, $arguments = [])
388388
* Determine if the given ability should be granted for the current user.
389389
*
390390
* @param \UnitEnum|string $ability
391-
* @param array|mixed $arguments
391+
* @param mixed $arguments
392392
* @return \Illuminate\Auth\Access\Response
393393
*
394394
* @throws \Illuminate\Auth\Access\AuthorizationException

src/Illuminate/Auth/Access/HandlesAuthorization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function allow($message = null, $code = null)
2020
* Throws an unauthorized exception.
2121
*
2222
* @param string|null $message
23-
* @param mixed|null $code
23+
* @param mixed $code
2424
* @return \Illuminate\Auth\Access\Response
2525
*/
2626
protected function deny($message = null, $code = null)

src/Illuminate/Bus/Dispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function findBatch(string $batchId)
150150
/**
151151
* Create a new batch of queueable jobs.
152152
*
153-
* @param \Illuminate\Support\Collection|array|mixed $jobs
153+
* @param \Illuminate\Support\Collection|mixed $jobs
154154
* @return \Illuminate\Bus\PendingBatch
155155
*/
156156
public function batch($jobs)
@@ -187,7 +187,7 @@ public function hasCommandHandler($command)
187187
* Retrieve the handler for a command.
188188
*
189189
* @param mixed $command
190-
* @return bool|mixed
190+
* @return mixed
191191
*/
192192
public function getCommandHandler($command)
193193
{

0 commit comments

Comments
 (0)