Skip to content

Commit 66d6f8f

Browse files
authored
clean up redundant type hints in docblocks (#56690)
1 parent 0b52acb commit 66d6f8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+90
-90
lines changed

src/Illuminate/Auth/Access/Gate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function authorize($ability, $arguments = [])
402402
* Inspect the user for the given ability.
403403
*
404404
* @param \UnitEnum|string $ability
405-
* @param array|mixed $arguments
405+
* @param mixed $arguments
406406
* @return \Illuminate\Auth\Access\Response
407407
*/
408408
public function inspect($ability, $arguments = [])
@@ -426,7 +426,7 @@ public function inspect($ability, $arguments = [])
426426
* Get the raw result from the authorization callback.
427427
*
428428
* @param string $ability
429-
* @param array|mixed $arguments
429+
* @param mixed $arguments
430430
* @return mixed
431431
*
432432
* @throws \Illuminate\Auth\Access\AuthorizationException

src/Illuminate/Broadcasting/BroadcastManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function presence(string $channel): AnonymousEvent
159159
/**
160160
* Begin broadcasting an event.
161161
*
162-
* @param mixed|null $event
162+
* @param mixed $event
163163
* @return \Illuminate\Broadcasting\PendingBroadcast
164164
*/
165165
public function event($event = null)

src/Illuminate/Cache/RedisStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function flushStaleTags()
286286
/**
287287
* Begin executing a new tags operation.
288288
*
289-
* @param array|mixed $names
289+
* @param mixed $names
290290
* @return \Illuminate\Cache\RedisTaggedCache
291291
*/
292292
public function tags($names)

src/Illuminate/Cache/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public function clear(): bool
596596
/**
597597
* Begin executing a new tags operation if the store supports it.
598598
*
599-
* @param array|mixed $names
599+
* @param mixed $names
600600
* @return \Illuminate\Cache\TaggedCache
601601
*
602602
* @throws \BadMethodCallException

src/Illuminate/Cache/TaggableStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract class TaggableStore implements Store
99
/**
1010
* Begin executing a new tags operation.
1111
*
12-
* @param array|mixed $names
12+
* @param mixed $names
1313
* @return \Illuminate\Cache\TaggedCache
1414
*/
1515
public function tags($names)

src/Illuminate/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function resolve($command)
282282
/**
283283
* Resolve an array of commands through the application.
284284
*
285-
* @param array|mixed $commands
285+
* @param mixed $commands
286286
* @return $this
287287
*/
288288
public function resolveCommands($commands)

src/Illuminate/Console/Concerns/InteractsWithIO.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function secret($question, $fallback = true)
206206
* @param string $question
207207
* @param array $choices
208208
* @param string|int|null $default
209-
* @param mixed|null $attempts
209+
* @param mixed $attempts
210210
* @param bool $multiple
211211
* @return string|array
212212
*/

src/Illuminate/Console/Scheduling/Event.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public function appendOutputTo($location)
380380
/**
381381
* E-mail the results of the scheduled operation.
382382
*
383-
* @param array|mixed $addresses
383+
* @param mixed $addresses
384384
* @param bool $onlyIfOutputExists
385385
* @return $this
386386
*
@@ -400,7 +400,7 @@ public function emailOutputTo($addresses, $onlyIfOutputExists = true)
400400
/**
401401
* E-mail the results of the scheduled operation if it produces output.
402402
*
403-
* @param array|mixed $addresses
403+
* @param mixed $addresses
404404
* @return $this
405405
*
406406
* @throws \LogicException
@@ -413,7 +413,7 @@ public function emailWrittenOutputTo($addresses)
413413
/**
414414
* E-mail the results of the scheduled operation if it fails.
415415
*
416-
* @param array|mixed $addresses
416+
* @param mixed $addresses
417417
* @return $this
418418
*/
419419
public function emailOutputOnFailure($addresses)

src/Illuminate/Console/Scheduling/ManagesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function user($user)
113113
/**
114114
* Limit the environments the command should run in.
115115
*
116-
* @param array|mixed $environments
116+
* @param mixed $environments
117117
* @return $this
118118
*/
119119
public function environments($environments)

src/Illuminate/Console/Scheduling/ManagesFrequencies.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function weekly()
501501
/**
502502
* Schedule the event to run weekly on a given day and time.
503503
*
504-
* @param array|mixed $dayOfWeek
504+
* @param mixed $dayOfWeek
505505
* @param string $time
506506
* @return $this
507507
*/
@@ -628,7 +628,7 @@ public function yearlyOn($month = 1, $dayOfMonth = 1, $time = '0:0')
628628
/**
629629
* Set the days of the week the command should run on.
630630
*
631-
* @param array|mixed $days
631+
* @param mixed $days
632632
* @return $this
633633
*/
634634
public function days($days)

0 commit comments

Comments
 (0)