Skip to content

Commit

Permalink
Use never type (laravel#53643)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamiroh authored Nov 25, 2024
1 parent 0cb780c commit fd189ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function authenticate($request, array $guards)
*
* @param \Illuminate\Http\Request $request
* @param array $guards
* @return void
* @return never
*
* @throws \Illuminate\Auth\AuthenticationException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Http/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function withException(Throwable $e)
/**
* Throws the response in a HttpResponseException instance.
*
* @return void
* @return never
*
* @throws \Illuminate\Http\Exceptions\HttpResponseException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/AbstractRouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function getRouteForMethods($request, array $methods)
* @param \Illuminate\Http\Request $request
* @param array $others
* @param string $method
* @return void
* @return never
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Traits/ForwardsCalls.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function forwardDecoratedCallTo($object, $method, $parameters)
* Throw a bad method call exception for the given method.
*
* @param string $method
* @return void
* @return never
*
* @throws \BadMethodCallException
*/
Expand Down

0 comments on commit fd189ca

Please sign in to comment.