Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions bin/facades.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function resolveDocMethods($class)
*
* @param \ReflectionMethodDecorator $method
* @param \ReflectionParameter $parameter
* @return string|null
* @return ?string
*/
function resolveDocParamType($method, $parameter)
{
Expand Down Expand Up @@ -187,7 +187,7 @@ function resolveDocParamType($method, $parameter)
* Resolve the return type from the @return docblock.
*
* @param \ReflectionMethodDecorator $method
* @return string|null
* @return ?string
*/
function resolveReturnDocType($method)
{
Expand Down Expand Up @@ -414,7 +414,7 @@ function isKnownOptionalDependency($type)
* Resolve the declared type.
*
* @param \ReflectionType|null $type
* @return string|null
* @return ?string
*/
function resolveType($type)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Access/AuthorizationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AuthorizationException extends Exception
/**
* Create a new authorization exception instance.
*
* @param string|null $message
* @param ?string $message
* @param mixed $code
* @param \Throwable|null $previous
* @return void
Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Auth/Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public function has($ability)
* Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
*
* @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
* @param string|null $message
* @param string|null $code
* @param ?string $message
* @param ?string $code
* @return \Illuminate\Auth\Access\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
Expand All @@ -138,8 +138,8 @@ public function allowIf($condition, $message = null, $code = null)
* Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
*
* @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
* @param string|null $message
* @param string|null $code
* @param ?string $message
* @param ?string $code
* @return \Illuminate\Auth\Access\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
Expand All @@ -153,8 +153,8 @@ public function denyIf($condition, $message = null, $code = null)
* Authorize a given condition or callback.
*
* @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
* @param string|null $message
* @param string|null $code
* @param ?string $message
* @param ?string $code
* @param bool $allowWhenResponseIs
* @return \Illuminate\Auth\Access\Response
*
Expand Down Expand Up @@ -445,7 +445,7 @@ public function raw($ability, $arguments = [])
*
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
* @param \Closure|string|array $class
* @param string|null $method
* @param ?string $method
* @return bool
*/
protected function canBeCalledWithUser($user, $class, $method = null)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/Access/HandlesAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trait HandlesAuthorization
/**
* Create a new access response.
*
* @param string|null $message
* @param ?string $message
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
Expand All @@ -19,7 +19,7 @@ protected function allow($message = null, $code = null)
/**
* Throws an unauthorized exception.
*
* @param string|null $message
* @param ?string $message
* @param mixed|null $code
* @return \Illuminate\Auth\Access\Response
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Illuminate/Auth/Access/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Response implements Arrayable
/**
* The response message.
*
* @var string|null
* @var ?string
*/
protected $message;

Expand Down Expand Up @@ -52,7 +52,7 @@ public function __construct($allowed, $message = '', $code = null)
/**
* Create a new "allow" Response.
*
* @param string|null $message
* @param ?string $message
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
Expand All @@ -64,7 +64,7 @@ public static function allow($message = null, $code = null)
/**
* Create a new "deny" Response.
*
* @param string|null $message
* @param ?string $message
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
Expand All @@ -77,7 +77,7 @@ public static function deny($message = null, $code = null)
* Create a new "deny" Response with a HTTP status code.
*
* @param int $status
* @param string|null $message
* @param ?string $message
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
Expand All @@ -89,7 +89,7 @@ public static function denyWithStatus($status, $message = null, $code = null)
/**
* Create a new "deny" Response with a 404 HTTP status code.
*
* @param string|null $message
* @param ?string $message
* @param mixed $code
* @return \Illuminate\Auth\Access\Response
*/
Expand Down Expand Up @@ -121,7 +121,7 @@ public function denied()
/**
* Get the response message.
*
* @return string|null
* @return ?string
*/
public function message()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/AuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct($app)
/**
* Attempt to get the guard from the local cache.
*
* @param string|null $name
* @param ?string $name
* @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
*/
public function guard($name = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Authenticatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getAuthPassword()
/**
* Get the token value for the "remember me" session.
*
* @return string|null
* @return ?string
*/
public function getRememberToken()
{
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Auth/AuthenticationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AuthenticationException extends Exception
/**
* The path the user should be redirected to.
*
* @var string|null
* @var ?string
*/
protected $redirectTo;

Expand All @@ -25,7 +25,7 @@ class AuthenticationException extends Exception
*
* @param string $message
* @param array $guards
* @param string|null $redirectTo
* @param ?string $redirectTo
* @return void
*/
public function __construct($message = 'Unauthenticated.', array $guards = [], $redirectTo = null)
Expand All @@ -49,7 +49,7 @@ public function guards()
/**
* Get the path the user should be redirected to.
*
* @return string|null
* @return ?string
*/
public function redirectTo()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Console/ClearResetsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ClearResetsCommand extends Command
*
* This name is used to identify the command during lazy loading.
*
* @var string|null
* @var ?string
*
* @deprecated
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/CreatesUserProviders.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trait CreatesUserProviders
/**
* Create the user provider implementation for the driver.
*
* @param string|null $provider
* @param ?string $provider
* @return \Illuminate\Contracts\Auth\UserProvider|null
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -45,7 +45,7 @@ public function createUserProvider($provider = null)
/**
* Get the user provider configuration.
*
* @param string|null $provider
* @param ?string $provider
* @return array|null
*/
protected function getProviderConfiguration($provider)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function unauthenticated($request, array $guards)
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string|null
* @return ?string
*/
protected function redirectTo($request)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function __construct(AuthFactory $auth)
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @param string|null $field
* @param ?string $guard
* @param ?string $field
* @return mixed
*
* @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class EnsureEmailIsVerified
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $redirectToRoute
* @param ?string $redirectToRoute
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse|null
*/
public function handle($request, Closure $next, $redirectToRoute = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Middleware/RequirePassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(ResponseFactory $responseFactory, UrlGenerator $urlG
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $redirectToRoute
* @param ?string $redirectToRoute
* @param int|null $passwordTimeoutSeconds
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Auth/Passwords/PasswordBrokerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct($app)
/**
* Attempt to get the broker from the local cache.
*
* @param string|null $name
* @param ?string $name
* @return \Illuminate\Contracts\Auth\PasswordBroker
*/
public function broker($name = null)
Expand Down
8 changes: 4 additions & 4 deletions src/Illuminate/Broadcasting/BroadcastManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function channelRoutes(array $attributes = null)
* Get the socket ID for the given request.
*
* @param \Illuminate\Http\Request|null $request
* @return string|null
* @return ?string
*/
public function socket($request = null)
{
Expand Down Expand Up @@ -201,7 +201,7 @@ protected function mustBeUniqueAndCannotAcquireLock($event)
/**
* Get a driver instance.
*
* @param string|null $driver
* @param ?string $driver
* @return mixed
*/
public function connection($driver = null)
Expand All @@ -212,7 +212,7 @@ public function connection($driver = null)
/**
* Get a driver instance.
*
* @param string|null $name
* @param ?string $name
* @return mixed
*/
public function driver($name = null)
Expand Down Expand Up @@ -408,7 +408,7 @@ public function setDefaultDriver($name)
/**
* Disconnect the given disk and remove from local cache.
*
* @param string|null $name
* @param ?string $name
* @return void
*/
public function purge($name = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class RedisBroadcaster extends Broadcaster
* Create a new broadcaster instance.
*
* @param \Illuminate\Contracts\Redis\Factory $redis
* @param string|null $connection
* @param ?string $connection
* @param string $prefix
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Broadcasting/InteractsWithSockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait InteractsWithSockets
/**
* The socket ID for the user that raised the event.
*
* @var string|null
* @var ?string
*/
public $socket;

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Broadcasting/PendingBroadcast.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(Dispatcher $events, $event)
/**
* Broadcast the event using a specific broadcaster.
*
* @param string|null $connection
* @param ?string $connection
* @return $this
*/
public function via($connection = null)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Bus/PendingBatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function onConnection(string $connection)
/**
* Get the connection used by the pending batch.
*
* @return string|null
* @return ?string
*/
public function connection()
{
Expand All @@ -221,7 +221,7 @@ public function onQueue(string $queue)
/**
* Get the queue used by the pending batch.
*
* @return string|null
* @return ?string
*/
public function queue()
{
Expand Down
Loading