Skip to content

Commit fd189ca

Browse files
authored
Use never type (#53643)
1 parent 0cb780c commit fd189ca

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Illuminate/Auth/Middleware/Authenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected function authenticate($request, array $guards)
9393
*
9494
* @param \Illuminate\Http\Request $request
9595
* @param array $guards
96-
* @return void
96+
* @return never
9797
*
9898
* @throws \Illuminate\Auth\AuthenticationException
9999
*/

src/Illuminate/Http/ResponseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function withException(Throwable $e)
171171
/**
172172
* Throws the response in a HttpResponseException instance.
173173
*
174-
* @return void
174+
* @return never
175175
*
176176
* @throws \Illuminate\Http\Exceptions\HttpResponseException
177177
*/

src/Illuminate/Routing/AbstractRouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ protected function getRouteForMethods($request, array $methods)
113113
* @param \Illuminate\Http\Request $request
114114
* @param array $others
115115
* @param string $method
116-
* @return void
116+
* @return never
117117
*
118118
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
119119
*/

src/Illuminate/Support/Traits/ForwardsCalls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function forwardDecoratedCallTo($object, $method, $parameters)
5858
* Throw a bad method call exception for the given method.
5959
*
6060
* @param string $method
61-
* @return void
61+
* @return never
6262
*
6363
* @throws \BadMethodCallException
6464
*/

0 commit comments

Comments
 (0)