Skip to content

[12.x] Clean up redundant type hints in docblocks #56411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function after(callable $callback)
* Determine if all of the given abilities should be granted for the current user.
*
* @param iterable|\UnitEnum|string $ability
* @param array|mixed $arguments
* @param mixed $arguments
* @return bool
*/
public function allows($ability, $arguments = [])
Expand All @@ -338,7 +338,7 @@ public function allows($ability, $arguments = [])
* Determine if any of the given abilities should be denied for the current user.
*
* @param iterable|\UnitEnum|string $ability
* @param array|mixed $arguments
* @param mixed $arguments
* @return bool
*/
public function denies($ability, $arguments = [])
Expand All @@ -350,7 +350,7 @@ public function denies($ability, $arguments = [])
* Determine if all of the given abilities should be granted for the current user.
*
* @param iterable|\UnitEnum|string $abilities
* @param array|mixed $arguments
* @param mixed $arguments
* @return bool
*/
public function check($abilities, $arguments = [])
Expand All @@ -364,7 +364,7 @@ public function check($abilities, $arguments = [])
* Determine if any one of the given abilities should be granted for the current user.
*
* @param iterable|\UnitEnum|string $abilities
* @param array|mixed $arguments
* @param mixed $arguments
* @return bool
*/
public function any($abilities, $arguments = [])
Expand All @@ -376,7 +376,7 @@ public function any($abilities, $arguments = [])
* Determine if all of the given abilities should be denied for the current user.
*
* @param iterable|\UnitEnum|string $abilities
* @param array|mixed $arguments
* @param mixed $arguments
* @return bool
*/
public function none($abilities, $arguments = [])
Expand All @@ -388,7 +388,7 @@ public function none($abilities, $arguments = [])
* Determine if the given ability should be granted for the current user.
*
* @param \UnitEnum|string $ability
* @param array|mixed $arguments
* @param mixed $arguments
* @return \Illuminate\Auth\Access\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Access/HandlesAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function allow($message = null, $code = null)
* Throws an unauthorized exception.
*
* @param string|null $message
* @param mixed|null $code
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
protected function deny($message = null, $code = null)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Bus/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function findBatch(string $batchId)
/**
* Create a new batch of queueable jobs.
*
* @param \Illuminate\Support\Collection|array|mixed $jobs
* @param \Illuminate\Support\Collection|mixed $jobs
* @return \Illuminate\Bus\PendingBatch
*/
public function batch($jobs)
Expand Down Expand Up @@ -187,7 +187,7 @@ public function hasCommandHandler($command)
* Retrieve the handler for a command.
*
* @param mixed $command
* @return bool|mixed
* @return mixed
*/
public function getCommandHandler($command)
{
Expand Down