Skip to content

Commit 8f0e00b

Browse files
authored
[12.x] remove @return docblocks on constructors (#55076)
* remove `@return` docblocks on constructors PHP constructors don't really return anything, so the docblock is kind of unnecessary. this also brings consistency since we have some that use the tag and some that do not. we have a total of 557 constructors in the framework, so we definitely used it more than we didn't, but my personal opinion is this direction makes more sense. https://docs.phpdoc.org/guide/references/phpdoc/tags/return.html#return #702 https://www.php.net/manual/en/language.oop5.decon.php * minor formatting * minor formatting
1 parent 069e868 commit 8f0e00b

File tree

489 files changed

+0
-500
lines changed

Some content is hidden

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

489 files changed

+0
-500
lines changed

src/Illuminate/Auth/Access/AuthorizationException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class AuthorizationException extends Exception
2727
* @param string|null $message
2828
* @param mixed $code
2929
* @param \Throwable|null $previous
30-
* @return void
3130
*/
3231
public function __construct($message = null, $code = null, ?Throwable $previous = null)
3332
{

src/Illuminate/Auth/Access/Events/GateEvaluated.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class GateEvaluated
3939
* @param string $ability
4040
* @param bool|null $result
4141
* @param array $arguments
42-
* @return void
4342
*/
4443
public function __construct($user, $ability, $result, $arguments)
4544
{

src/Illuminate/Auth/Access/Gate.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class Gate implements GateContract
9494
* @param array $beforeCallbacks
9595
* @param array $afterCallbacks
9696
* @param callable|null $guessPolicyNamesUsingCallback
97-
* @return void
9897
*/
9998
public function __construct(
10099
Container $container,

src/Illuminate/Auth/Access/Response.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class Response implements Arrayable, Stringable
4141
* @param bool $allowed
4242
* @param string|null $message
4343
* @param mixed $code
44-
* @return void
4544
*/
4645
public function __construct($allowed, $message = '', $code = null)
4746
{

src/Illuminate/Auth/AuthManager.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class AuthManager implements FactoryContract
4848
* Create a new Auth manager instance.
4949
*
5050
* @param \Illuminate\Contracts\Foundation\Application $app
51-
* @return void
5251
*/
5352
public function __construct($app)
5453
{

src/Illuminate/Auth/AuthenticationException.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class AuthenticationException extends Exception
3434
* @param string $message
3535
* @param array $guards
3636
* @param string|null $redirectTo
37-
* @return void
3837
*/
3938
public function __construct($message = 'Unauthenticated.', array $guards = [], $redirectTo = null)
4039
{

src/Illuminate/Auth/DatabaseUserProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class DatabaseUserProvider implements UserProvider
3838
* @param \Illuminate\Database\ConnectionInterface $connection
3939
* @param \Illuminate\Contracts\Hashing\Hasher $hasher
4040
* @param string $table
41-
* @return void
4241
*/
4342
public function __construct(ConnectionInterface $connection, HasherContract $hasher, $table)
4443
{

src/Illuminate/Auth/EloquentUserProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class EloquentUserProvider implements UserProvider
3636
*
3737
* @param \Illuminate\Contracts\Hashing\Hasher $hasher
3838
* @param string $model
39-
* @return void
4039
*/
4140
public function __construct(HasherContract $hasher, $model)
4241
{

src/Illuminate/Auth/Events/Attempting.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class Attempting
1010
* @param string $guard The authentication guard name.
1111
* @param array $credentials The credentials for the user.
1212
* @param bool $remember Indicates if the user should be "remembered".
13-
* @return void
1413
*/
1514
public function __construct(
1615
public $guard,

src/Illuminate/Auth/Events/Authenticated.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class Authenticated
1313
*
1414
* @param string $guard The authentication guard name.
1515
* @param \Illuminate\Contracts\Auth\Authenticatable $user The authenticated user.
16-
* @return void
1716
*/
1817
public function __construct(
1918
public $guard,

0 commit comments

Comments
 (0)