diff --git a/bin/facades.php b/bin/facades.php index 958ccf7126f0..8e0a47b64a18 100644 --- a/bin/facades.php +++ b/bin/facades.php @@ -159,7 +159,7 @@ function resolveDocMethods($class) * * @param \ReflectionMethodDecorator $method * @param \ReflectionParameter $parameter - * @return string|null + * @return ?string */ function resolveDocParamType($method, $parameter) { @@ -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) { @@ -414,7 +414,7 @@ function isKnownOptionalDependency($type) * Resolve the declared type. * * @param \ReflectionType|null $type - * @return string|null + * @return ?string */ function resolveType($type) { diff --git a/src/Illuminate/Auth/Access/AuthorizationException.php b/src/Illuminate/Auth/Access/AuthorizationException.php index 17101b4d07d5..f2e610530b73 100644 --- a/src/Illuminate/Auth/Access/AuthorizationException.php +++ b/src/Illuminate/Auth/Access/AuthorizationException.php @@ -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 diff --git a/src/Illuminate/Auth/Access/Gate.php b/src/Illuminate/Auth/Access/Gate.php index 1694607f20e1..9b890fe7ff93 100644 --- a/src/Illuminate/Auth/Access/Gate.php +++ b/src/Illuminate/Auth/Access/Gate.php @@ -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 @@ -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 @@ -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 * @@ -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) diff --git a/src/Illuminate/Auth/Access/HandlesAuthorization.php b/src/Illuminate/Auth/Access/HandlesAuthorization.php index fc71cf15f1ce..c6dd9c7749d1 100644 --- a/src/Illuminate/Auth/Access/HandlesAuthorization.php +++ b/src/Illuminate/Auth/Access/HandlesAuthorization.php @@ -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 */ @@ -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 */ diff --git a/src/Illuminate/Auth/Access/Response.php b/src/Illuminate/Auth/Access/Response.php index 77cabb521de9..499687dbc4b0 100644 --- a/src/Illuminate/Auth/Access/Response.php +++ b/src/Illuminate/Auth/Access/Response.php @@ -16,7 +16,7 @@ class Response implements Arrayable /** * The response message. * - * @var string|null + * @var ?string */ protected $message; @@ -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 */ @@ -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 */ @@ -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 */ @@ -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 */ @@ -121,7 +121,7 @@ public function denied() /** * Get the response message. * - * @return string|null + * @return ?string */ public function message() { diff --git a/src/Illuminate/Auth/AuthManager.php b/src/Illuminate/Auth/AuthManager.php index e95da5ec4ae4..d2b6ea0acddb 100755 --- a/src/Illuminate/Auth/AuthManager.php +++ b/src/Illuminate/Auth/AuthManager.php @@ -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) diff --git a/src/Illuminate/Auth/Authenticatable.php b/src/Illuminate/Auth/Authenticatable.php index f1c0115916c8..37801febc469 100644 --- a/src/Illuminate/Auth/Authenticatable.php +++ b/src/Illuminate/Auth/Authenticatable.php @@ -54,7 +54,7 @@ public function getAuthPassword() /** * Get the token value for the "remember me" session. * - * @return string|null + * @return ?string */ public function getRememberToken() { diff --git a/src/Illuminate/Auth/AuthenticationException.php b/src/Illuminate/Auth/AuthenticationException.php index 66808c3b8151..88a69e7c77d2 100644 --- a/src/Illuminate/Auth/AuthenticationException.php +++ b/src/Illuminate/Auth/AuthenticationException.php @@ -16,7 +16,7 @@ class AuthenticationException extends Exception /** * The path the user should be redirected to. * - * @var string|null + * @var ?string */ protected $redirectTo; @@ -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) @@ -49,7 +49,7 @@ public function guards() /** * Get the path the user should be redirected to. * - * @return string|null + * @return ?string */ public function redirectTo() { diff --git a/src/Illuminate/Auth/Console/ClearResetsCommand.php b/src/Illuminate/Auth/Console/ClearResetsCommand.php index 2ea96681f8e7..8a130f99a466 100644 --- a/src/Illuminate/Auth/Console/ClearResetsCommand.php +++ b/src/Illuminate/Auth/Console/ClearResetsCommand.php @@ -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 */ diff --git a/src/Illuminate/Auth/CreatesUserProviders.php b/src/Illuminate/Auth/CreatesUserProviders.php index 761a427668ee..bca61a1f1dfd 100644 --- a/src/Illuminate/Auth/CreatesUserProviders.php +++ b/src/Illuminate/Auth/CreatesUserProviders.php @@ -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 @@ -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) diff --git a/src/Illuminate/Auth/Middleware/Authenticate.php b/src/Illuminate/Auth/Middleware/Authenticate.php index 7eda342d3e01..f5dac7c3f773 100644 --- a/src/Illuminate/Auth/Middleware/Authenticate.php +++ b/src/Illuminate/Auth/Middleware/Authenticate.php @@ -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) { diff --git a/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php b/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php index 92c81e68be47..9fde5721f6ef 100644 --- a/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php +++ b/src/Illuminate/Auth/Middleware/AuthenticateWithBasicAuth.php @@ -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 diff --git a/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php b/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php index 8f2b33ae5c72..22292d20daa5 100644 --- a/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php +++ b/src/Illuminate/Auth/Middleware/EnsureEmailIsVerified.php @@ -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) diff --git a/src/Illuminate/Auth/Middleware/RequirePassword.php b/src/Illuminate/Auth/Middleware/RequirePassword.php index 4ed43954da22..5dc402326fc7 100644 --- a/src/Illuminate/Auth/Middleware/RequirePassword.php +++ b/src/Illuminate/Auth/Middleware/RequirePassword.php @@ -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 */ diff --git a/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php b/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php index 01cffe8e6c6b..099bc6399aec 100644 --- a/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php +++ b/src/Illuminate/Auth/Passwords/PasswordBrokerManager.php @@ -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) diff --git a/src/Illuminate/Broadcasting/BroadcastManager.php b/src/Illuminate/Broadcasting/BroadcastManager.php index f479b0bcfc42..ecb6f5897c12 100644 --- a/src/Illuminate/Broadcasting/BroadcastManager.php +++ b/src/Illuminate/Broadcasting/BroadcastManager.php @@ -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) { @@ -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) @@ -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) @@ -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) diff --git a/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php b/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php index 5ae2e03c8f44..44bf3a517e4b 100644 --- a/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php +++ b/src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php @@ -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 */ diff --git a/src/Illuminate/Broadcasting/InteractsWithSockets.php b/src/Illuminate/Broadcasting/InteractsWithSockets.php index 6be0791a5e06..dc5af0d78045 100644 --- a/src/Illuminate/Broadcasting/InteractsWithSockets.php +++ b/src/Illuminate/Broadcasting/InteractsWithSockets.php @@ -9,7 +9,7 @@ trait InteractsWithSockets /** * The socket ID for the user that raised the event. * - * @var string|null + * @var ?string */ public $socket; diff --git a/src/Illuminate/Broadcasting/PendingBroadcast.php b/src/Illuminate/Broadcasting/PendingBroadcast.php index 191b905f5938..c15b5920546b 100644 --- a/src/Illuminate/Broadcasting/PendingBroadcast.php +++ b/src/Illuminate/Broadcasting/PendingBroadcast.php @@ -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) diff --git a/src/Illuminate/Bus/PendingBatch.php b/src/Illuminate/Bus/PendingBatch.php index 6cd518311d21..a7a3237bb8b4 100644 --- a/src/Illuminate/Bus/PendingBatch.php +++ b/src/Illuminate/Bus/PendingBatch.php @@ -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() { @@ -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() { diff --git a/src/Illuminate/Bus/Queueable.php b/src/Illuminate/Bus/Queueable.php index 3d3bbb9b290e..045a18af7757 100644 --- a/src/Illuminate/Bus/Queueable.php +++ b/src/Illuminate/Bus/Queueable.php @@ -12,28 +12,28 @@ trait Queueable /** * The name of the connection the job should be sent to. * - * @var string|null + * @var ?string */ public $connection; /** * The name of the queue the job should be sent to. * - * @var string|null + * @var ?string */ public $queue; /** * The name of the connection the chain should be sent to. * - * @var string|null + * @var ?string */ public $chainConnection; /** * The name of the queue the chain should be sent to. * - * @var string|null + * @var ?string */ public $chainQueue; @@ -75,7 +75,7 @@ trait Queueable /** * Set the desired connection for the job. * - * @param string|null $connection + * @param ?string $connection * @return $this */ public function onConnection($connection) @@ -88,7 +88,7 @@ public function onConnection($connection) /** * Set the desired queue for the job. * - * @param string|null $queue + * @param ?string $queue * @return $this */ public function onQueue($queue) @@ -101,7 +101,7 @@ public function onQueue($queue) /** * Set the desired connection for the chain. * - * @param string|null $connection + * @param ?string $connection * @return $this */ public function allOnConnection($connection) @@ -115,7 +115,7 @@ public function allOnConnection($connection) /** * Set the desired queue for the chain. * - * @param string|null $queue + * @param ?string $queue * @return $this */ public function allOnQueue($queue) diff --git a/src/Illuminate/Cache/ArrayLock.php b/src/Illuminate/Cache/ArrayLock.php index 4c20783b2362..a0cae5e42014 100644 --- a/src/Illuminate/Cache/ArrayLock.php +++ b/src/Illuminate/Cache/ArrayLock.php @@ -19,7 +19,7 @@ class ArrayLock extends Lock * @param \Illuminate\Cache\ArrayStore $store * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return void */ public function __construct($store, $name, $seconds, $owner = null) diff --git a/src/Illuminate/Cache/ArrayStore.php b/src/Illuminate/Cache/ArrayStore.php index 22b42ba5f10f..e5bbec0d99c4 100644 --- a/src/Illuminate/Cache/ArrayStore.php +++ b/src/Illuminate/Cache/ArrayStore.php @@ -196,7 +196,7 @@ protected function toTimestamp($seconds) * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null) diff --git a/src/Illuminate/Cache/CacheLock.php b/src/Illuminate/Cache/CacheLock.php index 5cc4eeaf4863..28e88dca8318 100644 --- a/src/Illuminate/Cache/CacheLock.php +++ b/src/Illuminate/Cache/CacheLock.php @@ -17,7 +17,7 @@ class CacheLock extends Lock * @param \Illuminate\Contracts\Cache\Store $store * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return void */ public function __construct($store, $name, $seconds, $owner = null) diff --git a/src/Illuminate/Cache/CacheManager.php b/src/Illuminate/Cache/CacheManager.php index d945db9678f0..ff9f503e052b 100755 --- a/src/Illuminate/Cache/CacheManager.php +++ b/src/Illuminate/Cache/CacheManager.php @@ -51,7 +51,7 @@ public function __construct($app) /** * Get a cache store instance by name, wrapped in a repository. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Cache\Repository */ public function store($name = null) @@ -64,7 +64,7 @@ public function store($name = null) /** * Get a cache driver instance. * - * @param string|null $driver + * @param ?string $driver * @return \Illuminate\Contracts\Cache\Repository */ public function driver($driver = null) @@ -383,7 +383,7 @@ public function forgetDriver($name = null) /** * Disconnect the given driver and remove from local cache. * - * @param string|null $name + * @param ?string $name * @return void */ public function purge($name = null) diff --git a/src/Illuminate/Cache/Console/CacheTableCommand.php b/src/Illuminate/Cache/Console/CacheTableCommand.php index 19b591bdda36..f9e2fa7ec71f 100644 --- a/src/Illuminate/Cache/Console/CacheTableCommand.php +++ b/src/Illuminate/Cache/Console/CacheTableCommand.php @@ -22,7 +22,7 @@ class CacheTableCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Cache/Console/ClearCommand.php b/src/Illuminate/Cache/Console/ClearCommand.php index 7d3336c712a9..bbe2b5c78bbb 100755 --- a/src/Illuminate/Cache/Console/ClearCommand.php +++ b/src/Illuminate/Cache/Console/ClearCommand.php @@ -24,7 +24,7 @@ class ClearCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Cache/Console/ForgetCommand.php b/src/Illuminate/Cache/Console/ForgetCommand.php index c7fc830cd999..075b877c0ca6 100755 --- a/src/Illuminate/Cache/Console/ForgetCommand.php +++ b/src/Illuminate/Cache/Console/ForgetCommand.php @@ -21,7 +21,7 @@ class ForgetCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Cache/DatabaseLock.php b/src/Illuminate/Cache/DatabaseLock.php index c8db07ac4ca3..bde8bcd8216d 100644 --- a/src/Illuminate/Cache/DatabaseLock.php +++ b/src/Illuminate/Cache/DatabaseLock.php @@ -36,7 +36,7 @@ class DatabaseLock extends Lock * @param string $table * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @param array $lottery * @return void */ diff --git a/src/Illuminate/Cache/DatabaseStore.php b/src/Illuminate/Cache/DatabaseStore.php index b43761b1e39c..df00a25205da 100755 --- a/src/Illuminate/Cache/DatabaseStore.php +++ b/src/Illuminate/Cache/DatabaseStore.php @@ -266,7 +266,7 @@ public function forever($key, $value) * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null) diff --git a/src/Illuminate/Cache/DynamoDbLock.php b/src/Illuminate/Cache/DynamoDbLock.php index 922260792938..a510f2860322 100644 --- a/src/Illuminate/Cache/DynamoDbLock.php +++ b/src/Illuminate/Cache/DynamoDbLock.php @@ -17,7 +17,7 @@ class DynamoDbLock extends Lock * @param \Illuminate\Cache\DynamoDbStore $dynamo * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return void */ public function __construct(DynamoDbStore $dynamo, $name, $seconds, $owner = null) diff --git a/src/Illuminate/Cache/DynamoDbStore.php b/src/Illuminate/Cache/DynamoDbStore.php index 30e175ac0ed0..be29f57702e7 100644 --- a/src/Illuminate/Cache/DynamoDbStore.php +++ b/src/Illuminate/Cache/DynamoDbStore.php @@ -399,7 +399,7 @@ public function forever($key, $value) * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null) diff --git a/src/Illuminate/Cache/HasCacheLock.php b/src/Illuminate/Cache/HasCacheLock.php index 82ad9c2b31f5..2b701e179f89 100644 --- a/src/Illuminate/Cache/HasCacheLock.php +++ b/src/Illuminate/Cache/HasCacheLock.php @@ -9,7 +9,7 @@ trait HasCacheLock * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null) diff --git a/src/Illuminate/Cache/Lock.php b/src/Illuminate/Cache/Lock.php index bed170507a9a..744fcf17b10f 100644 --- a/src/Illuminate/Cache/Lock.php +++ b/src/Illuminate/Cache/Lock.php @@ -44,7 +44,7 @@ abstract class Lock implements LockContract * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return void */ public function __construct($name, $seconds, $owner = null) diff --git a/src/Illuminate/Cache/MemcachedConnector.php b/src/Illuminate/Cache/MemcachedConnector.php index 224d94099bf3..b1635165d093 100755 --- a/src/Illuminate/Cache/MemcachedConnector.php +++ b/src/Illuminate/Cache/MemcachedConnector.php @@ -10,7 +10,7 @@ class MemcachedConnector * Create a new Memcached connection. * * @param array $servers - * @param string|null $connectionId + * @param ?string $connectionId * @param array $options * @param array $credentials * @return \Memcached @@ -38,7 +38,7 @@ public function connect(array $servers, $connectionId = null, array $options = [ /** * Get a new Memcached instance. * - * @param string|null $connectionId + * @param ?string $connectionId * @param array $credentials * @param array $options * @return \Memcached @@ -61,7 +61,7 @@ protected function getMemcached($connectionId, array $credentials, array $option /** * Create the Memcached instance. * - * @param string|null $connectionId + * @param ?string $connectionId * @return \Memcached */ protected function createMemcachedInstance($connectionId) diff --git a/src/Illuminate/Cache/MemcachedLock.php b/src/Illuminate/Cache/MemcachedLock.php index 0078a09e6974..71ee5c005676 100644 --- a/src/Illuminate/Cache/MemcachedLock.php +++ b/src/Illuminate/Cache/MemcachedLock.php @@ -17,7 +17,7 @@ class MemcachedLock extends Lock * @param \Memcached $memcached * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return void */ public function __construct($memcached, $name, $seconds, $owner = null) diff --git a/src/Illuminate/Cache/MemcachedStore.php b/src/Illuminate/Cache/MemcachedStore.php index 299dab9ad2e4..83a2a6e1d177 100755 --- a/src/Illuminate/Cache/MemcachedStore.php +++ b/src/Illuminate/Cache/MemcachedStore.php @@ -183,7 +183,7 @@ public function forever($key, $value) * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null) diff --git a/src/Illuminate/Cache/NullStore.php b/src/Illuminate/Cache/NullStore.php index 5694e6c6755b..55666cb813ce 100755 --- a/src/Illuminate/Cache/NullStore.php +++ b/src/Illuminate/Cache/NullStore.php @@ -73,7 +73,7 @@ public function forever($key, $value) * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null) diff --git a/src/Illuminate/Cache/PhpRedisLock.php b/src/Illuminate/Cache/PhpRedisLock.php index 6cfce7938a37..2d8d6bc7a8d8 100644 --- a/src/Illuminate/Cache/PhpRedisLock.php +++ b/src/Illuminate/Cache/PhpRedisLock.php @@ -12,7 +12,7 @@ class PhpRedisLock extends RedisLock * @param \Illuminate\Redis\Connections\PhpRedisConnection $redis * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return void */ public function __construct(PhpRedisConnection $redis, string $name, int $seconds, ?string $owner = null) diff --git a/src/Illuminate/Cache/RedisLock.php b/src/Illuminate/Cache/RedisLock.php index 481b811d398f..3aab616f08c5 100644 --- a/src/Illuminate/Cache/RedisLock.php +++ b/src/Illuminate/Cache/RedisLock.php @@ -17,7 +17,7 @@ class RedisLock extends Lock * @param \Illuminate\Redis\Connections\Connection $redis * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return void */ public function __construct($redis, $name, $seconds, $owner = null) diff --git a/src/Illuminate/Cache/RedisStore.php b/src/Illuminate/Cache/RedisStore.php index 4896c9183d03..3e6884a72bef 100755 --- a/src/Illuminate/Cache/RedisStore.php +++ b/src/Illuminate/Cache/RedisStore.php @@ -184,7 +184,7 @@ public function forever($key, $value) * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null) diff --git a/src/Illuminate/Collections/Collection.php b/src/Illuminate/Collections/Collection.php index 7e77aea77db2..3cd7cc4b5059 100644 --- a/src/Illuminate/Collections/Collection.php +++ b/src/Illuminate/Collections/Collection.php @@ -598,7 +598,7 @@ public function hasAny($key) * Concatenate values of a given key as a string. * * @param callable|string $value - * @param string|null $glue + * @param ?string $glue * @return string */ public function implode($value, $glue = null) @@ -718,7 +718,7 @@ public function last(callable $callback = null, $default = null) * Get the values of a given key. * * @param string|int|array $value - * @param string|null $key + * @param ?string $key * @return static */ public function pluck($value, $key = null) diff --git a/src/Illuminate/Collections/Enumerable.php b/src/Illuminate/Collections/Enumerable.php index cbf014139212..c66c597e5ca8 100644 --- a/src/Illuminate/Collections/Enumerable.php +++ b/src/Illuminate/Collections/Enumerable.php @@ -379,7 +379,7 @@ public function where($key, $operator = null, $value = null); /** * Filter items where the value for the given key is null. * - * @param string|null $key + * @param ?string $key * @return static */ public function whereNull($key = null); @@ -387,7 +387,7 @@ public function whereNull($key = null); /** * Filter items where the value for the given key is not null. * - * @param string|null $key + * @param ?string $key * @return static */ public function whereNotNull($key = null); @@ -551,7 +551,7 @@ public function hasAny($key); * Concatenate values of a given key as a string. * * @param string $value - * @param string|null $glue + * @param ?string $glue * @return string */ public function implode($value, $glue = null); @@ -1096,7 +1096,7 @@ public function pipeThrough($pipes); * Get the values of a given key. * * @param string|array $value - * @param string|null $key + * @param ?string $key * @return static */ public function pluck($value, $key = null); diff --git a/src/Illuminate/Collections/LazyCollection.php b/src/Illuminate/Collections/LazyCollection.php index 512c2b77537c..a7036542fd2d 100644 --- a/src/Illuminate/Collections/LazyCollection.php +++ b/src/Illuminate/Collections/LazyCollection.php @@ -613,7 +613,7 @@ public function hasAny($key) * Concatenate values of a given key as a string. * * @param callable|string $value - * @param string|null $glue + * @param ?string $glue * @return string */ public function implode($value, $glue = null) @@ -715,7 +715,7 @@ public function last(callable $callback = null, $default = null) * Get the values of a given key. * * @param string|array $value - * @param string|null $key + * @param ?string $key * @return static */ public function pluck($value, $key = null) diff --git a/src/Illuminate/Collections/Traits/EnumeratesValues.php b/src/Illuminate/Collections/Traits/EnumeratesValues.php index c7803bf84413..8ccd1b1e3c42 100644 --- a/src/Illuminate/Collections/Traits/EnumeratesValues.php +++ b/src/Illuminate/Collections/Traits/EnumeratesValues.php @@ -543,7 +543,7 @@ public function where($key, $operator = null, $value = null) /** * Filter items where the value for the given key is null. * - * @param string|null $key + * @param ?string $key * @return static */ public function whereNull($key = null) @@ -554,7 +554,7 @@ public function whereNull($key = null) /** * Filter items where the value for the given key is not null. * - * @param string|null $key + * @param ?string $key * @return static */ public function whereNotNull($key = null) @@ -974,7 +974,7 @@ protected function getArrayableItems($items) * Get an operator checker callback. * * @param callable|string $key - * @param string|null $operator + * @param ?string $operator * @param mixed $value * @return \Closure */ diff --git a/src/Illuminate/Console/CacheCommandMutex.php b/src/Illuminate/Console/CacheCommandMutex.php index 223174c34010..692f460a7813 100644 --- a/src/Illuminate/Console/CacheCommandMutex.php +++ b/src/Illuminate/Console/CacheCommandMutex.php @@ -17,7 +17,7 @@ class CacheCommandMutex implements CommandMutex /** * The cache store that should be used. * - * @var string|null + * @var ?string */ public $store = null; @@ -86,7 +86,7 @@ protected function commandMutexName($command) /** * Specify the cache store that should be used. * - * @param string|null $store + * @param ?string $store * @return $this */ public function useStore($store) diff --git a/src/Illuminate/Console/Command.php b/src/Illuminate/Console/Command.php index 8b4001cb8f52..8fb2528dbacc 100755 --- a/src/Illuminate/Console/Command.php +++ b/src/Illuminate/Console/Command.php @@ -42,7 +42,7 @@ class Command extends SymfonyCommand /** * The console command description. * - * @var string|null + * @var ?string */ protected $description; diff --git a/src/Illuminate/Console/Concerns/InteractsWithIO.php b/src/Illuminate/Console/Concerns/InteractsWithIO.php index 13f6197589e2..eb6409a0cef1 100644 --- a/src/Illuminate/Console/Concerns/InteractsWithIO.php +++ b/src/Illuminate/Console/Concerns/InteractsWithIO.php @@ -72,7 +72,7 @@ public function hasArgument($name) /** * Get the value of a command argument. * - * @param string|null $key + * @param ?string $key * @return array|string|bool|null */ public function argument($key = null) @@ -108,7 +108,7 @@ public function hasOption($name) /** * Get the value of a command option. * - * @param string|null $key + * @param ?string $key * @return string|array|bool|null */ public function option($key = null) @@ -146,7 +146,7 @@ public function confirm($question, $default = false) * Prompt the user for input. * * @param string $question - * @param string|null $default + * @param ?string $default * @return mixed */ public function ask($question, $default = null) @@ -159,7 +159,7 @@ public function ask($question, $default = null) * * @param string $question * @param array|callable $choices - * @param string|null $default + * @param ?string $default * @return mixed */ public function anticipate($question, $choices, $default = null) @@ -172,7 +172,7 @@ public function anticipate($question, $choices, $default = null) * * @param string $question * @param array|callable $choices - * @param string|null $default + * @param ?string $default * @return mixed */ public function askWithCompletion($question, $choices, $default = null) @@ -295,7 +295,7 @@ public function info($string, $verbosity = null) * Write a string as standard output. * * @param string $string - * @param string|null $style + * @param ?string $style * @param int|string|null $verbosity * @return void */ diff --git a/src/Illuminate/Console/GeneratorCommand.php b/src/Illuminate/Console/GeneratorCommand.php index 1beebcbd3db4..b9cbe7870dec 100644 --- a/src/Illuminate/Console/GeneratorCommand.php +++ b/src/Illuminate/Console/GeneratorCommand.php @@ -391,7 +391,7 @@ protected function rootNamespace() /** * Get the model for the default guard's user provider. * - * @return string|null + * @return ?string */ protected function userProviderModel() { diff --git a/src/Illuminate/Console/Scheduling/CacheEventMutex.php b/src/Illuminate/Console/Scheduling/CacheEventMutex.php index 1f6b15eacbea..b14bbe28583c 100644 --- a/src/Illuminate/Console/Scheduling/CacheEventMutex.php +++ b/src/Illuminate/Console/Scheduling/CacheEventMutex.php @@ -16,7 +16,7 @@ class CacheEventMutex implements EventMutex, CacheAware /** * The cache store that should be used. * - * @var string|null + * @var ?string */ public $store; diff --git a/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php b/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php index ca8e2cb881f7..16320b54febe 100644 --- a/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php +++ b/src/Illuminate/Console/Scheduling/CacheSchedulingMutex.php @@ -17,7 +17,7 @@ class CacheSchedulingMutex implements SchedulingMutex, CacheAware /** * The cache store that should be used. * - * @var string|null + * @var ?string */ public $store; diff --git a/src/Illuminate/Console/Scheduling/Event.php b/src/Illuminate/Console/Scheduling/Event.php index 36c180b95a30..bf70b7868c60 100644 --- a/src/Illuminate/Console/Scheduling/Event.php +++ b/src/Illuminate/Console/Scheduling/Event.php @@ -26,7 +26,7 @@ class Event /** * The command string. * - * @var string|null + * @var ?string */ public $command; @@ -47,7 +47,7 @@ class Event /** * The user the command should run as. * - * @var string|null + * @var ?string */ public $user; @@ -138,7 +138,7 @@ class Event /** * The human readable description of the event. * - * @var string|null + * @var ?string */ public $description; diff --git a/src/Illuminate/Console/Scheduling/Schedule.php b/src/Illuminate/Console/Scheduling/Schedule.php index 2f62bf9e81d9..3e60a9e5443c 100644 --- a/src/Illuminate/Console/Scheduling/Schedule.php +++ b/src/Illuminate/Console/Scheduling/Schedule.php @@ -141,8 +141,8 @@ public function command($command, array $parameters = []) * Add a new job callback event to the schedule. * * @param object|string $job - * @param string|null $queue - * @param string|null $connection + * @param ?string $queue + * @param ?string $connection * @return \Illuminate\Console\Scheduling\CallbackEvent */ public function job($job, $queue = null, $connection = null) @@ -162,8 +162,8 @@ public function job($job, $queue = null, $connection = null) * Dispatch the given job to the queue. * * @param object $job - * @param string|null $queue - * @param string|null $connection + * @param ?string $queue + * @param ?string $connection * @return void * * @throws \RuntimeException @@ -193,8 +193,8 @@ protected function dispatchToQueue($job, $queue, $connection) * Dispatch the given unique job to the queue. * * @param object $job - * @param string|null $queue - * @param string|null $connection + * @param ?string $queue + * @param ?string $connection * @return void * * @throws \RuntimeException diff --git a/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php b/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php index 54943537f312..215f0f6781d4 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php @@ -22,7 +22,7 @@ class ScheduleFinishCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php index 9f26f09cef39..3699c03c4d75 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleListCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleListCommand.php @@ -31,7 +31,7 @@ class ScheduleListCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php b/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php index 067aebd05519..11397a5000c6 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php @@ -30,7 +30,7 @@ class ScheduleRunCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php b/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php index a8a1a596b77c..d3583013d76f 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleTestCommand.php @@ -21,7 +21,7 @@ class ScheduleTestCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php b/src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php index de3ce944957b..0b15bc3be9b5 100644 --- a/src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php +++ b/src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php @@ -22,7 +22,7 @@ class ScheduleWorkCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Console/View/Components/TwoColumnDetail.php b/src/Illuminate/Console/View/Components/TwoColumnDetail.php index 1ffa089373ed..d4c593b41e8d 100644 --- a/src/Illuminate/Console/View/Components/TwoColumnDetail.php +++ b/src/Illuminate/Console/View/Components/TwoColumnDetail.php @@ -10,7 +10,7 @@ class TwoColumnDetail extends Component * Renders the component using the given arguments. * * @param string $first - * @param string|null $second + * @param ?string $second * @param int $verbosity * @return void */ diff --git a/src/Illuminate/Container/BoundMethod.php b/src/Illuminate/Container/BoundMethod.php index 0bac7faef108..055069a45a72 100644 --- a/src/Illuminate/Container/BoundMethod.php +++ b/src/Illuminate/Container/BoundMethod.php @@ -16,7 +16,7 @@ class BoundMethod * @param \Illuminate\Container\Container $container * @param callable|string $callback * @param array $parameters - * @param string|null $defaultMethod + * @param ?string $defaultMethod * @return mixed * * @throws \ReflectionException @@ -43,7 +43,7 @@ public static function call($container, $callback, array $parameters = [], $defa * @param \Illuminate\Container\Container $container * @param string $target * @param array $parameters - * @param string|null $defaultMethod + * @param ?string $defaultMethod * @return mixed * * @throws \InvalidArgumentException diff --git a/src/Illuminate/Container/Container.php b/src/Illuminate/Container/Container.php index 280f4d847368..2f85fb985675 100755 --- a/src/Illuminate/Container/Container.php +++ b/src/Illuminate/Container/Container.php @@ -641,7 +641,7 @@ public function wrap(Closure $callback, array $parameters = []) * * @param callable|string $callback * @param array $parameters - * @param string|null $defaultMethod + * @param ?string $defaultMethod * @return mixed * * @throws \InvalidArgumentException diff --git a/src/Illuminate/Container/Util.php b/src/Illuminate/Container/Util.php index 8d5023b4a514..17bf7cfea93c 100644 --- a/src/Illuminate/Container/Util.php +++ b/src/Illuminate/Container/Util.php @@ -47,7 +47,7 @@ public static function unwrapIfClosure($value, ...$args) * From Reflector::getParameterClassName() in Illuminate\Support. * * @param \ReflectionParameter $parameter - * @return string|null + * @return ?string */ public static function getParameterClassName($parameter) { diff --git a/src/Illuminate/Contracts/Auth/Factory.php b/src/Illuminate/Contracts/Auth/Factory.php index d76ee76489a4..460857caa5af 100644 --- a/src/Illuminate/Contracts/Auth/Factory.php +++ b/src/Illuminate/Contracts/Auth/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Get a guard instance by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard */ public function guard($name = null); diff --git a/src/Illuminate/Contracts/Auth/PasswordBrokerFactory.php b/src/Illuminate/Contracts/Auth/PasswordBrokerFactory.php index 683a90308b84..8fbb7c40fc55 100644 --- a/src/Illuminate/Contracts/Auth/PasswordBrokerFactory.php +++ b/src/Illuminate/Contracts/Auth/PasswordBrokerFactory.php @@ -7,7 +7,7 @@ interface PasswordBrokerFactory /** * Get a password broker instance by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Auth\PasswordBroker */ public function broker($name = null); diff --git a/src/Illuminate/Contracts/Broadcasting/Factory.php b/src/Illuminate/Contracts/Broadcasting/Factory.php index 1a4f48f9c228..850d71512875 100644 --- a/src/Illuminate/Contracts/Broadcasting/Factory.php +++ b/src/Illuminate/Contracts/Broadcasting/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Get a broadcaster implementation by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Broadcasting\Broadcaster */ public function connection($name = null); diff --git a/src/Illuminate/Contracts/Cache/Factory.php b/src/Illuminate/Contracts/Cache/Factory.php index 3924662d6cbc..f7e586694843 100644 --- a/src/Illuminate/Contracts/Cache/Factory.php +++ b/src/Illuminate/Contracts/Cache/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Get a cache store instance by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Cache\Repository */ public function store($name = null); diff --git a/src/Illuminate/Contracts/Cache/LockProvider.php b/src/Illuminate/Contracts/Cache/LockProvider.php index 37d4ef68a5d6..18b64554aa43 100644 --- a/src/Illuminate/Contracts/Cache/LockProvider.php +++ b/src/Illuminate/Contracts/Cache/LockProvider.php @@ -9,7 +9,7 @@ interface LockProvider * * @param string $name * @param int $seconds - * @param string|null $owner + * @param ?string $owner * @return \Illuminate\Contracts\Cache\Lock */ public function lock($name, $seconds = 0, $owner = null); diff --git a/src/Illuminate/Contracts/Container/Container.php b/src/Illuminate/Contracts/Container/Container.php index 7d7f2c96a09f..ce7ac4912140 100644 --- a/src/Illuminate/Contracts/Container/Container.php +++ b/src/Illuminate/Contracts/Container/Container.php @@ -168,7 +168,7 @@ public function make($abstract, array $parameters = []); * * @param callable|string $callback * @param array $parameters - * @param string|null $defaultMethod + * @param ?string $defaultMethod * @return mixed */ public function call($callback, array $parameters = [], $defaultMethod = null); diff --git a/src/Illuminate/Contracts/Cookie/Factory.php b/src/Illuminate/Contracts/Cookie/Factory.php index 6f950219c1c0..a9bcb191679c 100644 --- a/src/Illuminate/Contracts/Cookie/Factory.php +++ b/src/Illuminate/Contracts/Cookie/Factory.php @@ -10,12 +10,12 @@ interface Factory * @param string $name * @param string $value * @param int $minutes - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @param bool|null $secure * @param bool $httpOnly * @param bool $raw - * @param string|null $sameSite + * @param ?string $sameSite * @return \Symfony\Component\HttpFoundation\Cookie */ public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null); @@ -25,12 +25,12 @@ public function make($name, $value, $minutes = 0, $path = null, $domain = null, * * @param string $name * @param string $value - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @param bool|null $secure * @param bool $httpOnly * @param bool $raw - * @param string|null $sameSite + * @param ?string $sameSite * @return \Symfony\Component\HttpFoundation\Cookie */ public function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null); @@ -39,8 +39,8 @@ public function forever($name, $value, $path = null, $domain = null, $secure = n * Expire the given cookie. * * @param string $name - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @return \Symfony\Component\HttpFoundation\Cookie */ public function forget($name, $path = null, $domain = null); diff --git a/src/Illuminate/Contracts/Cookie/QueueingFactory.php b/src/Illuminate/Contracts/Cookie/QueueingFactory.php index d6c74b8f9545..0f47f6d47345 100644 --- a/src/Illuminate/Contracts/Cookie/QueueingFactory.php +++ b/src/Illuminate/Contracts/Cookie/QueueingFactory.php @@ -16,7 +16,7 @@ public function queue(...$parameters); * Remove a cookie from the queue. * * @param string $name - * @param string|null $path + * @param ?string $path * @return void */ public function unqueue($name, $path = null); diff --git a/src/Illuminate/Contracts/Database/Eloquent/SupportsPartialRelations.php b/src/Illuminate/Contracts/Database/Eloquent/SupportsPartialRelations.php index c82125aa0c10..881a03b6aa73 100644 --- a/src/Illuminate/Contracts/Database/Eloquent/SupportsPartialRelations.php +++ b/src/Illuminate/Contracts/Database/Eloquent/SupportsPartialRelations.php @@ -7,7 +7,7 @@ interface SupportsPartialRelations /** * Indicate that the relation is a single result of a larger one-to-many relationship. * - * @param string|null $column + * @param ?string $column * @param string|\Closure|null $aggregate * @param string $relation * @return $this diff --git a/src/Illuminate/Contracts/Database/ModelIdentifier.php b/src/Illuminate/Contracts/Database/ModelIdentifier.php index aacd18c079d8..88a7bab1f01a 100644 --- a/src/Illuminate/Contracts/Database/ModelIdentifier.php +++ b/src/Illuminate/Contracts/Database/ModelIdentifier.php @@ -30,14 +30,14 @@ class ModelIdentifier /** * The connection name of the model. * - * @var string|null + * @var ?string */ public $connection; /** * The class name of the model collection. * - * @var string|null + * @var ?string */ public $collectionClass; @@ -61,7 +61,7 @@ public function __construct($class, $id, array $relations, $connection) /** * Specify the collection class that should be used when serializing / restoring collections. * - * @param string|null $collectionClass + * @param ?string $collectionClass * @return $this */ public function useCollectionClass(?string $collectionClass) diff --git a/src/Illuminate/Contracts/Filesystem/Factory.php b/src/Illuminate/Contracts/Filesystem/Factory.php index d0f9cd2bbfae..8591a67390c8 100644 --- a/src/Illuminate/Contracts/Filesystem/Factory.php +++ b/src/Illuminate/Contracts/Filesystem/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Get a filesystem implementation. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Filesystem\Filesystem */ public function disk($name = null); diff --git a/src/Illuminate/Contracts/Filesystem/Filesystem.php b/src/Illuminate/Contracts/Filesystem/Filesystem.php index 6d2fd5787338..6be9ba1cc117 100644 --- a/src/Illuminate/Contracts/Filesystem/Filesystem.php +++ b/src/Illuminate/Contracts/Filesystem/Filesystem.php @@ -30,7 +30,7 @@ public function exists($path); * Get the contents of a file. * * @param string $path - * @return string|null + * @return ?string */ public function get($path); @@ -142,7 +142,7 @@ public function lastModified($path); /** * Get an array of all files in a directory. * - * @param string|null $directory + * @param ?string $directory * @param bool $recursive * @return array */ @@ -151,7 +151,7 @@ public function files($directory = null, $recursive = false); /** * Get all of the files from the given directory (recursive). * - * @param string|null $directory + * @param ?string $directory * @return array */ public function allFiles($directory = null); @@ -159,7 +159,7 @@ public function allFiles($directory = null); /** * Get all of the directories within a given directory. * - * @param string|null $directory + * @param ?string $directory * @param bool $recursive * @return array */ @@ -168,7 +168,7 @@ public function directories($directory = null, $recursive = false); /** * Get all (recursive) of the directories within a given directory. * - * @param string|null $directory + * @param ?string $directory * @return array */ public function allDirectories($directory = null); diff --git a/src/Illuminate/Contracts/Foundation/Application.php b/src/Illuminate/Contracts/Foundation/Application.php index b46c6de4d847..013236af0b7f 100644 --- a/src/Illuminate/Contracts/Foundation/Application.php +++ b/src/Illuminate/Contracts/Foundation/Application.php @@ -117,7 +117,7 @@ public function register($provider, $force = false); * Register a deferred provider and service. * * @param string $provider - * @param string|null $service + * @param ?string $service * @return void */ public function registerDeferredProvider($provider, $service = null); diff --git a/src/Illuminate/Contracts/Mail/Factory.php b/src/Illuminate/Contracts/Mail/Factory.php index fe45a2fd9cd8..d0fbb4538455 100644 --- a/src/Illuminate/Contracts/Mail/Factory.php +++ b/src/Illuminate/Contracts/Mail/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Get a mailer instance by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Mail\Mailer */ public function mailer($name = null); diff --git a/src/Illuminate/Contracts/Mail/MailQueue.php b/src/Illuminate/Contracts/Mail/MailQueue.php index d0d90b88dce0..ef457274004b 100644 --- a/src/Illuminate/Contracts/Mail/MailQueue.php +++ b/src/Illuminate/Contracts/Mail/MailQueue.php @@ -8,7 +8,7 @@ interface MailQueue * Queue a new e-mail message for sending. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function queue($view, $queue = null); @@ -18,7 +18,7 @@ public function queue($view, $queue = null); * * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $view, $queue = null); diff --git a/src/Illuminate/Contracts/Mail/Mailable.php b/src/Illuminate/Contracts/Mail/Mailable.php index b7fdd42efebd..b356cc04592c 100644 --- a/src/Illuminate/Contracts/Mail/Mailable.php +++ b/src/Illuminate/Contracts/Mail/Mailable.php @@ -35,7 +35,7 @@ public function later($delay, Queue $queue); * Set the recipients of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return self */ public function cc($address, $name = null); @@ -44,7 +44,7 @@ public function cc($address, $name = null); * Set the recipients of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function bcc($address, $name = null); @@ -53,7 +53,7 @@ public function bcc($address, $name = null); * Set the recipients of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function to($address, $name = null); diff --git a/src/Illuminate/Contracts/Notifications/Factory.php b/src/Illuminate/Contracts/Notifications/Factory.php index 77056782c61b..3becce12af79 100644 --- a/src/Illuminate/Contracts/Notifications/Factory.php +++ b/src/Illuminate/Contracts/Notifications/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Get a channel instance by name. * - * @param string|null $name + * @param ?string $name * @return mixed */ public function channel($name = null); diff --git a/src/Illuminate/Contracts/Pagination/CursorPaginator.php b/src/Illuminate/Contracts/Pagination/CursorPaginator.php index 2d62d3a51e78..547851d155d8 100644 --- a/src/Illuminate/Contracts/Pagination/CursorPaginator.php +++ b/src/Illuminate/Contracts/Pagination/CursorPaginator.php @@ -16,7 +16,7 @@ public function url($cursor); * Add a set of query string values to the paginator. * * @param array|string|null $key - * @param string|null $value + * @param ?string $value * @return $this */ public function appends($key, $value = null); @@ -24,7 +24,7 @@ public function appends($key, $value = null); /** * Get / set the URL fragment to be appended to URLs. * - * @param string|null $fragment + * @param ?string $fragment * @return $this|string|null */ public function fragment($fragment = null); @@ -32,14 +32,14 @@ public function fragment($fragment = null); /** * Get the URL for the previous page, or null. * - * @return string|null + * @return ?string */ public function previousPageUrl(); /** * The URL for the next page, or null. * - * @return string|null + * @return ?string */ public function nextPageUrl(); @@ -88,7 +88,7 @@ public function hasPages(); /** * Get the base path for paginator generated URLs. * - * @return string|null + * @return ?string */ public function path(); @@ -109,7 +109,7 @@ public function isNotEmpty(); /** * Render the paginator using a given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return string */ diff --git a/src/Illuminate/Contracts/Pagination/Paginator.php b/src/Illuminate/Contracts/Pagination/Paginator.php index 09292f4a3143..48d6c17f003f 100644 --- a/src/Illuminate/Contracts/Pagination/Paginator.php +++ b/src/Illuminate/Contracts/Pagination/Paginator.php @@ -16,7 +16,7 @@ public function url($page); * Add a set of query string values to the paginator. * * @param array|string|null $key - * @param string|null $value + * @param ?string $value * @return $this */ public function appends($key, $value = null); @@ -24,7 +24,7 @@ public function appends($key, $value = null); /** * Get / set the URL fragment to be appended to URLs. * - * @param string|null $fragment + * @param ?string $fragment * @return $this|string|null */ public function fragment($fragment = null); @@ -32,14 +32,14 @@ public function fragment($fragment = null); /** * The URL for the next page, or null. * - * @return string|null + * @return ?string */ public function nextPageUrl(); /** * Get the URL for the previous page, or null. * - * @return string|null + * @return ?string */ public function previousPageUrl(); @@ -95,7 +95,7 @@ public function hasMorePages(); /** * Get the base path for paginator generated URLs. * - * @return string|null + * @return ?string */ public function path(); @@ -116,7 +116,7 @@ public function isNotEmpty(); /** * Render the paginator using a given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return string */ diff --git a/src/Illuminate/Contracts/Pipeline/Hub.php b/src/Illuminate/Contracts/Pipeline/Hub.php index 1ae675f78a34..339fa6f44af8 100644 --- a/src/Illuminate/Contracts/Pipeline/Hub.php +++ b/src/Illuminate/Contracts/Pipeline/Hub.php @@ -8,7 +8,7 @@ interface Hub * Send an object through one of the available pipelines. * * @param mixed $object - * @param string|null $pipeline + * @param ?string $pipeline * @return mixed */ public function pipe($object, $pipeline = null); diff --git a/src/Illuminate/Contracts/Queue/Factory.php b/src/Illuminate/Contracts/Queue/Factory.php index 9a0bdeb12577..f7e964e35d7f 100644 --- a/src/Illuminate/Contracts/Queue/Factory.php +++ b/src/Illuminate/Contracts/Queue/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Resolve a queue connection instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Queue\Queue */ public function connection($name = null); diff --git a/src/Illuminate/Contracts/Queue/Job.php b/src/Illuminate/Contracts/Queue/Job.php index 9efd17d14d92..1a5a5d8943e2 100644 --- a/src/Illuminate/Contracts/Queue/Job.php +++ b/src/Illuminate/Contracts/Queue/Job.php @@ -7,7 +7,7 @@ interface Job /** * Get the UUID of the job. * - * @return string|null + * @return ?string */ public function uuid(); diff --git a/src/Illuminate/Contracts/Queue/Queue.php b/src/Illuminate/Contracts/Queue/Queue.php index 1994cddf79eb..6d25ca53d691 100644 --- a/src/Illuminate/Contracts/Queue/Queue.php +++ b/src/Illuminate/Contracts/Queue/Queue.php @@ -7,7 +7,7 @@ interface Queue /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null); @@ -17,7 +17,7 @@ public function size($queue = null); * * @param string|object $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function push($job, $data = '', $queue = null); @@ -36,7 +36,7 @@ public function pushOn($queue, $job, $data = ''); * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -48,7 +48,7 @@ public function pushRaw($payload, $queue = null, array $options = []); * @param \DateTimeInterface|\DateInterval|int $delay * @param string|object $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null); @@ -69,7 +69,7 @@ public function laterOn($queue, $delay, $job, $data = ''); * * @param array $jobs * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function bulk($jobs, $data = '', $queue = null); @@ -77,7 +77,7 @@ public function bulk($jobs, $data = '', $queue = null); /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null); diff --git a/src/Illuminate/Contracts/Queue/QueueableCollection.php b/src/Illuminate/Contracts/Queue/QueueableCollection.php index 750d10d4b088..2f0d15049050 100644 --- a/src/Illuminate/Contracts/Queue/QueueableCollection.php +++ b/src/Illuminate/Contracts/Queue/QueueableCollection.php @@ -7,7 +7,7 @@ interface QueueableCollection /** * Get the type of the entities being queued. * - * @return string|null + * @return ?string */ public function getQueueableClass(); @@ -28,7 +28,7 @@ public function getQueueableRelations(); /** * Get the connection of the entities being queued. * - * @return string|null + * @return ?string */ public function getQueueableConnection(); } diff --git a/src/Illuminate/Contracts/Queue/QueueableEntity.php b/src/Illuminate/Contracts/Queue/QueueableEntity.php index 366f0c84fab6..763f6aa817e5 100644 --- a/src/Illuminate/Contracts/Queue/QueueableEntity.php +++ b/src/Illuminate/Contracts/Queue/QueueableEntity.php @@ -21,7 +21,7 @@ public function getQueueableRelations(); /** * Get the connection of the entity. * - * @return string|null + * @return ?string */ public function getQueueableConnection(); } diff --git a/src/Illuminate/Contracts/Redis/Factory.php b/src/Illuminate/Contracts/Redis/Factory.php index c2bfe81f9888..3c77fc94aba7 100644 --- a/src/Illuminate/Contracts/Redis/Factory.php +++ b/src/Illuminate/Contracts/Redis/Factory.php @@ -7,7 +7,7 @@ interface Factory /** * Get a Redis connection by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Redis\Connections\Connection */ public function connection($name = null); diff --git a/src/Illuminate/Contracts/Routing/ResponseFactory.php b/src/Illuminate/Contracts/Routing/ResponseFactory.php index a6206a9c4849..b13720e0cbf3 100644 --- a/src/Illuminate/Contracts/Routing/ResponseFactory.php +++ b/src/Illuminate/Contracts/Routing/ResponseFactory.php @@ -71,9 +71,9 @@ public function stream($callback, $status = 200, array $headers = []); * Create a new streamed response instance as a file download. * * @param callable $callback - * @param string|null $name + * @param ?string $name * @param array $headers - * @param string|null $disposition + * @param ?string $disposition * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function streamDownload($callback, $name = null, array $headers = [], $disposition = 'attachment'); @@ -82,9 +82,9 @@ public function streamDownload($callback, $name = null, array $headers = [], $di * Create a new file download response. * * @param \SplFileInfo|string $file - * @param string|null $name + * @param ?string $name * @param array $headers - * @param string|null $disposition + * @param ?string $disposition * @return \Symfony\Component\HttpFoundation\BinaryFileResponse */ public function download($file, $name = null, array $headers = [], $disposition = 'attachment'); diff --git a/src/Illuminate/Contracts/Routing/UrlRoutable.php b/src/Illuminate/Contracts/Routing/UrlRoutable.php index 48c3d723dcc9..67bf137a1e74 100644 --- a/src/Illuminate/Contracts/Routing/UrlRoutable.php +++ b/src/Illuminate/Contracts/Routing/UrlRoutable.php @@ -22,7 +22,7 @@ public function getRouteKeyName(); * Retrieve the model for a bound value. * * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Model|null */ public function resolveRouteBinding($value, $field = null); @@ -32,7 +32,7 @@ public function resolveRouteBinding($value, $field = null); * * @param string $childType * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Model|null */ public function resolveChildRouteBinding($childType, $value, $field); diff --git a/src/Illuminate/Contracts/Session/Session.php b/src/Illuminate/Contracts/Session/Session.php index 1bf025a096c8..894265aac3bb 100644 --- a/src/Illuminate/Contracts/Session/Session.php +++ b/src/Illuminate/Contracts/Session/Session.php @@ -168,7 +168,7 @@ public function isStarted(); /** * Get the previous URL from the session. * - * @return string|null + * @return ?string */ public function previousUrl(); diff --git a/src/Illuminate/Contracts/Support/MessageBag.php b/src/Illuminate/Contracts/Support/MessageBag.php index 7f708aca533c..f662396d4b5f 100644 --- a/src/Illuminate/Contracts/Support/MessageBag.php +++ b/src/Illuminate/Contracts/Support/MessageBag.php @@ -41,8 +41,8 @@ public function has($key); /** * Get the first message from the bag for a given key. * - * @param string|null $key - * @param string|null $format + * @param ?string $key + * @param ?string $format * @return string */ public function first($key = null, $format = null); @@ -51,7 +51,7 @@ public function first($key = null, $format = null); * Get all of the messages from the bag for a given key. * * @param string $key - * @param string|null $format + * @param ?string $format * @return array */ public function get($key, $format = null); @@ -59,7 +59,7 @@ public function get($key, $format = null); /** * Get all of the messages for every key in the bag. * - * @param string|null $format + * @param ?string $format * @return array */ public function all($format = null); diff --git a/src/Illuminate/Contracts/Translation/HasLocalePreference.php b/src/Illuminate/Contracts/Translation/HasLocalePreference.php index 1b1f16d6e760..b86731a15d6a 100644 --- a/src/Illuminate/Contracts/Translation/HasLocalePreference.php +++ b/src/Illuminate/Contracts/Translation/HasLocalePreference.php @@ -7,7 +7,7 @@ interface HasLocalePreference /** * Get the preferred locale of the entity. * - * @return string|null + * @return ?string */ public function preferredLocale(); } diff --git a/src/Illuminate/Contracts/Translation/Loader.php b/src/Illuminate/Contracts/Translation/Loader.php index b08418d13665..a5ad12003d39 100755 --- a/src/Illuminate/Contracts/Translation/Loader.php +++ b/src/Illuminate/Contracts/Translation/Loader.php @@ -9,7 +9,7 @@ interface Loader * * @param string $locale * @param string $group - * @param string|null $namespace + * @param ?string $namespace * @return array */ public function load($locale, $group, $namespace = null); diff --git a/src/Illuminate/Contracts/Translation/Translator.php b/src/Illuminate/Contracts/Translation/Translator.php index 6eae4915d5a1..2bf0b6edab57 100644 --- a/src/Illuminate/Contracts/Translation/Translator.php +++ b/src/Illuminate/Contracts/Translation/Translator.php @@ -9,7 +9,7 @@ interface Translator * * @param string $key * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return mixed */ public function get($key, array $replace = [], $locale = null); @@ -20,7 +20,7 @@ public function get($key, array $replace = [], $locale = null); * @param string $key * @param \Countable|int|array $number * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return string */ public function choice($key, $number, array $replace = [], $locale = null); diff --git a/src/Illuminate/Contracts/Validation/Factory.php b/src/Illuminate/Contracts/Validation/Factory.php index 104675a4dc2f..48af45016fef 100644 --- a/src/Illuminate/Contracts/Validation/Factory.php +++ b/src/Illuminate/Contracts/Validation/Factory.php @@ -20,7 +20,7 @@ public function make(array $data, array $rules, array $messages = [], array $cus * * @param string $rule * @param \Closure|string $extension - * @param string|null $message + * @param ?string $message * @return void */ public function extend($rule, $extension, $message = null); @@ -30,7 +30,7 @@ public function extend($rule, $extension, $message = null); * * @param string $rule * @param \Closure|string $extension - * @param string|null $message + * @param ?string $message * @return void */ public function extendImplicit($rule, $extension, $message = null); diff --git a/src/Illuminate/Cookie/CookieJar.php b/src/Illuminate/Cookie/CookieJar.php index fb93b9d45310..124ea769f091 100755 --- a/src/Illuminate/Cookie/CookieJar.php +++ b/src/Illuminate/Cookie/CookieJar.php @@ -22,7 +22,7 @@ class CookieJar implements JarContract /** * The default domain (if specified). * - * @var string|null + * @var ?string */ protected $domain; @@ -53,12 +53,12 @@ class CookieJar implements JarContract * @param string $name * @param string $value * @param int $minutes - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @param bool|null $secure * @param bool $httpOnly * @param bool $raw - * @param string|null $sameSite + * @param ?string $sameSite * @return \Symfony\Component\HttpFoundation\Cookie */ public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null) @@ -75,12 +75,12 @@ public function make($name, $value, $minutes = 0, $path = null, $domain = null, * * @param string $name * @param string $value - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @param bool|null $secure * @param bool $httpOnly * @param bool $raw - * @param string|null $sameSite + * @param ?string $sameSite * @return \Symfony\Component\HttpFoundation\Cookie */ public function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null) @@ -92,8 +92,8 @@ public function forever($name, $value, $path = null, $domain = null, $secure = n * Expire the given cookie. * * @param string $name - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @return \Symfony\Component\HttpFoundation\Cookie */ public function forget($name, $path = null, $domain = null) @@ -105,7 +105,7 @@ public function forget($name, $path = null, $domain = null) * Determine if a cookie has been queued. * * @param string $key - * @param string|null $path + * @param ?string $path * @return bool */ public function hasQueued($key, $path = null) @@ -118,7 +118,7 @@ public function hasQueued($key, $path = null) * * @param string $key * @param mixed $default - * @param string|null $path + * @param ?string $path * @return \Symfony\Component\HttpFoundation\Cookie|null */ public function queued($key, $default = null, $path = null) @@ -157,8 +157,8 @@ public function queue(...$parameters) * Queue a cookie to expire with the next response. * * @param string $name - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @return void */ public function expire($name, $path = null, $domain = null) @@ -170,7 +170,7 @@ public function expire($name, $path = null, $domain = null) * Remove a cookie from the queue. * * @param string $name - * @param string|null $path + * @param ?string $path * @return void */ public function unqueue($name, $path = null) @@ -192,9 +192,9 @@ public function unqueue($name, $path = null) * Get the path and domain, or the default values. * * @param string $path - * @param string|null $domain + * @param ?string $domain * @param bool|null $secure - * @param string|null $sameSite + * @param ?string $sameSite * @return array */ protected function getPathAndDomain($path, $domain, $secure = null, $sameSite = null) @@ -206,9 +206,9 @@ protected function getPathAndDomain($path, $domain, $secure = null, $sameSite = * Set the default path and domain for the jar. * * @param string $path - * @param string|null $domain + * @param ?string $domain * @param bool|null $secure - * @param string|null $sameSite + * @param ?string $sameSite * @return $this */ public function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null) diff --git a/src/Illuminate/Cookie/CookieValuePrefix.php b/src/Illuminate/Cookie/CookieValuePrefix.php index 3f4eb22eb83d..be1b1987e3a7 100644 --- a/src/Illuminate/Cookie/CookieValuePrefix.php +++ b/src/Illuminate/Cookie/CookieValuePrefix.php @@ -33,7 +33,7 @@ public static function remove($cookieValue) * @param string $cookieName * @param string $cookieValue * @param string $key - * @return string|null + * @return ?string */ public static function validate($cookieName, $cookieValue, $key) { diff --git a/src/Illuminate/Database/Capsule/Manager.php b/src/Illuminate/Database/Capsule/Manager.php index b877e7c6d20d..d0c95ec5cc5f 100755 --- a/src/Illuminate/Database/Capsule/Manager.php +++ b/src/Illuminate/Database/Capsule/Manager.php @@ -66,7 +66,7 @@ protected function setupManager() /** * Get a connection instance from the global manager. * - * @param string|null $connection + * @param ?string $connection * @return \Illuminate\Database\Connection */ public static function connection($connection = null) @@ -78,8 +78,8 @@ public static function connection($connection = null) * Get a fluent query builder instance. * * @param \Closure|\Illuminate\Database\Query\Builder|string $table - * @param string|null $as - * @param string|null $connection + * @param ?string $as + * @param ?string $connection * @return \Illuminate\Database\Query\Builder */ public static function table($table, $as = null, $connection = null) @@ -90,7 +90,7 @@ public static function table($table, $as = null, $connection = null) /** * Get a schema builder instance. * - * @param string|null $connection + * @param ?string $connection * @return \Illuminate\Database\Schema\Builder */ public static function schema($connection = null) @@ -101,7 +101,7 @@ public static function schema($connection = null) /** * Get a registered connection instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\Connection */ public function getConnection($name = null) diff --git a/src/Illuminate/Database/Concerns/BuildsQueries.php b/src/Illuminate/Database/Concerns/BuildsQueries.php index 16dc024f5510..62799e006697 100644 --- a/src/Illuminate/Database/Concerns/BuildsQueries.php +++ b/src/Illuminate/Database/Concerns/BuildsQueries.php @@ -107,8 +107,8 @@ public function each(callable $callback, $count = 1000) * * @param int $count * @param callable $callback - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return bool */ public function chunkById($count, callable $callback, $column = null, $alias = null) @@ -161,8 +161,8 @@ public function chunkById($count, callable $callback, $column = null, $alias = n * * @param callable $callback * @param int $count - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return bool */ public function eachById(callable $callback, $count = 1000, $column = null, $alias = null) @@ -213,8 +213,8 @@ public function lazy($chunkSize = 1000) * Query lazily, by chunking the results of a query by comparing IDs. * * @param int $chunkSize - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return \Illuminate\Support\LazyCollection * * @throws \InvalidArgumentException @@ -228,8 +228,8 @@ public function lazyById($chunkSize = 1000, $column = null, $alias = null) * Query lazily, by chunking the results of a query by comparing IDs in descending order. * * @param int $chunkSize - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return \Illuminate\Support\LazyCollection * * @throws \InvalidArgumentException @@ -243,8 +243,8 @@ public function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null) * Query lazily, by chunking the results of a query by comparing IDs in a given order. * * @param int $chunkSize - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @param bool $descending * @return \Illuminate\Support\LazyCollection * diff --git a/src/Illuminate/Database/Connection.php b/src/Illuminate/Database/Connection.php index c4bcb723bf6b..2d0246fac2e9 100755 --- a/src/Illuminate/Database/Connection.php +++ b/src/Illuminate/Database/Connection.php @@ -59,7 +59,7 @@ class Connection implements ConnectionInterface /** * The type of the connection. * - * @var string|null + * @var ?string */ protected $readWriteType; @@ -318,7 +318,7 @@ public function getSchemaBuilder() * Begin a fluent query against a database table. * * @param \Closure|\Illuminate\Database\Query\Builder|string $table - * @param string|null $as + * @param ?string $as * @return \Illuminate\Database\Query\Builder */ public function table($table, $as = null) @@ -1271,7 +1271,7 @@ public function setReconnector(callable $reconnector) /** * Get the database connection name. * - * @return string|null + * @return ?string */ public function getName() { @@ -1281,7 +1281,7 @@ public function getName() /** * Get the database connection full name. * - * @return string|null + * @return ?string */ public function getNameWithReadWriteType() { @@ -1291,7 +1291,7 @@ public function getNameWithReadWriteType() /** * Get an option from the configuration options. * - * @param string|null $option + * @param ?string $option * @return mixed */ public function getConfig($option = null) @@ -1520,7 +1520,7 @@ public function setDatabaseName($database) /** * Set the read / write type of the connection. * - * @param string|null $readWriteType + * @param ?string $readWriteType * @return $this */ public function setReadWriteType($readWriteType) diff --git a/src/Illuminate/Database/ConnectionInterface.php b/src/Illuminate/Database/ConnectionInterface.php index 00b23952a3c0..c9bb057dd7f6 100755 --- a/src/Illuminate/Database/ConnectionInterface.php +++ b/src/Illuminate/Database/ConnectionInterface.php @@ -10,7 +10,7 @@ interface ConnectionInterface * Begin a fluent query against a database table. * * @param \Closure|\Illuminate\Database\Query\Builder|string $table - * @param string|null $as + * @param ?string $as * @return \Illuminate\Database\Query\Builder */ public function table($table, $as = null); diff --git a/src/Illuminate/Database/ConnectionResolver.php b/src/Illuminate/Database/ConnectionResolver.php index dd16ffd65755..0f58a574ea93 100755 --- a/src/Illuminate/Database/ConnectionResolver.php +++ b/src/Illuminate/Database/ConnectionResolver.php @@ -34,7 +34,7 @@ public function __construct(array $connections = []) /** * Get a database connection instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\ConnectionInterface */ public function connection($name = null) diff --git a/src/Illuminate/Database/ConnectionResolverInterface.php b/src/Illuminate/Database/ConnectionResolverInterface.php index b31e5a792565..4ebab7ebc705 100755 --- a/src/Illuminate/Database/ConnectionResolverInterface.php +++ b/src/Illuminate/Database/ConnectionResolverInterface.php @@ -7,7 +7,7 @@ interface ConnectionResolverInterface /** * Get a database connection instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\ConnectionInterface */ public function connection($name = null); diff --git a/src/Illuminate/Database/Connectors/ConnectionFactory.php b/src/Illuminate/Database/Connectors/ConnectionFactory.php index 80b25d0223a6..e1101e9f633b 100755 --- a/src/Illuminate/Database/Connectors/ConnectionFactory.php +++ b/src/Illuminate/Database/Connectors/ConnectionFactory.php @@ -36,7 +36,7 @@ public function __construct(Container $container) * Establish a PDO connection based on the configuration. * * @param array $config - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\Connection */ public function make(array $config, $name = null) diff --git a/src/Illuminate/Database/Console/DumpCommand.php b/src/Illuminate/Database/Console/DumpCommand.php index 50a6ad076454..b003a6cf958e 100644 --- a/src/Illuminate/Database/Console/DumpCommand.php +++ b/src/Illuminate/Database/Console/DumpCommand.php @@ -29,7 +29,7 @@ class DumpCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php b/src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php index 48c43759d9f8..c255579aa3f1 100644 --- a/src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php +++ b/src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php @@ -22,7 +22,7 @@ class FactoryMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Database/Console/MonitorCommand.php b/src/Illuminate/Database/Console/MonitorCommand.php index 5d0f3edcbdb2..350f95b3c265 100644 --- a/src/Illuminate/Database/Console/MonitorCommand.php +++ b/src/Illuminate/Database/Console/MonitorCommand.php @@ -25,7 +25,7 @@ class MonitorCommand extends DatabaseInspectionCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Database/Console/Seeds/SeedCommand.php b/src/Illuminate/Database/Console/Seeds/SeedCommand.php index 235958648925..1a77ce9cc927 100644 --- a/src/Illuminate/Database/Console/Seeds/SeedCommand.php +++ b/src/Illuminate/Database/Console/Seeds/SeedCommand.php @@ -27,7 +27,7 @@ class SeedCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php b/src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php index 8ba01cb012f3..8b139c60d1ba 100644 --- a/src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php +++ b/src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php @@ -21,7 +21,7 @@ class SeederMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Database/Console/WipeCommand.php b/src/Illuminate/Database/Console/WipeCommand.php index cb269229f9d5..bafaf8312496 100644 --- a/src/Illuminate/Database/Console/WipeCommand.php +++ b/src/Illuminate/Database/Console/WipeCommand.php @@ -24,7 +24,7 @@ class WipeCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Database/DatabaseManager.php b/src/Illuminate/Database/DatabaseManager.php index 4f990711914a..fc53aa3bc924 100755 --- a/src/Illuminate/Database/DatabaseManager.php +++ b/src/Illuminate/Database/DatabaseManager.php @@ -83,7 +83,7 @@ public function __construct($app, ConnectionFactory $factory) /** * Get a database connection instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\Connection */ public function connection($name = null) @@ -206,7 +206,7 @@ protected function configure(Connection $connection, $type) * Prepare the read / write mode for database connection instance. * * @param \Illuminate\Database\Connection $connection - * @param string|null $type + * @param ?string $type * @return \Illuminate\Database\Connection */ protected function setPdoForType(Connection $connection, $type = null) @@ -266,7 +266,7 @@ public function registerDoctrineType(string $class, string $name, string $type): /** * Disconnect from the given database and remove from local cache. * - * @param string|null $name + * @param ?string $name * @return void */ public function purge($name = null) @@ -281,7 +281,7 @@ public function purge($name = null) /** * Disconnect from the given database. * - * @param string|null $name + * @param ?string $name * @return void */ public function disconnect($name = null) @@ -294,7 +294,7 @@ public function disconnect($name = null) /** * Reconnect to the given database. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\Connection */ public function reconnect($name = null) diff --git a/src/Illuminate/Database/Eloquent/BroadcastsEvents.php b/src/Illuminate/Database/Eloquent/BroadcastsEvents.php index 79dc02d8aea7..47389758955a 100644 --- a/src/Illuminate/Database/Eloquent/BroadcastsEvents.php +++ b/src/Illuminate/Database/Eloquent/BroadcastsEvents.php @@ -168,7 +168,7 @@ public function broadcastOn($event) /** * Get the queue connection that should be used to broadcast model events. * - * @return string|null + * @return ?string */ public function broadcastConnection() { @@ -178,7 +178,7 @@ public function broadcastConnection() /** * Get the queue that should be used to broadcast model events. * - * @return string|null + * @return ?string */ public function broadcastQueue() { diff --git a/src/Illuminate/Database/Eloquent/Builder.php b/src/Illuminate/Database/Eloquent/Builder.php index 90a0d4947afd..8236a074b59a 100755 --- a/src/Illuminate/Database/Eloquent/Builder.php +++ b/src/Illuminate/Database/Eloquent/Builder.php @@ -852,7 +852,7 @@ protected function enforceOrderBy() * Get an array with the values of a given column. * * @param string|\Illuminate\Database\Query\Expression $column - * @param string|null $key + * @param ?string $key * @return \Illuminate\Support\Collection */ public function pluck($column, $key = null) @@ -1043,7 +1043,7 @@ public function upsert(array $values, $uniqueBy, $update = null) /** * Update the column's update timestamp. * - * @param string|null $column + * @param ?string $column * @return int|false */ public function touch($column = null) diff --git a/src/Illuminate/Database/Eloquent/Collection.php b/src/Illuminate/Database/Eloquent/Collection.php index c512c8ba05c7..3547464fb795 100755 --- a/src/Illuminate/Database/Eloquent/Collection.php +++ b/src/Illuminate/Database/Eloquent/Collection.php @@ -75,7 +75,7 @@ public function load($relations) * * @param array|string $relations * @param string $column - * @param string|null $function + * @param ?string $function * @return $this */ public function loadAggregate($relations, $column, $function = null) @@ -651,7 +651,7 @@ public function pad($size, $value) * Get an array with the values of a given key. * * @param string|array $value - * @param string|null $key + * @param ?string $key * @return \Illuminate\Support\Collection */ public function pluck($value, $key = null) @@ -688,7 +688,7 @@ protected function duplicateComparator($strict) /** * Get the type of the entities being queued. * - * @return string|null + * @return ?string * * @throws \LogicException */ @@ -763,7 +763,7 @@ public function getQueueableRelations() /** * Get the connection of the entities being queued. * - * @return string|null + * @return ?string * * @throws \LogicException */ diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php index 2b1b7ca2998d..a970974c129e 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php @@ -1409,7 +1409,7 @@ protected function isStandardDateFormat($value) * Convert a DateTime to a storable string. * * @param mixed $value - * @return string|null + * @return ?string */ public function fromDateTime($value) { @@ -1804,7 +1804,7 @@ public function setRawAttributes(array $attributes, $sync = false) /** * Get the model's original attribute values. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed|array */ @@ -1818,7 +1818,7 @@ public function getOriginal($key = null, $default = null) /** * Get the model's original attribute values. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed|array */ @@ -1838,7 +1838,7 @@ protected function getOriginalWithoutRewindingModel($key = null, $default = null /** * Get the model's raw original attribute values. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed|array */ diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php b/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php index 25b6d1af4dd0..7eeb225315c5 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php @@ -93,8 +93,8 @@ public static function resolveRelationUsing($name, Closure $callback) * Define a one-to-one relationship. * * @param string $related - * @param string|null $foreignKey - * @param string|null $localKey + * @param ?string $foreignKey + * @param ?string $localKey * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function hasOne($related, $foreignKey = null, $localKey = null) @@ -127,10 +127,10 @@ protected function newHasOne(Builder $query, Model $parent, $foreignKey, $localK * * @param string $related * @param string $through - * @param string|null $firstKey - * @param string|null $secondKey - * @param string|null $localKey - * @param string|null $secondLocalKey + * @param ?string $firstKey + * @param ?string $secondKey + * @param ?string $localKey + * @param ?string $secondLocalKey * @return \Illuminate\Database\Eloquent\Relations\HasOneThrough */ public function hasOneThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) @@ -170,9 +170,9 @@ protected function newHasOneThrough(Builder $query, Model $farParent, Model $thr * * @param string $related * @param string $name - * @param string|null $type - * @param string|null $id - * @param string|null $localKey + * @param ?string $type + * @param ?string $id + * @param ?string $localKey * @return \Illuminate\Database\Eloquent\Relations\MorphOne */ public function morphOne($related, $name, $type = null, $id = null, $localKey = null) @@ -207,9 +207,9 @@ protected function newMorphOne(Builder $query, Model $parent, $type, $id, $local * Define an inverse one-to-one or many relationship. * * @param string $related - * @param string|null $foreignKey - * @param string|null $ownerKey - * @param string|null $relation + * @param ?string $foreignKey + * @param ?string $ownerKey + * @param ?string $relation * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function belongsTo($related, $foreignKey = null, $ownerKey = null, $relation = null) @@ -258,10 +258,10 @@ protected function newBelongsTo(Builder $query, Model $child, $foreignKey, $owne /** * Define a polymorphic, inverse one-to-one or many relationship. * - * @param string|null $name - * @param string|null $type - * @param string|null $id - * @param string|null $ownerKey + * @param ?string $name + * @param ?string $type + * @param ?string $id + * @param ?string $ownerKey * @return \Illuminate\Database\Eloquent\Relations\MorphTo */ public function morphTo($name = null, $type = null, $id = null, $ownerKey = null) @@ -363,8 +363,8 @@ protected function guessBelongsToRelation() * Define a one-to-many relationship. * * @param string $related - * @param string|null $foreignKey - * @param string|null $localKey + * @param ?string $foreignKey + * @param ?string $localKey * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function hasMany($related, $foreignKey = null, $localKey = null) @@ -399,10 +399,10 @@ protected function newHasMany(Builder $query, Model $parent, $foreignKey, $local * * @param string $related * @param string $through - * @param string|null $firstKey - * @param string|null $secondKey - * @param string|null $localKey - * @param string|null $secondLocalKey + * @param ?string $firstKey + * @param ?string $secondKey + * @param ?string $localKey + * @param ?string $secondLocalKey * @return \Illuminate\Database\Eloquent\Relations\HasManyThrough */ public function hasManyThrough($related, $through, $firstKey = null, $secondKey = null, $localKey = null, $secondLocalKey = null) @@ -446,9 +446,9 @@ protected function newHasManyThrough(Builder $query, Model $farParent, Model $th * * @param string $related * @param string $name - * @param string|null $type - * @param string|null $id - * @param string|null $localKey + * @param ?string $type + * @param ?string $id + * @param ?string $localKey * @return \Illuminate\Database\Eloquent\Relations\MorphMany */ public function morphMany($related, $name, $type = null, $id = null, $localKey = null) @@ -486,12 +486,12 @@ protected function newMorphMany(Builder $query, Model $parent, $type, $id, $loca * Define a many-to-many relationship. * * @param string $related - * @param string|null $table - * @param string|null $foreignPivotKey - * @param string|null $relatedPivotKey - * @param string|null $parentKey - * @param string|null $relatedKey - * @param string|null $relation + * @param ?string $table + * @param ?string $foreignPivotKey + * @param ?string $relatedPivotKey + * @param ?string $parentKey + * @param ?string $relatedKey + * @param ?string $relation * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, @@ -537,7 +537,7 @@ public function belongsToMany($related, $table = null, $foreignPivotKey = null, * @param string $relatedPivotKey * @param string $parentKey * @param string $relatedKey - * @param string|null $relationName + * @param ?string $relationName * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ protected function newBelongsToMany(Builder $query, Model $parent, $table, $foreignPivotKey, $relatedPivotKey, @@ -551,11 +551,11 @@ protected function newBelongsToMany(Builder $query, Model $parent, $table, $fore * * @param string $related * @param string $name - * @param string|null $table - * @param string|null $foreignPivotKey - * @param string|null $relatedPivotKey - * @param string|null $parentKey - * @param string|null $relatedKey + * @param ?string $table + * @param ?string $foreignPivotKey + * @param ?string $relatedPivotKey + * @param ?string $parentKey + * @param ?string $relatedKey * @param bool $inverse * @return \Illuminate\Database\Eloquent\Relations\MorphToMany */ @@ -603,7 +603,7 @@ public function morphToMany($related, $name, $table = null, $foreignPivotKey = n * @param string $relatedPivotKey * @param string $parentKey * @param string $relatedKey - * @param string|null $relationName + * @param ?string $relationName * @param bool $inverse * @return \Illuminate\Database\Eloquent\Relations\MorphToMany */ @@ -620,11 +620,11 @@ protected function newMorphToMany(Builder $query, Model $parent, $name, $table, * * @param string $related * @param string $name - * @param string|null $table - * @param string|null $foreignPivotKey - * @param string|null $relatedPivotKey - * @param string|null $parentKey - * @param string|null $relatedKey + * @param ?string $table + * @param ?string $foreignPivotKey + * @param ?string $relatedPivotKey + * @param ?string $parentKey + * @param ?string $relatedKey * @return \Illuminate\Database\Eloquent\Relations\MorphToMany */ public function morphedByMany($related, $name, $table = null, $foreignPivotKey = null, @@ -646,7 +646,7 @@ public function morphedByMany($related, $name, $table = null, $foreignPivotKey = /** * Get the relationship name of the belongsToMany relationship. * - * @return string|null + * @return ?string */ protected function guessBelongsToManyRelation() { diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php index 2b6dfab6548e..31f258847a5a 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php @@ -23,7 +23,7 @@ trait HasTimestamps /** * Update the model's update timestamp. * - * @param string|null $attribute + * @param ?string $attribute * @return bool */ public function touch($attribute = null) @@ -46,7 +46,7 @@ public function touch($attribute = null) /** * Update the model's update timestamp without raising any events. * - * @param string|null $attribute + * @param ?string $attribute * @return bool */ public function touchQuietly($attribute = null) @@ -137,7 +137,7 @@ public function usesTimestamps() /** * Get the name of the "created at" column. * - * @return string|null + * @return ?string */ public function getCreatedAtColumn() { @@ -147,7 +147,7 @@ public function getCreatedAtColumn() /** * Get the name of the "updated at" column. * - * @return string|null + * @return ?string */ public function getUpdatedAtColumn() { @@ -157,7 +157,7 @@ public function getUpdatedAtColumn() /** * Get the fully qualified "created at" column. * - * @return string|null + * @return ?string */ public function getQualifiedCreatedAtColumn() { @@ -167,7 +167,7 @@ public function getQualifiedCreatedAtColumn() /** * Get the fully qualified "updated at" column. * - * @return string|null + * @return ?string */ public function getQualifiedUpdatedAtColumn() { @@ -206,7 +206,7 @@ public static function withoutTimestampsOn($models, $callback) /** * Determine if the given model is ignoring timestamps / touches. * - * @param string|null $class + * @param ?string $class * @return bool */ public static function isIgnoringTimestamps($class = null) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php b/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php index b944c5d6b7b1..bd551343b67a 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUlids.php @@ -38,7 +38,7 @@ public function newUniqueId() * * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation $query * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Relations\Relation * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php b/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php index 96a08b66c44d..1645524355a5 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasUuids.php @@ -48,7 +48,7 @@ public function uniqueIds() * * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation $query * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Relations\Relation * * @throws \Illuminate\Database\Eloquent\ModelNotFoundException diff --git a/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php b/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php index 6f64884e4388..9df3d7a1c756 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php +++ b/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php @@ -530,7 +530,7 @@ public function orWhereNotMorphedTo($relation, $model) * Add a "belongs to" relationship where clause to the query. * * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection<\Illuminate\Database\Eloquent\Model> $related - * @param string|null $relationshipName + * @param ?string $relationshipName * @param string $boolean * @return $this * @@ -577,7 +577,7 @@ public function whereBelongsTo($related, $relationshipName = null, $boolean = 'a * Add an "BelongsTo" relationship with an "or where" clause to the query. * * @param \Illuminate\Database\Eloquent\Model $related - * @param string|null $relationshipName + * @param ?string $relationshipName * @return $this * * @throws \RuntimeException diff --git a/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php b/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php index b2fb1b251a31..0b796d7f342b 100644 --- a/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php +++ b/src/Illuminate/Database/Eloquent/Factories/BelongsToRelationship.php @@ -62,7 +62,7 @@ public function attributesFor(Model $model) /** * Get the deferred resolver for this relationship's parent ID. * - * @param string|null $key + * @param ?string $key * @return \Closure */ protected function resolver($key) diff --git a/src/Illuminate/Database/Eloquent/Factories/Factory.php b/src/Illuminate/Database/Eloquent/Factories/Factory.php index 7cec54cabe2e..068d82fa97af 100644 --- a/src/Illuminate/Database/Eloquent/Factories/Factory.php +++ b/src/Illuminate/Database/Eloquent/Factories/Factory.php @@ -88,7 +88,7 @@ abstract class Factory /** * The name of the database connection that will be used to create the models. * - * @var string|null + * @var ?string */ protected $connection; @@ -129,7 +129,7 @@ abstract class Factory * @param \Illuminate\Support\Collection|null $for * @param \Illuminate\Support\Collection|null $afterMaking * @param \Illuminate\Support\Collection|null $afterCreating - * @param string|null $connection + * @param ?string $connection * @param \Illuminate\Support\Collection|null $recycle * @return void */ @@ -559,7 +559,7 @@ public function crossJoinSequence(...$sequence) * Define a child relationship for the model. * * @param \Illuminate\Database\Eloquent\Factories\Factory $factory - * @param string|null $relationship + * @param ?string $relationship * @return static */ public function has(self $factory, $relationship = null) @@ -589,7 +589,7 @@ protected function guessRelationship(string $related) * * @param \Illuminate\Database\Eloquent\Factories\Factory|\Illuminate\Support\Collection|\Illuminate\Database\Eloquent\Model|array $factory * @param (callable(): array)|array $pivot - * @param string|null $relationship + * @param ?string $relationship * @return static */ public function hasAttached($factory, $pivot = [], $relationship = null) @@ -611,7 +611,7 @@ public function hasAttached($factory, $pivot = [], $relationship = null) * Define a parent relationship for the model. * * @param \Illuminate\Database\Eloquent\Factories\Factory|\Illuminate\Database\Eloquent\Model $factory - * @param string|null $relationship + * @param ?string $relationship * @return static */ public function for($factory, $relationship = null) diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index 6b1e8b6e280d..a1ab7e9400c9 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -37,7 +37,7 @@ abstract class Model implements Arrayable, ArrayAccess, CanBeEscapedWhenCastToSt /** * The connection name for the model. * - * @var string|null + * @var ?string */ protected $connection; @@ -212,14 +212,14 @@ abstract class Model implements Arrayable, ArrayAccess, CanBeEscapedWhenCastToSt /** * The name of the "created at" column. * - * @var string|null + * @var ?string */ const CREATED_AT = 'created_at'; /** * The name of the "updated at" column. * - * @var string|null + * @var ?string */ const UPDATED_AT = 'updated_at'; @@ -378,7 +378,7 @@ public static function withoutTouchingOn(array $models, callable $callback) /** * Determine if the given model is ignoring touches. * - * @param string|null $class + * @param ?string $class * @return bool */ public static function isIgnoringTouch($class = null) @@ -618,7 +618,7 @@ public function newInstance($attributes = [], $exists = false) * Create a new model instance that is existing. * * @param array $attributes - * @param string|null $connection + * @param ?string $connection * @return static */ public function newFromBuilder($attributes = [], $connection = null) @@ -637,7 +637,7 @@ public function newFromBuilder($attributes = [], $connection = null) /** * Begin querying the model on a given connection. * - * @param string|null $connection + * @param ?string $connection * @return \Illuminate\Database\Eloquent\Builder */ public static function on($connection = null) @@ -1581,7 +1581,7 @@ public function newCollection(array $models = []) * @param array $attributes * @param string $table * @param bool $exists - * @param string|null $using + * @param ?string $using * @return \Illuminate\Database\Eloquent\Relations\Pivot */ public function newPivot(self $parent, array $attributes, $table, $exists, $using = null) @@ -1774,7 +1774,7 @@ public function getConnection() /** * Get the current connection name for the model. * - * @return string|null + * @return ?string */ public function getConnectionName() { @@ -1784,7 +1784,7 @@ public function getConnectionName() /** * Set the connection associated with the model. * - * @param string|null $name + * @param ?string $name * @return $this */ public function setConnection($name) @@ -1797,7 +1797,7 @@ public function setConnection($name) /** * Resolve a connection instance. * - * @param string|null $connection + * @param ?string $connection * @return \Illuminate\Database\Connection */ public static function resolveConnection($connection = null) @@ -1993,7 +1993,7 @@ public function getQueueableRelations() /** * Get the queueable connection for the entity. * - * @return string|null + * @return ?string */ public function getQueueableConnection() { @@ -2024,7 +2024,7 @@ public function getRouteKeyName() * Retrieve the model for a bound value. * * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Model|null */ public function resolveRouteBinding($value, $field = null) @@ -2036,7 +2036,7 @@ public function resolveRouteBinding($value, $field = null) * Retrieve the model for a bound value. * * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Model|null */ public function resolveSoftDeletableRouteBinding($value, $field = null) @@ -2049,7 +2049,7 @@ public function resolveSoftDeletableRouteBinding($value, $field = null) * * @param string $childType * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Model|null */ public function resolveChildRouteBinding($childType, $value, $field) @@ -2062,7 +2062,7 @@ public function resolveChildRouteBinding($childType, $value, $field) * * @param string $childType * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Model|null */ public function resolveSoftDeletableChildRouteBinding($childType, $value, $field) @@ -2075,7 +2075,7 @@ public function resolveSoftDeletableChildRouteBinding($childType, $value, $field * * @param string $childType * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Relations\Relation */ protected function resolveChildRouteBindingQuery($childType, $value, $field) @@ -2110,7 +2110,7 @@ protected function childRouteBindingRelationshipName($childType) * * @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation $query * @param mixed $value - * @param string|null $field + * @param ?string $field * @return \Illuminate\Database\Eloquent\Relations\Relation */ public function resolveRouteBindingQuery($query, $value, $field = null) diff --git a/src/Illuminate/Database/Eloquent/RelationNotFoundException.php b/src/Illuminate/Database/Eloquent/RelationNotFoundException.php index 73257bb101e0..3d16f0870f06 100755 --- a/src/Illuminate/Database/Eloquent/RelationNotFoundException.php +++ b/src/Illuminate/Database/Eloquent/RelationNotFoundException.php @@ -25,7 +25,7 @@ class RelationNotFoundException extends RuntimeException * * @param object $model * @param string $relation - * @param string|null $type + * @param ?string $type * @return static */ public static function make($model, $relation, $type = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php b/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php index 622415787c56..db929e841444 100755 --- a/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php @@ -140,7 +140,7 @@ class BelongsToMany extends Relation * @param string $relatedPivotKey * @param string $parentKey * @param string $relatedKey - * @param string|null $relationName + * @param ?string $relationName * @return void */ public function __construct(Builder $query, Model $parent, $table, $foreignPivotKey, @@ -932,7 +932,7 @@ public function simplePaginate($perPage = null, $columns = ['*'], $pageName = 'p * @param int|null $perPage * @param array $columns * @param string $cursorName - * @param string|null $cursor + * @param ?string $cursor * @return \Illuminate\Contracts\Pagination\CursorPaginator */ public function cursorPaginate($perPage = null, $columns = ['*'], $cursorName = 'cursor', $cursor = null) @@ -965,8 +965,8 @@ public function chunk($count, callable $callback) * * @param int $count * @param callable $callback - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return bool */ public function chunkById($count, callable $callback, $column = null, $alias = null) @@ -1023,8 +1023,8 @@ public function lazy($chunkSize = 1000) * Query lazily, by chunking the results of a query by comparing IDs. * * @param int $chunkSize - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return \Illuminate\Support\LazyCollection */ public function lazyById($chunkSize = 1000, $column = null, $alias = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php b/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php index 25b9a5834bad..6716287d5857 100644 --- a/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/Concerns/CanBeOneOfMany.php @@ -35,8 +35,8 @@ trait CanBeOneOfMany * Add constraints for inner join subselect for one of many relationships. * * @param \Illuminate\Database\Eloquent\Builder $query - * @param string|null $column - * @param string|null $aggregate + * @param ?string $column + * @param ?string $aggregate * @return void */ abstract public function addOneOfManySubQueryConstraints(Builder $query, $column = null, $aggregate = null); @@ -61,7 +61,7 @@ abstract public function addOneOfManyJoinSubQueryConstraints(JoinClause $join); * * @param string|array|null $column * @param string|\Closure|null $aggregate - * @param string|null $relation + * @param ?string $relation * @return $this * * @throws \InvalidArgumentException @@ -136,7 +136,7 @@ public function ofMany($column = 'id', $aggregate = 'MAX', $relation = null) * Indicate that the relation is the latest single result of a larger one-to-many relationship. * * @param string|array|null $column - * @param string|null $relation + * @param ?string $relation * @return $this */ public function latestOfMany($column = 'id', $relation = null) @@ -150,7 +150,7 @@ public function latestOfMany($column = 'id', $relation = null) * Indicate that the relation is the oldest single result of a larger one-to-many relationship. * * @param string|array|null $column - * @param string|null $relation + * @param ?string $relation * @return $this */ public function oldestOfMany($column = 'id', $relation = null) @@ -177,8 +177,8 @@ protected function getDefaultOneOfManyJoinAlias($relation) * Get a new query for the related model, grouping the query by the given column, often the foreign key of the relationship. * * @param string|array $groupBy - * @param string|null $column - * @param string|null $aggregate + * @param ?string $column + * @param ?string $aggregate * @return \Illuminate\Database\Eloquent\Builder */ protected function newOneOfManySubQuery($groupBy, $column = null, $aggregate = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php b/src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php index b6ca9083f3e9..0e446a4fe3cc 100644 --- a/src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php +++ b/src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php @@ -491,7 +491,7 @@ public function simplePaginate($perPage = null, $columns = ['*'], $pageName = 'p * @param int|null $perPage * @param array $columns * @param string $cursorName - * @param string|null $cursor + * @param ?string $cursor * @return \Illuminate\Contracts\Pagination\CursorPaginator */ public function cursorPaginate($perPage = null, $columns = ['*'], $cursorName = 'cursor', $cursor = null) @@ -533,8 +533,8 @@ public function chunk($count, callable $callback) * * @param int $count * @param callable $callback - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return bool */ public function chunkById($count, callable $callback, $column = null, $alias = null) @@ -589,8 +589,8 @@ public function lazy($chunkSize = 1000) * Query lazily, by chunking the results of a query by comparing IDs. * * @param int $chunkSize - * @param string|null $column - * @param string|null $alias + * @param ?string $column + * @param ?string $alias * @return \Illuminate\Support\LazyCollection */ public function lazyById($chunkSize = 1000, $column = null, $alias = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/HasOne.php b/src/Illuminate/Database/Eloquent/Relations/HasOne.php index ed85f1e910ee..ea85989617b0 100755 --- a/src/Illuminate/Database/Eloquent/Relations/HasOne.php +++ b/src/Illuminate/Database/Eloquent/Relations/HasOne.php @@ -81,8 +81,8 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, * Add constraints for inner join subselect for one of many relationships. * * @param \Illuminate\Database\Eloquent\Builder $query - * @param string|null $column - * @param string|null $aggregate + * @param ?string $column + * @param ?string $aggregate * @return void */ public function addOneOfManySubQueryConstraints(Builder $query, $column = null, $aggregate = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphOne.php b/src/Illuminate/Database/Eloquent/Relations/MorphOne.php index fc8f4dc8ca48..c8e8e6c620e8 100755 --- a/src/Illuminate/Database/Eloquent/Relations/MorphOne.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphOne.php @@ -79,8 +79,8 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, * Add constraints for inner join subselect for one of many relationships. * * @param \Illuminate\Database\Eloquent\Builder $query - * @param string|null $column - * @param string|null $aggregate + * @param ?string $column + * @param ?string $aggregate * @return void */ public function addOneOfManySubQueryConstraints(Builder $query, $column = null, $aggregate = null) diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php b/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php index c2d574558224..65dcf6057094 100644 --- a/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphToMany.php @@ -42,7 +42,7 @@ class MorphToMany extends BelongsToMany * @param string $relatedPivotKey * @param string $parentKey * @param string $relatedKey - * @param string|null $relationName + * @param ?string $relationName * @param bool $inverse * @return void */ diff --git a/src/Illuminate/Database/Eloquent/Relations/Relation.php b/src/Illuminate/Database/Eloquent/Relations/Relation.php index 6523ca0dca0d..5db0d19c29cb 100755 --- a/src/Illuminate/Database/Eloquent/Relations/Relation.php +++ b/src/Illuminate/Database/Eloquent/Relations/Relation.php @@ -268,7 +268,7 @@ public function getRelationCountHash($incrementJoinCount = true) * Get all of the primary keys for an array of models. * * @param array $models - * @param string|null $key + * @param ?string $key * @return array */ protected function getKeys(array $models, $key = null) @@ -468,7 +468,7 @@ protected static function buildMorphMapFromModels(array $models = null) * Get the model associated with a custom polymorphic type. * * @param string $alias - * @return string|null + * @return ?string */ public static function getMorphedModel($alias) { diff --git a/src/Illuminate/Database/Migrations/Migration.php b/src/Illuminate/Database/Migrations/Migration.php index a58f7848a7e1..fb3f21da9265 100755 --- a/src/Illuminate/Database/Migrations/Migration.php +++ b/src/Illuminate/Database/Migrations/Migration.php @@ -7,7 +7,7 @@ abstract class Migration /** * The name of the database connection to use. * - * @var string|null + * @var ?string */ protected $connection; @@ -21,7 +21,7 @@ abstract class Migration /** * Get the migration connection name. * - * @return string|null + * @return ?string */ public function getConnection() { diff --git a/src/Illuminate/Database/Migrations/MigrationCreator.php b/src/Illuminate/Database/Migrations/MigrationCreator.php index d8f1ce9d0b1e..8eaddfbcef1c 100755 --- a/src/Illuminate/Database/Migrations/MigrationCreator.php +++ b/src/Illuminate/Database/Migrations/MigrationCreator.php @@ -48,7 +48,7 @@ public function __construct(Filesystem $files, $customStubPath) * * @param string $name * @param string $path - * @param string|null $table + * @param ?string $table * @param bool $create * @return string * @@ -106,7 +106,7 @@ protected function ensureMigrationDoesntAlreadyExist($name, $migrationPath = nul /** * Get the migration stub file. * - * @param string|null $table + * @param ?string $table * @param bool $create * @return string */ @@ -133,7 +133,7 @@ protected function getStub($table, $create) * Populate the place-holders in the migration stub. * * @param string $stub - * @param string|null $table + * @param ?string $table * @return string */ protected function populateStub($stub, $table) @@ -177,7 +177,7 @@ protected function getPath($name, $path) /** * Fire the registered post create hooks. * - * @param string|null $table + * @param ?string $table * @param string $path * @return void */ diff --git a/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php b/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php index d2a8d6006df3..236b6ad71051 100644 --- a/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php +++ b/src/Illuminate/Database/PDO/Concerns/ConnectsToDatabase.php @@ -12,8 +12,8 @@ trait ConnectsToDatabase * Create a new database connection. * * @param mixed[] $params - * @param string|null $username - * @param string|null $password + * @param ?string $username + * @param ?string $password * @param mixed[] $driverOptions * @return \Illuminate\Database\PDO\Connection * diff --git a/src/Illuminate/Database/PDO/Connection.php b/src/Illuminate/Database/PDO/Connection.php index 7bae4cc04948..c0b8350dafac 100644 --- a/src/Illuminate/Database/PDO/Connection.php +++ b/src/Illuminate/Database/PDO/Connection.php @@ -91,7 +91,7 @@ public function query(string $sql): ResultInterface /** * Get the last insert ID. * - * @param string|null $name + * @param ?string $name * @return mixed */ public function lastInsertId($name = null) diff --git a/src/Illuminate/Database/PDO/SqlServerConnection.php b/src/Illuminate/Database/PDO/SqlServerConnection.php index 0f09c3a94f04..8e6e030048a5 100644 --- a/src/Illuminate/Database/PDO/SqlServerConnection.php +++ b/src/Illuminate/Database/PDO/SqlServerConnection.php @@ -67,7 +67,7 @@ public function exec(string $statement): int /** * Get the last insert ID. * - * @param string|null $name + * @param ?string $name * @return mixed */ public function lastInsertId($name = null) diff --git a/src/Illuminate/Database/PDO/SqlServerDriver.php b/src/Illuminate/Database/PDO/SqlServerDriver.php index 1b0d9574e748..7ebd9520eefd 100644 --- a/src/Illuminate/Database/PDO/SqlServerDriver.php +++ b/src/Illuminate/Database/PDO/SqlServerDriver.php @@ -10,8 +10,8 @@ class SqlServerDriver extends AbstractSQLServerDriver * Create a new database connection. * * @param mixed[] $params - * @param string|null $username - * @param string|null $password + * @param ?string $username + * @param ?string $password * @param mixed[] $driverOptions * @return \Illuminate\Database\PDO\SqlServerConnection */ diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index bb874bbdc6c7..6f1504b0635c 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -440,7 +440,7 @@ public function distinct() * Set the table which the query is targeting. * * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $table - * @param string|null $as + * @param ?string $as * @return $this */ public function from($table, $as = null) @@ -459,8 +459,8 @@ public function from($table, $as = null) * * @param string $table * @param \Closure|string $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @param string $type * @param bool $where * @return $this @@ -515,8 +515,8 @@ public function joinWhere($table, $first, $operator, $second, $type = 'inner') * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query * @param string $as * @param \Closure|string $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @param string $type * @param bool $where * @return $this @@ -539,8 +539,8 @@ public function joinSub($query, $as, $first, $operator = null, $second = null, $ * * @param string $table * @param \Closure|string $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @return $this */ public function leftJoin($table, $first, $operator = null, $second = null) @@ -568,8 +568,8 @@ public function leftJoinWhere($table, $first, $operator, $second) * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query * @param string $as * @param \Closure|string $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @return $this */ public function leftJoinSub($query, $as, $first, $operator = null, $second = null) @@ -582,8 +582,8 @@ public function leftJoinSub($query, $as, $first, $operator = null, $second = nul * * @param string $table * @param \Closure|string $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @return $this */ public function rightJoin($table, $first, $operator = null, $second = null) @@ -611,8 +611,8 @@ public function rightJoinWhere($table, $first, $operator, $second) * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query * @param string $as * @param \Closure|string $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @return $this */ public function rightJoinSub($query, $as, $first, $operator = null, $second = null) @@ -625,8 +625,8 @@ public function rightJoinSub($query, $as, $first, $operator = null, $second = nu * * @param string $table * @param \Closure|string|null $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @return $this */ public function crossJoin($table, $first = null, $operator = null, $second = null) @@ -920,9 +920,9 @@ public function orWhereNot($column, $operator = null, $value = null) * Add a "where" clause comparing two columns to the query. * * @param string|array $first - * @param string|null $operator - * @param string|null $second - * @param string|null $boolean + * @param ?string $operator + * @param ?string $second + * @param ?string $boolean * @return $this */ public function whereColumn($first, $operator = null, $second = null, $boolean = 'and') @@ -957,8 +957,8 @@ public function whereColumn($first, $operator = null, $second = null, $boolean = * Add an "or where" clause comparing two columns to the query. * * @param string|array $first - * @param string|null $operator - * @param string|null $second + * @param ?string $operator + * @param ?string $second * @return $this */ public function orWhereColumn($first, $operator = null, $second = null) @@ -2855,7 +2855,7 @@ protected function enforceOrderBy() * Get a collection instance containing the values of a given column. * * @param string $column - * @param string|null $key + * @param ?string $key * @return \Illuminate\Support\Collection */ public function pluck($column, $key = null) @@ -2892,7 +2892,7 @@ function () { * Strip off the table name or alias from a column identifier. * * @param string $column - * @return string|null + * @return ?string */ protected function stripTableForPluck($column) { @@ -3258,7 +3258,7 @@ public function insertOrIgnore(array $values) * Insert a new record and get the value of the primary key. * * @param array $values - * @param string|null $sequence + * @param ?string $sequence * @return int */ public function insertGetId(array $values, $sequence = null) diff --git a/src/Illuminate/Database/Query/Grammars/Grammar.php b/src/Illuminate/Database/Query/Grammars/Grammar.php index 5540c8650d22..80fc0fc9d6f3 100755 --- a/src/Illuminate/Database/Query/Grammars/Grammar.php +++ b/src/Illuminate/Database/Query/Grammars/Grammar.php @@ -132,7 +132,7 @@ protected function compileAggregate(Builder $query, $aggregate) * * @param \Illuminate\Database\Query\Builder $query * @param array $columns - * @return string|null + * @return ?string */ protected function compileColumns(Builder $query, $columns) { diff --git a/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php b/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php index ad4678b0c9c2..8a858d2df286 100755 --- a/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/PostgresGrammar.php @@ -180,7 +180,7 @@ protected function validFullTextLanguages() * * @param \Illuminate\Database\Query\Builder $query * @param array $columns - * @return string|null + * @return ?string */ protected function compileColumns(Builder $query, $columns) { diff --git a/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php b/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php index 222a2f129491..953949fc945d 100755 --- a/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php +++ b/src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php @@ -54,7 +54,7 @@ public function compileSelect(Builder $query) * * @param \Illuminate\Database\Query\Builder $query * @param array $columns - * @return string|null + * @return ?string */ protected function compileColumns(Builder $query, $columns) { diff --git a/src/Illuminate/Database/Query/JoinClause.php b/src/Illuminate/Database/Query/JoinClause.php index 57d650a38cb1..e0e1b51f8eba 100755 --- a/src/Illuminate/Database/Query/JoinClause.php +++ b/src/Illuminate/Database/Query/JoinClause.php @@ -83,7 +83,7 @@ public function __construct(Builder $parentQuery, $type, $table) * on `contacts`.`user_id` = `users`.`id` and `contacts`.`info_id` = `info`.`id` * * @param \Closure|string $first - * @param string|null $operator + * @param ?string $operator * @param \Illuminate\Database\Query\Expression|string|null $second * @param string $boolean * @return $this @@ -103,7 +103,7 @@ public function on($first, $operator = null, $second = null, $boolean = 'and') * Add an "or on" clause to the join. * * @param \Closure|string $first - * @param string|null $operator + * @param ?string $operator * @param \Illuminate\Database\Query\Expression|string|null $second * @return \Illuminate\Database\Query\JoinClause */ diff --git a/src/Illuminate/Database/Query/Processors/PostgresProcessor.php b/src/Illuminate/Database/Query/Processors/PostgresProcessor.php index 5956a8fb3148..c1b0a5e7ef63 100755 --- a/src/Illuminate/Database/Query/Processors/PostgresProcessor.php +++ b/src/Illuminate/Database/Query/Processors/PostgresProcessor.php @@ -12,7 +12,7 @@ class PostgresProcessor extends Processor * @param \Illuminate\Database\Query\Builder $query * @param string $sql * @param array $values - * @param string|null $sequence + * @param ?string $sequence * @return int */ public function processInsertGetId(Builder $query, $sql, $values, $sequence = null) diff --git a/src/Illuminate/Database/Query/Processors/Processor.php b/src/Illuminate/Database/Query/Processors/Processor.php index 0069b436d553..7c866e935d83 100755 --- a/src/Illuminate/Database/Query/Processors/Processor.php +++ b/src/Illuminate/Database/Query/Processors/Processor.php @@ -24,7 +24,7 @@ public function processSelect(Builder $query, $results) * @param \Illuminate\Database\Query\Builder $query * @param string $sql * @param array $values - * @param string|null $sequence + * @param ?string $sequence * @return int */ public function processInsertGetId(Builder $query, $sql, $values, $sequence = null) diff --git a/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php b/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php index 49476f095594..2836c92a3314 100755 --- a/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php +++ b/src/Illuminate/Database/Query/Processors/SqlServerProcessor.php @@ -14,7 +14,7 @@ class SqlServerProcessor extends Processor * @param \Illuminate\Database\Query\Builder $query * @param string $sql * @param array $values - * @param string|null $sequence + * @param ?string $sequence * @return int */ public function processInsertGetId(Builder $query, $sql, $values, $sequence = null) diff --git a/src/Illuminate/Database/Schema/Blueprint.php b/src/Illuminate/Database/Schema/Blueprint.php index 3ea7d15a2163..02f5a82dc23b 100755 --- a/src/Illuminate/Database/Schema/Blueprint.php +++ b/src/Illuminate/Database/Schema/Blueprint.php @@ -428,7 +428,7 @@ public function dropConstrainedForeignId($column) * Indicate that the given foreign key should be dropped. * * @param \Illuminate\Database\Eloquent\Model|string $model - * @param string|null $column + * @param ?string $column * @return \Illuminate\Support\Fluent */ public function dropForeignIdFor($model, $column = null) @@ -444,7 +444,7 @@ public function dropForeignIdFor($model, $column = null) * Indicate that the given foreign key should be dropped. * * @param \Illuminate\Database\Eloquent\Model|string $model - * @param string|null $column + * @param ?string $column * @return \Illuminate\Support\Fluent */ public function dropConstrainedForeignIdFor($model, $column = null) @@ -524,7 +524,7 @@ public function dropRememberToken() * Indicate that the polymorphic columns should be dropped. * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function dropMorphs($name, $indexName = null) @@ -549,8 +549,8 @@ public function rename($to) * Specify the primary key(s) for the table. * * @param string|array $columns - * @param string|null $name - * @param string|null $algorithm + * @param ?string $name + * @param ?string $algorithm * @return \Illuminate\Database\Schema\IndexDefinition */ public function primary($columns, $name = null, $algorithm = null) @@ -562,8 +562,8 @@ public function primary($columns, $name = null, $algorithm = null) * Specify a unique index for the table. * * @param string|array $columns - * @param string|null $name - * @param string|null $algorithm + * @param ?string $name + * @param ?string $algorithm * @return \Illuminate\Database\Schema\IndexDefinition */ public function unique($columns, $name = null, $algorithm = null) @@ -575,8 +575,8 @@ public function unique($columns, $name = null, $algorithm = null) * Specify an index for the table. * * @param string|array $columns - * @param string|null $name - * @param string|null $algorithm + * @param ?string $name + * @param ?string $algorithm * @return \Illuminate\Database\Schema\IndexDefinition */ public function index($columns, $name = null, $algorithm = null) @@ -588,8 +588,8 @@ public function index($columns, $name = null, $algorithm = null) * Specify an fulltext for the table. * * @param string|array $columns - * @param string|null $name - * @param string|null $algorithm + * @param ?string $name + * @param ?string $algorithm * @return \Illuminate\Database\Schema\IndexDefinition */ public function fullText($columns, $name = null, $algorithm = null) @@ -601,7 +601,7 @@ public function fullText($columns, $name = null, $algorithm = null) * Specify a spatial index for the table. * * @param string|array $columns - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\Schema\IndexDefinition */ public function spatialIndex($columns, $name = null) @@ -625,7 +625,7 @@ public function rawIndex($expression, $name) * Specify a foreign key for the table. * * @param string|array $columns - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\Schema\ForeignKeyDefinition */ public function foreign($columns, $name = null) @@ -933,7 +933,7 @@ public function foreignId($column) * Create a foreign ID column for the given model. * * @param \Illuminate\Database\Eloquent\Model|string $model - * @param string|null $column + * @param ?string $column * @return \Illuminate\Database\Schema\ForeignIdColumnDefinition */ public function foreignIdFor($model, $column = null) @@ -1444,7 +1444,7 @@ public function computed($column, $expression) * Add the proper columns for a polymorphic table. * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function morphs($name, $indexName = null) @@ -1462,7 +1462,7 @@ public function morphs($name, $indexName = null) * Add nullable columns for a polymorphic table. * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function nullableMorphs($name, $indexName = null) @@ -1480,7 +1480,7 @@ public function nullableMorphs($name, $indexName = null) * Add the proper columns for a polymorphic table using numeric IDs (incremental). * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function numericMorphs($name, $indexName = null) @@ -1496,7 +1496,7 @@ public function numericMorphs($name, $indexName = null) * Add nullable columns for a polymorphic table using numeric IDs (incremental). * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function nullableNumericMorphs($name, $indexName = null) @@ -1512,7 +1512,7 @@ public function nullableNumericMorphs($name, $indexName = null) * Add the proper columns for a polymorphic table using UUIDs. * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function uuidMorphs($name, $indexName = null) @@ -1528,7 +1528,7 @@ public function uuidMorphs($name, $indexName = null) * Add nullable columns for a polymorphic table using UUIDs. * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function nullableUuidMorphs($name, $indexName = null) @@ -1544,7 +1544,7 @@ public function nullableUuidMorphs($name, $indexName = null) * Add the proper columns for a polymorphic table using ULIDs. * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function ulidMorphs($name, $indexName = null) @@ -1560,7 +1560,7 @@ public function ulidMorphs($name, $indexName = null) * Add nullable columns for a polymorphic table using ULIDs. * * @param string $name - * @param string|null $indexName + * @param ?string $indexName * @return void */ public function nullableUlidMorphs($name, $indexName = null) @@ -1599,7 +1599,7 @@ public function comment($comment) * @param string $type * @param string|array $columns * @param string $index - * @param string|null $algorithm + * @param ?string $algorithm * @return \Illuminate\Support\Fluent */ protected function indexCommand($type, $columns, $index, $algorithm = null) diff --git a/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php b/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php index 354b248d2973..0c256036a6ad 100644 --- a/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php +++ b/src/Illuminate/Database/Schema/ForeignIdColumnDefinition.php @@ -30,7 +30,7 @@ public function __construct(Blueprint $blueprint, $attributes = []) /** * Create a foreign key constraint on this column referencing the "id" column of the conventionally related table. * - * @param string|null $table + * @param ?string $table * @param string $column * @return \Illuminate\Database\Schema\ForeignKeyDefinition */ diff --git a/src/Illuminate/Database/Schema/Grammars/ChangeColumn.php b/src/Illuminate/Database/Schema/Grammars/ChangeColumn.php index 9579222991b7..54238b4a7bd5 100644 --- a/src/Illuminate/Database/Schema/Grammars/ChangeColumn.php +++ b/src/Illuminate/Database/Schema/Grammars/ChangeColumn.php @@ -208,7 +208,7 @@ protected static function doesntNeedCharacterOptions($type) * Get the matching Doctrine option for a given Fluent attribute name. * * @param string $attribute - * @return string|null + * @return ?string */ protected static function mapFluentOptionToDoctrine($attribute) { diff --git a/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php b/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php index f87acfd63ff3..b6317a3e9766 100755 --- a/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php @@ -991,7 +991,7 @@ protected function typeComputed(Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) { @@ -1013,7 +1013,7 @@ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) { @@ -1035,7 +1035,7 @@ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyUnsigned(Blueprint $blueprint, Fluent $column) { @@ -1049,7 +1049,7 @@ protected function modifyUnsigned(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyCharset(Blueprint $blueprint, Fluent $column) { @@ -1063,7 +1063,7 @@ protected function modifyCharset(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyCollate(Blueprint $blueprint, Fluent $column) { @@ -1077,7 +1077,7 @@ protected function modifyCollate(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) { @@ -1098,7 +1098,7 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyInvisible(Blueprint $blueprint, Fluent $column) { @@ -1112,7 +1112,7 @@ protected function modifyInvisible(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) { @@ -1126,7 +1126,7 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) { @@ -1140,7 +1140,7 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyFirst(Blueprint $blueprint, Fluent $column) { @@ -1154,7 +1154,7 @@ protected function modifyFirst(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyAfter(Blueprint $blueprint, Fluent $column) { @@ -1168,7 +1168,7 @@ protected function modifyAfter(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyComment(Blueprint $blueprint, Fluent $column) { @@ -1182,7 +1182,7 @@ protected function modifyComment(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifySrid(Blueprint $blueprint, Fluent $column) { diff --git a/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php b/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php index ef60d0ff820f..3a19b6852cb6 100755 --- a/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php @@ -1062,7 +1062,7 @@ private function formatPostGisType($type, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyCollate(Blueprint $blueprint, Fluent $column) { @@ -1076,7 +1076,7 @@ protected function modifyCollate(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) { @@ -1088,7 +1088,7 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) { @@ -1102,7 +1102,7 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) { @@ -1116,7 +1116,7 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) { @@ -1130,7 +1130,7 @@ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) { diff --git a/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php b/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php index c9d1c5503aaa..3f281af5623f 100755 --- a/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php @@ -68,7 +68,7 @@ public function compileCreate(Blueprint $blueprint, Fluent $command) * Get the foreign key syntax for a table creation statement. * * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @return string|null + * @return ?string */ protected function addForeignKeys(Blueprint $blueprint) { @@ -117,7 +117,7 @@ protected function getForeignKey($foreign) * Get the primary key syntax for a table creation statement. * * @param \Illuminate\Database\Schema\Blueprint $blueprint - * @return string|null + * @return ?string */ protected function addPrimaryKeys(Blueprint $blueprint) { @@ -902,7 +902,7 @@ protected function typeComputed(Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) { @@ -924,7 +924,7 @@ protected function modifyVirtualAs(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) { @@ -946,7 +946,7 @@ protected function modifyStoredAs(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) { @@ -967,7 +967,7 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) { @@ -981,7 +981,7 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) { diff --git a/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php b/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php index 4d7271ca3308..9947f8c320e9 100755 --- a/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php +++ b/src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php @@ -864,7 +864,7 @@ public function typeMultiPolygon(Fluent $column) * Create the column definition for a generated, computed column type. * * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function typeComputed(Fluent $column) { @@ -876,7 +876,7 @@ protected function typeComputed(Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyCollate(Blueprint $blueprint, Fluent $column) { @@ -890,7 +890,7 @@ protected function modifyCollate(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyNullable(Blueprint $blueprint, Fluent $column) { @@ -904,7 +904,7 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyDefault(Blueprint $blueprint, Fluent $column) { @@ -918,7 +918,7 @@ protected function modifyDefault(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) { @@ -932,7 +932,7 @@ protected function modifyIncrement(Blueprint $blueprint, Fluent $column) * * @param \Illuminate\Database\Schema\Blueprint $blueprint * @param \Illuminate\Support\Fluent $column - * @return string|null + * @return ?string */ protected function modifyPersisted(Blueprint $blueprint, Fluent $column) { diff --git a/src/Illuminate/Events/QueuedClosure.php b/src/Illuminate/Events/QueuedClosure.php index 31a462ace41f..c0aaa24e2036 100644 --- a/src/Illuminate/Events/QueuedClosure.php +++ b/src/Illuminate/Events/QueuedClosure.php @@ -17,14 +17,14 @@ class QueuedClosure /** * The name of the connection the job should be sent to. * - * @var string|null + * @var ?string */ public $connection; /** * The name of the queue the job should be sent to. * - * @var string|null + * @var ?string */ public $queue; @@ -56,7 +56,7 @@ public function __construct(Closure $closure) /** * Set the desired connection for the job. * - * @param string|null $connection + * @param ?string $connection * @return $this */ public function onConnection($connection) @@ -69,7 +69,7 @@ public function onConnection($connection) /** * Set the desired queue for the job. * - * @param string|null $queue + * @param ?string $queue * @return $this */ public function onQueue($queue) diff --git a/src/Illuminate/Filesystem/Filesystem.php b/src/Illuminate/Filesystem/Filesystem.php index 16149cffc5b1..91641b5d85d5 100644 --- a/src/Illuminate/Filesystem/Filesystem.php +++ b/src/Illuminate/Filesystem/Filesystem.php @@ -410,7 +410,7 @@ public function extension($path) * Guess the file extension from the mime-type of a given file. * * @param string $path - * @return string|null + * @return ?string * * @throws \RuntimeException */ diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 87606c974f0b..c932ab618247 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -106,7 +106,7 @@ public function __construct(FilesystemOperator $driver, FlysystemAdapter $adapte * Assert that the given file or directory exists. * * @param string|array $path - * @param string|null $content + * @param ?string $content * @return $this */ public function assertExists($path, $content = null) @@ -251,7 +251,7 @@ public function path($path) * Get the contents of a file. * * @param string $path - * @return string|null + * @return ?string */ public function get($path) { @@ -266,9 +266,9 @@ public function get($path) * Create a streamed response for a given file. * * @param string $path - * @param string|null $name + * @param ?string $name * @param array $headers - * @param string|null $disposition + * @param ?string $disposition * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function response($path, $name = null, array $headers = [], $disposition = 'inline') @@ -308,7 +308,7 @@ public function response($path, $name = null, array $headers = [], $disposition * Create a streamed download response for a given file. * * @param string $path - * @param string|null $name + * @param ?string $name * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function download($path, $name = null, array $headers = []) @@ -765,7 +765,7 @@ protected function replaceBaseUrl($uri, $url) /** * Get an array of all files in a directory. * - * @param string|null $directory + * @param ?string $directory * @param bool $recursive * @return array */ @@ -785,7 +785,7 @@ public function files($directory = null, $recursive = false) /** * Get all of the files from the given directory (recursive). * - * @param string|null $directory + * @param ?string $directory * @return array */ public function allFiles($directory = null) @@ -796,7 +796,7 @@ public function allFiles($directory = null) /** * Get all of the directories within a given directory. * - * @param string|null $directory + * @param ?string $directory * @param bool $recursive * @return array */ @@ -815,7 +815,7 @@ public function directories($directory = null, $recursive = false) /** * Get all the directories within a given directory (recursive). * - * @param string|null $directory + * @param ?string $directory * @return array */ public function allDirectories($directory = null) @@ -894,8 +894,8 @@ public function getConfig() /** * Parse the given visibility value. * - * @param string|null $visibility - * @return string|null + * @param ?string $visibility + * @return ?string * * @throws \InvalidArgumentException */ diff --git a/src/Illuminate/Filesystem/FilesystemManager.php b/src/Illuminate/Filesystem/FilesystemManager.php index 0475c40e0363..a8cfe52317c6 100644 --- a/src/Illuminate/Filesystem/FilesystemManager.php +++ b/src/Illuminate/Filesystem/FilesystemManager.php @@ -62,7 +62,7 @@ public function __construct($app) /** * Get a filesystem instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Filesystem\Filesystem */ public function drive($name = null) @@ -73,7 +73,7 @@ public function drive($name = null) /** * Get a filesystem instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Filesystem\Filesystem */ public function disk($name = null) @@ -378,7 +378,7 @@ public function forgetDisk($disk) /** * Disconnect the given disk and remove from local cache. * - * @param string|null $name + * @param ?string $name * @return void */ public function purge($name = null) diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index f098f742bc73..6fe3299e78d8 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -169,7 +169,7 @@ class Application extends Container implements ApplicationContract, CachesConfig /** * Create a new Illuminate application instance. * - * @param string|null $basePath + * @param ?string $basePath * @return void */ public function __construct($basePath = null) @@ -810,7 +810,7 @@ public function loadDeferredProvider($service) * Register a deferred provider and service. * * @param string $provider - * @param string|null $service + * @param ?string $service * @return void */ public function registerDeferredProvider($provider, $service = null) diff --git a/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php b/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php index a67649b931f8..68d0c31cbd1f 100644 --- a/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php +++ b/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php @@ -17,7 +17,7 @@ class HandleExceptions /** * Reserved memory so that errors can be displayed properly on memory exhaustion. * - * @var string|null + * @var ?string */ public static $reservedMemory; diff --git a/src/Illuminate/Foundation/Bus/PendingChain.php b/src/Illuminate/Foundation/Bus/PendingChain.php index b56b773ea9b8..0b721e202e8c 100644 --- a/src/Illuminate/Foundation/Bus/PendingChain.php +++ b/src/Illuminate/Foundation/Bus/PendingChain.php @@ -26,14 +26,14 @@ class PendingChain /** * The name of the connection the chain should be sent to. * - * @var string|null + * @var ?string */ public $connection; /** * The name of the queue the chain should be sent to. * - * @var string|null + * @var ?string */ public $queue; @@ -67,7 +67,7 @@ public function __construct($job, $chain) /** * Set the desired connection for the job. * - * @param string|null $connection + * @param ?string $connection * @return $this */ public function onConnection($connection) @@ -80,7 +80,7 @@ public function onConnection($connection) /** * Set the desired queue for the job. * - * @param string|null $queue + * @param ?string $queue * @return $this */ public function onQueue($queue) diff --git a/src/Illuminate/Foundation/Bus/PendingDispatch.php b/src/Illuminate/Foundation/Bus/PendingDispatch.php index 1e514e5b0b78..d28bff2229e8 100644 --- a/src/Illuminate/Foundation/Bus/PendingDispatch.php +++ b/src/Illuminate/Foundation/Bus/PendingDispatch.php @@ -38,7 +38,7 @@ public function __construct($job) /** * Set the desired connection for the job. * - * @param string|null $connection + * @param ?string $connection * @return $this */ public function onConnection($connection) @@ -51,7 +51,7 @@ public function onConnection($connection) /** * Set the desired queue for the job. * - * @param string|null $queue + * @param ?string $queue * @return $this */ public function onQueue($queue) @@ -64,7 +64,7 @@ public function onQueue($queue) /** * Set the desired connection for the chain. * - * @param string|null $connection + * @param ?string $connection * @return $this */ public function allOnConnection($connection) @@ -77,7 +77,7 @@ public function allOnConnection($connection) /** * Set the desired queue for the chain. * - * @param string|null $queue + * @param ?string $queue * @return $this */ public function allOnQueue($queue) diff --git a/src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php b/src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php index 7e0dfffa7556..d9a4003fb3e3 100644 --- a/src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php +++ b/src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php @@ -143,7 +143,7 @@ protected function getOriginalFileForCompiledView($file) * * @param string $file * @param int|null $line - * @return string|null + * @return ?string */ protected function resolveSourceHref($file, $line) { diff --git a/src/Illuminate/Foundation/Console/AboutCommand.php b/src/Illuminate/Foundation/Console/AboutCommand.php index c6a38ce9cb4d..974846911acf 100644 --- a/src/Illuminate/Foundation/Console/AboutCommand.php +++ b/src/Illuminate/Foundation/Console/AboutCommand.php @@ -23,7 +23,7 @@ class AboutCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ @@ -225,7 +225,7 @@ protected function hasPhpFiles(string $path): bool * * @param string $section * @param callable|string|array $data - * @param string|null $value + * @param ?string $value * @return void */ public static function add(string $section, $data, string $value = null) @@ -238,7 +238,7 @@ public static function add(string $section, $data, string $value = null) * * @param string $section * @param callable|string|array $data - * @param string|null $value + * @param ?string $value * @return void */ protected static function addToSection(string $section, $data, string $value = null) diff --git a/src/Illuminate/Foundation/Console/CastMakeCommand.php b/src/Illuminate/Foundation/Console/CastMakeCommand.php index 2704360611d7..df8abb377c53 100644 --- a/src/Illuminate/Foundation/Console/CastMakeCommand.php +++ b/src/Illuminate/Foundation/Console/CastMakeCommand.php @@ -21,7 +21,7 @@ class CastMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ChannelMakeCommand.php b/src/Illuminate/Foundation/Console/ChannelMakeCommand.php index 1bc26e85da95..8e95d9ea872f 100644 --- a/src/Illuminate/Foundation/Console/ChannelMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ChannelMakeCommand.php @@ -21,7 +21,7 @@ class ChannelMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ClearCompiledCommand.php b/src/Illuminate/Foundation/Console/ClearCompiledCommand.php index 20375ded17a6..267b2cf60ebb 100644 --- a/src/Illuminate/Foundation/Console/ClearCompiledCommand.php +++ b/src/Illuminate/Foundation/Console/ClearCompiledCommand.php @@ -20,7 +20,7 @@ class ClearCompiledCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ComponentMakeCommand.php b/src/Illuminate/Foundation/Console/ComponentMakeCommand.php index e11838c2fb40..44dda9df1ec5 100644 --- a/src/Illuminate/Foundation/Console/ComponentMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ComponentMakeCommand.php @@ -23,7 +23,7 @@ class ComponentMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ConfigCacheCommand.php b/src/Illuminate/Foundation/Console/ConfigCacheCommand.php index 18eec46c0f5c..b6926fcd3458 100644 --- a/src/Illuminate/Foundation/Console/ConfigCacheCommand.php +++ b/src/Illuminate/Foundation/Console/ConfigCacheCommand.php @@ -24,7 +24,7 @@ class ConfigCacheCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ConfigClearCommand.php b/src/Illuminate/Foundation/Console/ConfigClearCommand.php index 3e07e9be9a4a..80b70fc2a25c 100644 --- a/src/Illuminate/Foundation/Console/ConfigClearCommand.php +++ b/src/Illuminate/Foundation/Console/ConfigClearCommand.php @@ -21,7 +21,7 @@ class ConfigClearCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ConsoleMakeCommand.php b/src/Illuminate/Foundation/Console/ConsoleMakeCommand.php index 18f6dd1b7d94..829c8653ce71 100644 --- a/src/Illuminate/Foundation/Console/ConsoleMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ConsoleMakeCommand.php @@ -25,7 +25,7 @@ class ConsoleMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/DocsCommand.php b/src/Illuminate/Foundation/Console/DocsCommand.php index e8e1646f4d46..4229afe0e222 100644 --- a/src/Illuminate/Foundation/Console/DocsCommand.php +++ b/src/Illuminate/Foundation/Console/DocsCommand.php @@ -31,7 +31,7 @@ class DocsCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ @@ -75,7 +75,7 @@ class DocsCommand extends Command /** * The custom documentation version to open. * - * @var string|null + * @var ?string */ protected $version; diff --git a/src/Illuminate/Foundation/Console/DownCommand.php b/src/Illuminate/Foundation/Console/DownCommand.php index 42aa6b6487c6..17a440d7c449 100644 --- a/src/Illuminate/Foundation/Console/DownCommand.php +++ b/src/Illuminate/Foundation/Console/DownCommand.php @@ -30,7 +30,7 @@ class DownCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EnvironmentCommand.php b/src/Illuminate/Foundation/Console/EnvironmentCommand.php index ba74ed987efc..978e81182aee 100644 --- a/src/Illuminate/Foundation/Console/EnvironmentCommand.php +++ b/src/Illuminate/Foundation/Console/EnvironmentCommand.php @@ -20,7 +20,7 @@ class EnvironmentCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php b/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php index 1e11e1100f6d..784a5a73b082 100644 --- a/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php +++ b/src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php @@ -31,7 +31,7 @@ class EnvironmentDecryptCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php b/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php index ef9082629087..70cdbd344279 100644 --- a/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php +++ b/src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php @@ -28,7 +28,7 @@ class EnvironmentEncryptCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EventCacheCommand.php b/src/Illuminate/Foundation/Console/EventCacheCommand.php index df42fbfd1d65..5b72f41300e4 100644 --- a/src/Illuminate/Foundation/Console/EventCacheCommand.php +++ b/src/Illuminate/Foundation/Console/EventCacheCommand.php @@ -21,7 +21,7 @@ class EventCacheCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EventClearCommand.php b/src/Illuminate/Foundation/Console/EventClearCommand.php index a5c8ed1937bb..24d889f39ee2 100644 --- a/src/Illuminate/Foundation/Console/EventClearCommand.php +++ b/src/Illuminate/Foundation/Console/EventClearCommand.php @@ -21,7 +21,7 @@ class EventClearCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EventGenerateCommand.php b/src/Illuminate/Foundation/Console/EventGenerateCommand.php index b27e9dbb0c82..90035259ae62 100644 --- a/src/Illuminate/Foundation/Console/EventGenerateCommand.php +++ b/src/Illuminate/Foundation/Console/EventGenerateCommand.php @@ -21,7 +21,7 @@ class EventGenerateCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EventListCommand.php b/src/Illuminate/Foundation/Console/EventListCommand.php index 1e0e11b877c8..953563955987 100644 --- a/src/Illuminate/Foundation/Console/EventListCommand.php +++ b/src/Illuminate/Foundation/Console/EventListCommand.php @@ -24,7 +24,7 @@ class EventListCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/EventMakeCommand.php b/src/Illuminate/Foundation/Console/EventMakeCommand.php index 94f96b5ef347..1644b9294a70 100644 --- a/src/Illuminate/Foundation/Console/EventMakeCommand.php +++ b/src/Illuminate/Foundation/Console/EventMakeCommand.php @@ -21,7 +21,7 @@ class EventMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php b/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php index 54b24d6f2eb7..3eac8506b97a 100644 --- a/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ExceptionMakeCommand.php @@ -21,7 +21,7 @@ class ExceptionMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/JobMakeCommand.php b/src/Illuminate/Foundation/Console/JobMakeCommand.php index 901fff210b1a..46585ced9edc 100644 --- a/src/Illuminate/Foundation/Console/JobMakeCommand.php +++ b/src/Illuminate/Foundation/Console/JobMakeCommand.php @@ -24,7 +24,7 @@ class JobMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/KeyGenerateCommand.php b/src/Illuminate/Foundation/Console/KeyGenerateCommand.php index f047bc39aed6..fe95769a224e 100644 --- a/src/Illuminate/Foundation/Console/KeyGenerateCommand.php +++ b/src/Illuminate/Foundation/Console/KeyGenerateCommand.php @@ -26,7 +26,7 @@ class KeyGenerateCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php index c5c704240570..d1b04f8c0408 100644 --- a/src/Illuminate/Foundation/Console/ListenerMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ListenerMakeCommand.php @@ -25,7 +25,7 @@ class ListenerMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/MailMakeCommand.php b/src/Illuminate/Foundation/Console/MailMakeCommand.php index fe0982933854..c0b9becc9130 100644 --- a/src/Illuminate/Foundation/Console/MailMakeCommand.php +++ b/src/Illuminate/Foundation/Console/MailMakeCommand.php @@ -25,7 +25,7 @@ class MailMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ModelMakeCommand.php b/src/Illuminate/Foundation/Console/ModelMakeCommand.php index c448a061b79a..658e112bab13 100644 --- a/src/Illuminate/Foundation/Console/ModelMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ModelMakeCommand.php @@ -25,7 +25,7 @@ class ModelMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/NotificationMakeCommand.php b/src/Illuminate/Foundation/Console/NotificationMakeCommand.php index 4bcf5c840faa..dd5843b39d68 100644 --- a/src/Illuminate/Foundation/Console/NotificationMakeCommand.php +++ b/src/Illuminate/Foundation/Console/NotificationMakeCommand.php @@ -24,7 +24,7 @@ class NotificationMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ObserverMakeCommand.php b/src/Illuminate/Foundation/Console/ObserverMakeCommand.php index 1187269daff8..0a12c689e278 100644 --- a/src/Illuminate/Foundation/Console/ObserverMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ObserverMakeCommand.php @@ -22,7 +22,7 @@ class ObserverMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/OptimizeClearCommand.php b/src/Illuminate/Foundation/Console/OptimizeClearCommand.php index d3b039ebb36b..561614b12e5e 100644 --- a/src/Illuminate/Foundation/Console/OptimizeClearCommand.php +++ b/src/Illuminate/Foundation/Console/OptimizeClearCommand.php @@ -20,7 +20,7 @@ class OptimizeClearCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/OptimizeCommand.php b/src/Illuminate/Foundation/Console/OptimizeCommand.php index b487928d43ba..922e5effed9c 100644 --- a/src/Illuminate/Foundation/Console/OptimizeCommand.php +++ b/src/Illuminate/Foundation/Console/OptimizeCommand.php @@ -20,7 +20,7 @@ class OptimizeCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php b/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php index d9b928f4ad4a..3933814d7518 100644 --- a/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php +++ b/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php @@ -21,7 +21,7 @@ class PackageDiscoverCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php index 4c895f633729..0c2dae476e9b 100644 --- a/src/Illuminate/Foundation/Console/PolicyMakeCommand.php +++ b/src/Illuminate/Foundation/Console/PolicyMakeCommand.php @@ -23,7 +23,7 @@ class PolicyMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ @@ -84,7 +84,7 @@ protected function replaceUserNamespace($stub) /** * Get the model for the guard's user provider. * - * @return string|null + * @return ?string * * @throws \LogicException */ diff --git a/src/Illuminate/Foundation/Console/ProviderMakeCommand.php b/src/Illuminate/Foundation/Console/ProviderMakeCommand.php index a3b99d975fa0..53800382d206 100644 --- a/src/Illuminate/Foundation/Console/ProviderMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ProviderMakeCommand.php @@ -21,7 +21,7 @@ class ProviderMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/RequestMakeCommand.php b/src/Illuminate/Foundation/Console/RequestMakeCommand.php index f181ff0c8fe7..77c0a4c072ab 100644 --- a/src/Illuminate/Foundation/Console/RequestMakeCommand.php +++ b/src/Illuminate/Foundation/Console/RequestMakeCommand.php @@ -21,7 +21,7 @@ class RequestMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ResourceMakeCommand.php b/src/Illuminate/Foundation/Console/ResourceMakeCommand.php index 9fe4fddbcb6d..5569981d6ccf 100644 --- a/src/Illuminate/Foundation/Console/ResourceMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ResourceMakeCommand.php @@ -21,7 +21,7 @@ class ResourceMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/RouteCacheCommand.php b/src/Illuminate/Foundation/Console/RouteCacheCommand.php index 00f4050c4572..18d2afff6e8b 100644 --- a/src/Illuminate/Foundation/Console/RouteCacheCommand.php +++ b/src/Illuminate/Foundation/Console/RouteCacheCommand.php @@ -23,7 +23,7 @@ class RouteCacheCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/RouteClearCommand.php b/src/Illuminate/Foundation/Console/RouteClearCommand.php index da45e6d80f1c..911b136ea88d 100644 --- a/src/Illuminate/Foundation/Console/RouteClearCommand.php +++ b/src/Illuminate/Foundation/Console/RouteClearCommand.php @@ -21,7 +21,7 @@ class RouteClearCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/RouteListCommand.php b/src/Illuminate/Foundation/Console/RouteListCommand.php index caa81652cea9..a21c277d680f 100644 --- a/src/Illuminate/Foundation/Console/RouteListCommand.php +++ b/src/Illuminate/Foundation/Console/RouteListCommand.php @@ -31,7 +31,7 @@ class RouteListCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/RuleMakeCommand.php b/src/Illuminate/Foundation/Console/RuleMakeCommand.php index 5cefd1fa1564..11724a26abdd 100644 --- a/src/Illuminate/Foundation/Console/RuleMakeCommand.php +++ b/src/Illuminate/Foundation/Console/RuleMakeCommand.php @@ -21,7 +21,7 @@ class RuleMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ScopeMakeCommand.php b/src/Illuminate/Foundation/Console/ScopeMakeCommand.php index d36742c83c34..bc5f3dfb8670 100644 --- a/src/Illuminate/Foundation/Console/ScopeMakeCommand.php +++ b/src/Illuminate/Foundation/Console/ScopeMakeCommand.php @@ -21,7 +21,7 @@ class ScopeMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index 67321fd79fe5..adf26fefcb53 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -26,7 +26,7 @@ class ServeCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ShowModelCommand.php b/src/Illuminate/Foundation/Console/ShowModelCommand.php index 5b15aafc85a2..61a4b31e6389 100644 --- a/src/Illuminate/Foundation/Console/ShowModelCommand.php +++ b/src/Illuminate/Foundation/Console/ShowModelCommand.php @@ -34,7 +34,7 @@ class ShowModelCommand extends DatabaseInspectionCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ @@ -410,7 +410,7 @@ protected function displayCli($class, $database, $table, $policy, $attributes, $ * * @param string $column * @param \Illuminate\Database\Eloquent\Model $model - * @return string|null + * @return ?string */ protected function getCastType($column, $model) { diff --git a/src/Illuminate/Foundation/Console/StorageLinkCommand.php b/src/Illuminate/Foundation/Console/StorageLinkCommand.php index 10427557bff9..022b71ed86b2 100644 --- a/src/Illuminate/Foundation/Console/StorageLinkCommand.php +++ b/src/Illuminate/Foundation/Console/StorageLinkCommand.php @@ -22,7 +22,7 @@ class StorageLinkCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/StubPublishCommand.php b/src/Illuminate/Foundation/Console/StubPublishCommand.php index a1790828233c..f9c1280ae187 100644 --- a/src/Illuminate/Foundation/Console/StubPublishCommand.php +++ b/src/Illuminate/Foundation/Console/StubPublishCommand.php @@ -24,7 +24,7 @@ class StubPublishCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/TestMakeCommand.php b/src/Illuminate/Foundation/Console/TestMakeCommand.php index ae8bcf2ac09e..d581a30234b2 100644 --- a/src/Illuminate/Foundation/Console/TestMakeCommand.php +++ b/src/Illuminate/Foundation/Console/TestMakeCommand.php @@ -22,7 +22,7 @@ class TestMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/UpCommand.php b/src/Illuminate/Foundation/Console/UpCommand.php index 000d3c625907..ee9f394440f4 100644 --- a/src/Illuminate/Foundation/Console/UpCommand.php +++ b/src/Illuminate/Foundation/Console/UpCommand.php @@ -22,7 +22,7 @@ class UpCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/VendorPublishCommand.php b/src/Illuminate/Foundation/Console/VendorPublishCommand.php index ad41fa772872..e13ad88b30fb 100644 --- a/src/Illuminate/Foundation/Console/VendorPublishCommand.php +++ b/src/Illuminate/Foundation/Console/VendorPublishCommand.php @@ -56,7 +56,7 @@ class VendorPublishCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ViewCacheCommand.php b/src/Illuminate/Foundation/Console/ViewCacheCommand.php index 03f8d75d9a39..88a6cfef32f3 100644 --- a/src/Illuminate/Foundation/Console/ViewCacheCommand.php +++ b/src/Illuminate/Foundation/Console/ViewCacheCommand.php @@ -24,7 +24,7 @@ class ViewCacheCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/Console/ViewClearCommand.php b/src/Illuminate/Foundation/Console/ViewClearCommand.php index 2480f965fff9..f6c0f3cfdf1d 100644 --- a/src/Illuminate/Foundation/Console/ViewClearCommand.php +++ b/src/Illuminate/Foundation/Console/ViewClearCommand.php @@ -22,7 +22,7 @@ class ViewClearCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Foundation/EnvironmentDetector.php b/src/Illuminate/Foundation/EnvironmentDetector.php index b2747bc6800e..d28f32505135 100644 --- a/src/Illuminate/Foundation/EnvironmentDetector.php +++ b/src/Illuminate/Foundation/EnvironmentDetector.php @@ -56,7 +56,7 @@ protected function detectConsoleEnvironment(Closure $callback, array $args) * Get the environment argument from the console. * * @param array $args - * @return string|null + * @return ?string */ protected function getEnvironmentArgument(array $args) { diff --git a/src/Illuminate/Foundation/Exceptions/Handler.php b/src/Illuminate/Foundation/Exceptions/Handler.php index 40a4dc4cbda0..deccdeefb3f6 100644 --- a/src/Illuminate/Foundation/Exceptions/Handler.php +++ b/src/Illuminate/Foundation/Exceptions/Handler.php @@ -646,7 +646,7 @@ protected function registerErrorViewPaths() * Get the view used to render HTTP exceptions. * * @param \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface $e - * @return string|null + * @return ?string */ protected function getHttpExceptionView(HttpExceptionInterface $e) { diff --git a/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php b/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php index 5553fde625d2..388ca87d65e9 100644 --- a/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php +++ b/src/Illuminate/Foundation/Http/Exceptions/MaintenanceModeException.php @@ -38,7 +38,7 @@ class MaintenanceModeException extends ServiceUnavailableHttpException * * @param int $time * @param int|null $retryAfter - * @param string|null $message + * @param ?string $message * @param \Throwable|null $previous * @param int $code * @return void diff --git a/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php b/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php index bb9595fcfcff..932e0679ff28 100644 --- a/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php +++ b/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php @@ -146,7 +146,7 @@ protected function tokensMatch($request) * Get the CSRF token from the request. * * @param \Illuminate\Http\Request $request - * @return string|null + * @return ?string */ protected function getTokenFromRequest($request) { diff --git a/src/Illuminate/Foundation/PackageManifest.php b/src/Illuminate/Foundation/PackageManifest.php index 9767feb99f22..9599e3b97659 100644 --- a/src/Illuminate/Foundation/PackageManifest.php +++ b/src/Illuminate/Foundation/PackageManifest.php @@ -32,7 +32,7 @@ class PackageManifest /** * The manifest path. * - * @var string|null + * @var ?string */ public $manifestPath; diff --git a/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php b/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php index c8679e51ede6..68d1c26b421c 100644 --- a/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php +++ b/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php @@ -18,7 +18,7 @@ class RouteServiceProvider extends ServiceProvider /** * The controller namespace for the application. * - * @var string|null + * @var ?string */ protected $namespace; diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php index 9e8c0f5870b6..168978b6b4ff 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithAuthentication.php @@ -10,7 +10,7 @@ trait InteractsWithAuthentication * Set the currently logged in user for the application. * * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param string|null $guard + * @param ?string $guard * @return $this */ public function actingAs(UserContract $user, $guard = null) @@ -22,7 +22,7 @@ public function actingAs(UserContract $user, $guard = null) * Set the currently logged in user for the application. * * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param string|null $guard + * @param ?string $guard * @return $this */ public function be(UserContract $user, $guard = null) @@ -41,7 +41,7 @@ public function be(UserContract $user, $guard = null) /** * Assert that the user is authenticated. * - * @param string|null $guard + * @param ?string $guard * @return $this */ public function assertAuthenticated($guard = null) @@ -54,7 +54,7 @@ public function assertAuthenticated($guard = null) /** * Assert that the user is not authenticated. * - * @param string|null $guard + * @param ?string $guard * @return $this */ public function assertGuest($guard = null) @@ -67,7 +67,7 @@ public function assertGuest($guard = null) /** * Return true if the user is authenticated, false otherwise. * - * @param string|null $guard + * @param ?string $guard * @return bool */ protected function isAuthenticated($guard = null) @@ -79,7 +79,7 @@ protected function isAuthenticated($guard = null) * Assert that the user is authenticated as the given user. * * @param \Illuminate\Contracts\Auth\Authenticatable $user - * @param string|null $guard + * @param ?string $guard * @return $this */ public function assertAuthenticatedAs($user, $guard = null) @@ -105,7 +105,7 @@ public function assertAuthenticatedAs($user, $guard = null) * Assert that the given credentials are valid. * * @param array $credentials - * @param string|null $guard + * @param ?string $guard * @return $this */ public function assertCredentials(array $credentials, $guard = null) @@ -121,7 +121,7 @@ public function assertCredentials(array $credentials, $guard = null) * Assert that the given credentials are invalid. * * @param array $credentials - * @param string|null $guard + * @param ?string $guard * @return $this */ public function assertInvalidCredentials(array $credentials, $guard = null) @@ -137,7 +137,7 @@ public function assertInvalidCredentials(array $credentials, $guard = null) * Return true if the credentials are valid, false otherwise. * * @param array $credentials - * @param string|null $guard + * @param ?string $guard * @return bool */ protected function hasCredentials(array $credentials, $guard = null) diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php index c45f0f9c67c2..c7df31d498f3 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithDatabase.php @@ -20,7 +20,7 @@ trait InteractsWithDatabase * * @param \Illuminate\Database\Eloquent\Model|string $table * @param array $data - * @param string|null $connection + * @param ?string $connection * @return $this */ protected function assertDatabaseHas($table, array $data, $connection = null) @@ -37,7 +37,7 @@ protected function assertDatabaseHas($table, array $data, $connection = null) * * @param \Illuminate\Database\Eloquent\Model|string $table * @param array $data - * @param string|null $connection + * @param ?string $connection * @return $this */ protected function assertDatabaseMissing($table, array $data, $connection = null) @@ -56,7 +56,7 @@ protected function assertDatabaseMissing($table, array $data, $connection = null * * @param \Illuminate\Database\Eloquent\Model|string $table * @param int $count - * @param string|null $connection + * @param ?string $connection * @return $this */ protected function assertDatabaseCount($table, int $count, $connection = null) @@ -72,7 +72,7 @@ protected function assertDatabaseCount($table, int $count, $connection = null) * Assert that the given table has no entries. * * @param \Illuminate\Database\Eloquent\Model|string $table - * @param string|null $connection + * @param ?string $connection * @return $this */ protected function assertDatabaseEmpty($table, $connection = null) @@ -89,8 +89,8 @@ protected function assertDatabaseEmpty($table, $connection = null) * * @param \Illuminate\Database\Eloquent\Model|string $table * @param array $data - * @param string|null $connection - * @param string|null $deletedAtColumn + * @param ?string $connection + * @param ?string $deletedAtColumn * @return $this */ protected function assertSoftDeleted($table, array $data = [], $connection = null, $deletedAtColumn = 'deleted_at') @@ -116,8 +116,8 @@ protected function assertSoftDeleted($table, array $data = [], $connection = nul * * @param \Illuminate\Database\Eloquent\Model|string $table * @param array $data - * @param string|null $connection - * @param string|null $deletedAtColumn + * @param ?string $connection + * @param ?string $deletedAtColumn * @return $this */ protected function assertNotSoftDeleted($table, array $data = [], $connection = null, $deletedAtColumn = 'deleted_at') @@ -204,8 +204,8 @@ public function castAsJson($value) /** * Get the database connection. * - * @param string|null $connection - * @param string|null $table + * @param ?string $connection + * @param ?string $table * @return \Illuminate\Database\Connection */ protected function getConnection($connection = null, $table = null) @@ -232,7 +232,7 @@ protected function getTable($table) * Get the table connection specified in the given model. * * @param \Illuminate\Database\Eloquent\Model|string $table - * @return string|null + * @return ?string */ protected function getTableConnection($table) { diff --git a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php index 0955682430b8..8b5928be0d54 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php +++ b/src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php @@ -155,7 +155,7 @@ public function renderForConsole($output, Throwable $e) * * @param \Closure $test * @param class-string<\Throwable> $expectedClass - * @param string|null $expectedMessage + * @param ?string $expectedMessage * @return $this */ protected function assertThrows(Closure $test, string $expectedClass = Throwable::class, ?string $expectedMessage = null) diff --git a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php index ca310e60ce7e..fa8f3f9aa9f2 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php +++ b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php @@ -539,7 +539,7 @@ public function json($method, $uri, array $data = [], array $headers = []) * @param array $cookies * @param array $files * @param array $server - * @param string|null $content + * @param ?string $content * @return \Illuminate\Testing\TestResponse */ public function call($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null) diff --git a/src/Illuminate/Foundation/Testing/WithFaker.php b/src/Illuminate/Foundation/Testing/WithFaker.php index 202a63e8c43b..6190641d5562 100644 --- a/src/Illuminate/Foundation/Testing/WithFaker.php +++ b/src/Illuminate/Foundation/Testing/WithFaker.php @@ -27,7 +27,7 @@ protected function setUpFaker() /** * Get the default Faker instance for a given locale. * - * @param string|null $locale + * @param ?string $locale * @return \Faker\Generator */ protected function faker($locale = null) @@ -38,7 +38,7 @@ protected function faker($locale = null) /** * Create a Faker instance for the given locale. * - * @param string|null $locale + * @param ?string $locale * @return \Faker\Generator */ protected function makeFaker($locale = null) diff --git a/src/Illuminate/Foundation/Vite.php b/src/Illuminate/Foundation/Vite.php index a14ef52589c2..cfcce81c27b7 100644 --- a/src/Illuminate/Foundation/Vite.php +++ b/src/Illuminate/Foundation/Vite.php @@ -16,7 +16,7 @@ class Vite implements Htmlable /** * The Content Security Policy nonce to apply to all generated tags. * - * @var string|null + * @var ?string */ protected $nonce; @@ -37,7 +37,7 @@ class Vite implements Htmlable /** * The path to the "hot" file. * - * @var string|null + * @var ?string */ protected $hotFile; @@ -103,7 +103,7 @@ public function preloadedAssets() /** * Get the Content Security Policy nonce applied to all generated tags. * - * @return string|null + * @return ?string */ public function cspNonce() { @@ -251,7 +251,7 @@ public function usePreloadTagAttributes($attributes) * Generate Vite tags for an entrypoint. * * @param string|string[] $entrypoints - * @param string|null $buildDirectory + * @param ?string $buildDirectory * @return \Illuminate\Support\HtmlString * * @throws \Exception @@ -639,7 +639,7 @@ protected function hotAsset($asset) * Get the URL for an asset. * * @param string $asset - * @param string|null $buildDirectory + * @param ?string $buildDirectory * @return string */ public function asset($asset, $buildDirectory = null) @@ -704,8 +704,8 @@ protected function manifestPath($buildDirectory) /** * Get a unique hash representing the current manifest, or null if there is no manifest. * - * @param string|null $buildDirectory - * @return string|null + * @param ?string $buildDirectory + * @return ?string */ public function manifestHash($buildDirectory = null) { diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index 4b017433fe21..da8d4b33cf13 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -107,7 +107,7 @@ function action($name, $parameters = [], $absolute = true) /** * Get the available container instance. * - * @param string|null $abstract + * @param ?string $abstract * @param array $parameters * @return mixed|\Illuminate\Contracts\Foundation\Application */ @@ -152,7 +152,7 @@ function asset($path, $secure = null) /** * Get the available auth instance. * - * @param string|null $guard + * @param ?string $guard * @return \Illuminate\Contracts\Auth\Factory|\Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard */ function auth($guard = null) @@ -294,15 +294,15 @@ function config_path($path = '') /** * Create a new cookie instance. * - * @param string|null $name - * @param string|null $value + * @param ?string $name + * @param ?string $value * @param int $minutes - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @param bool|null $secure * @param bool $httpOnly * @param bool $raw - * @param string|null $sameSite + * @param ?string $sameSite * @return \Illuminate\Cookie\CookieJar|\Symfony\Component\HttpFoundation\Cookie */ function cookie($name = null, $value = null, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null) @@ -495,7 +495,7 @@ function info($message, $context = []) /** * Log a debug message to the logs. * - * @param string|null $message + * @param ?string $message * @param array $context * @return \Illuminate\Log\LogManager|null */ @@ -526,7 +526,7 @@ function lang_path($path = '') /** * Get a log driver instance. * - * @param string|null $driver + * @param ?string $driver * @return \Illuminate\Log\LogManager|\Psr\Log\LoggerInterface */ function logs($driver = null) @@ -581,7 +581,7 @@ function now($tz = null) /** * Retrieve an old input item. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed */ @@ -652,7 +652,7 @@ function public_path($path = '') /** * Get an instance of the redirector. * - * @param string|null $to + * @param ?string $to * @param int $status * @param array $headers * @param bool|null $secure @@ -924,9 +924,9 @@ function today($tz = null) /** * Translate the given message. * - * @param string|null $key + * @param ?string $key * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return \Illuminate\Contracts\Translation\Translator|string|array|null */ function trans($key = null, $replace = [], $locale = null) @@ -946,7 +946,7 @@ function trans($key = null, $replace = [], $locale = null) * @param string $key * @param \Countable|int|array $number * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return string */ function trans_choice($key, $number, array $replace = [], $locale = null) @@ -959,9 +959,9 @@ function trans_choice($key, $number, array $replace = [], $locale = null) /** * Translate the given message. * - * @param string|null $key + * @param ?string $key * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return string|array|null */ function __($key = null, $replace = [], $locale = null) @@ -978,7 +978,7 @@ function __($key = null, $replace = [], $locale = null) /** * Generate a url for the application. * - * @param string|null $path + * @param ?string $path * @param mixed $parameters * @param bool|null $secure * @return \Illuminate\Contracts\Routing\UrlGenerator|string @@ -1019,7 +1019,7 @@ function validator(array $data = [], array $rules = [], array $messages = [], ar /** * Get the evaluated view contents for the given view. * - * @param string|null $view + * @param ?string $view * @param \Illuminate\Contracts\Support\Arrayable|array $data * @param array $mergeData * @return \Illuminate\Contracts\View\View|\Illuminate\Contracts\View\Factory diff --git a/src/Illuminate/Hashing/AbstractHasher.php b/src/Illuminate/Hashing/AbstractHasher.php index f10371290b1d..b77949745cf3 100644 --- a/src/Illuminate/Hashing/AbstractHasher.php +++ b/src/Illuminate/Hashing/AbstractHasher.php @@ -19,7 +19,7 @@ public function info($hashedValue) * Check the given plain value against a hash. * * @param string $value - * @param string|null $hashedValue + * @param ?string $hashedValue * @param array $options * @return bool */ diff --git a/src/Illuminate/Hashing/Argon2IdHasher.php b/src/Illuminate/Hashing/Argon2IdHasher.php index 9aca47ac9c71..7a48dcd3a871 100644 --- a/src/Illuminate/Hashing/Argon2IdHasher.php +++ b/src/Illuminate/Hashing/Argon2IdHasher.php @@ -10,7 +10,7 @@ class Argon2IdHasher extends ArgonHasher * Check the given plain value against a hash. * * @param string $value - * @param string|null $hashedValue + * @param ?string $hashedValue * @param array $options * @return bool * diff --git a/src/Illuminate/Http/Client/PendingRequest.php b/src/Illuminate/Http/Client/PendingRequest.php index 2d03204b9996..32bc631953c8 100644 --- a/src/Illuminate/Http/Client/PendingRequest.php +++ b/src/Illuminate/Http/Client/PendingRequest.php @@ -286,7 +286,7 @@ public function asForm() * * @param string|array $name * @param string|resource $contents - * @param string|null $filename + * @param ?string $filename * @param array $headers * @return $this */ diff --git a/src/Illuminate/Http/Client/Request.php b/src/Illuminate/Http/Client/Request.php index 3c2d6a9bdb19..662ab68db285 100644 --- a/src/Illuminate/Http/Client/Request.php +++ b/src/Illuminate/Http/Client/Request.php @@ -136,8 +136,8 @@ public function body() * Determine if the request contains the given file. * * @param string $name - * @param string|null $value - * @param string|null $filename + * @param ?string $value + * @param ?string $filename * @return bool */ public function hasFile($name, $value = null, $filename = null) diff --git a/src/Illuminate/Http/Client/Response.php b/src/Illuminate/Http/Client/Response.php index cc9bfd6bb9ab..31a5c687cb29 100644 --- a/src/Illuminate/Http/Client/Response.php +++ b/src/Illuminate/Http/Client/Response.php @@ -65,7 +65,7 @@ public function body() /** * Get the JSON decoded body of the response as an array or scalar value. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed */ @@ -95,7 +95,7 @@ public function object() /** * Get the JSON decoded body of the response as a collection. * - * @param string|null $key + * @param ?string $key * @return \Illuminate\Support\Collection */ public function collect($key = null) diff --git a/src/Illuminate/Http/Concerns/InteractsWithContentTypes.php b/src/Illuminate/Http/Concerns/InteractsWithContentTypes.php index 0d5f62fc7532..10dff7874735 100644 --- a/src/Illuminate/Http/Concerns/InteractsWithContentTypes.php +++ b/src/Illuminate/Http/Concerns/InteractsWithContentTypes.php @@ -77,7 +77,7 @@ public function accepts($contentTypes) * Return the most suitable content type from the given array based on content negotiation. * * @param string|array $contentTypes - * @return string|null + * @return ?string */ public function prefers($contentTypes) { diff --git a/src/Illuminate/Http/Concerns/InteractsWithFlashData.php b/src/Illuminate/Http/Concerns/InteractsWithFlashData.php index a7dfa1c8d761..fdace176a4b0 100644 --- a/src/Illuminate/Http/Concerns/InteractsWithFlashData.php +++ b/src/Illuminate/Http/Concerns/InteractsWithFlashData.php @@ -9,7 +9,7 @@ trait InteractsWithFlashData /** * Retrieve an old input item. * - * @param string|null $key + * @param ?string $key * @param \Illuminate\Database\Eloquent\Model|string|array|null $default * @return string|array|null */ diff --git a/src/Illuminate/Http/Concerns/InteractsWithInput.php b/src/Illuminate/Http/Concerns/InteractsWithInput.php index 835753113cd0..d62884013432 100644 --- a/src/Illuminate/Http/Concerns/InteractsWithInput.php +++ b/src/Illuminate/Http/Concerns/InteractsWithInput.php @@ -15,7 +15,7 @@ trait InteractsWithInput /** * Retrieve a server variable from the request. * - * @param string|null $key + * @param ?string $key * @param string|array|null $default * @return string|array|null */ @@ -38,7 +38,7 @@ public function hasHeader($key) /** * Retrieve a header from the request. * - * @param string|null $key + * @param ?string $key * @param string|array|null $default * @return string|array|null */ @@ -50,7 +50,7 @@ public function header($key = null, $default = null) /** * Get the bearer token from the request headers. * - * @return string|null + * @return ?string */ public function bearerToken() { @@ -294,7 +294,7 @@ public function all($keys = null) /** * Retrieve an input item from the request. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed */ @@ -334,7 +334,7 @@ public function string($key, $default = null) * * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false. * - * @param string|null $key + * @param ?string $key * @param bool $default * @return bool */ @@ -371,8 +371,8 @@ public function float($key, $default = 0.0) * Retrieve input from the request as a Carbon instance. * * @param string $key - * @param string|null $format - * @param string|null $tz + * @param ?string $format + * @param ?string $tz * @return \Illuminate\Support\Carbon|null * * @throws \Carbon\Exceptions\InvalidFormatException @@ -467,7 +467,7 @@ public function except($keys) /** * Retrieve a query string item from the request. * - * @param string|null $key + * @param ?string $key * @param string|array|null $default * @return string|array|null */ @@ -479,7 +479,7 @@ public function query($key = null, $default = null) /** * Retrieve a request payload item from the request. * - * @param string|null $key + * @param ?string $key * @param string|array|null $default * @return string|array|null */ @@ -502,7 +502,7 @@ public function hasCookie($key) /** * Retrieve a cookie from the request. * - * @param string|null $key + * @param ?string $key * @param string|array|null $default * @return string|array|null */ @@ -577,7 +577,7 @@ protected function isValidFile($file) /** * Retrieve a file from the request. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null */ diff --git a/src/Illuminate/Http/FileHelpers.php b/src/Illuminate/Http/FileHelpers.php index 36ed55bea213..803d95d2365e 100644 --- a/src/Illuminate/Http/FileHelpers.php +++ b/src/Illuminate/Http/FileHelpers.php @@ -36,7 +36,7 @@ public function extension() /** * Get a filename for the file. * - * @param string|null $path + * @param ?string $path * @return string */ public function hashName($path = null) diff --git a/src/Illuminate/Http/JsonResponse.php b/src/Illuminate/Http/JsonResponse.php index 6e2f51dfa3ce..f25012816392 100755 --- a/src/Illuminate/Http/JsonResponse.php +++ b/src/Illuminate/Http/JsonResponse.php @@ -45,7 +45,7 @@ public static function fromJsonString(?string $data = null, int $status = 200, a /** * Sets the JSONP callback. * - * @param string|null $callback + * @param ?string $callback * @return $this */ public function withCallback($callback = null) diff --git a/src/Illuminate/Http/Middleware/TrustHosts.php b/src/Illuminate/Http/Middleware/TrustHosts.php index 00a5a44c2e92..73acf7a6d571 100644 --- a/src/Illuminate/Http/Middleware/TrustHosts.php +++ b/src/Illuminate/Http/Middleware/TrustHosts.php @@ -62,7 +62,7 @@ protected function shouldSpecifyTrustedHosts() /** * Get a regular expression matching the application URL and all of its subdomains. * - * @return string|null + * @return ?string */ protected function allSubdomainsOfApplicationUrl() { diff --git a/src/Illuminate/Http/Request.php b/src/Illuminate/Http/Request.php index a0255fc898eb..76edc56d27fa 100644 --- a/src/Illuminate/Http/Request.php +++ b/src/Illuminate/Http/Request.php @@ -180,8 +180,8 @@ public function decodedPath() * Get a segment from the URI (1 based index). * * @param int $index - * @param string|null $default - * @return string|null + * @param ?string $default + * @return ?string */ public function segment($index, $default = null) { @@ -313,7 +313,7 @@ public function secure() /** * Get the client IP address. * - * @return string|null + * @return ?string */ public function ip() { @@ -333,7 +333,7 @@ public function ips() /** * Get the client user agent. * - * @return string|null + * @return ?string */ public function userAgent() { @@ -396,7 +396,7 @@ public function get(string $key, mixed $default = null): mixed /** * Get the JSON payload for the request. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed */ @@ -598,7 +598,7 @@ public function setDefaultRequestLocale(string $locale) /** * Get the user making the request. * - * @param string|null $guard + * @param ?string $guard * @return mixed */ public function user($guard = null) @@ -609,7 +609,7 @@ public function user($guard = null) /** * Get the route handling the request. * - * @param string|null $param + * @param ?string $param * @param mixed $default * @return \Illuminate\Routing\Route|object|string|null */ diff --git a/src/Illuminate/Http/Resources/CollectsResources.php b/src/Illuminate/Http/Resources/CollectsResources.php index b84c34453908..bac5842b1dd6 100644 --- a/src/Illuminate/Http/Resources/CollectsResources.php +++ b/src/Illuminate/Http/Resources/CollectsResources.php @@ -43,7 +43,7 @@ protected function collectResource($resource) /** * Get the resource that this resource collects. * - * @return string|null + * @return ?string */ protected function collects() { diff --git a/src/Illuminate/Http/Resources/DelegatesToResource.php b/src/Illuminate/Http/Resources/DelegatesToResource.php index e932646e19af..d1e85d3ffd46 100644 --- a/src/Illuminate/Http/Resources/DelegatesToResource.php +++ b/src/Illuminate/Http/Resources/DelegatesToResource.php @@ -36,7 +36,7 @@ public function getRouteKeyName() * Retrieve the model for a bound value. * * @param mixed $value - * @param string|null $field + * @param ?string $field * @return void * * @throws \Exception @@ -51,7 +51,7 @@ public function resolveRouteBinding($value, $field = null) * * @param string $childType * @param mixed $value - * @param string|null $field + * @param ?string $field * @return void * * @throws \Exception diff --git a/src/Illuminate/Http/Resources/Json/JsonResource.php b/src/Illuminate/Http/Resources/Json/JsonResource.php index 62b75b154c24..0367ed9b3720 100644 --- a/src/Illuminate/Http/Resources/Json/JsonResource.php +++ b/src/Illuminate/Http/Resources/Json/JsonResource.php @@ -42,7 +42,7 @@ class JsonResource implements ArrayAccess, JsonSerializable, Responsable, UrlRou /** * The "data" wrapper that should be applied. * - * @var string|null + * @var ?string */ public static $wrap = 'data'; diff --git a/src/Illuminate/Http/ResponseTrait.php b/src/Illuminate/Http/ResponseTrait.php index cbe29dcc9902..8cbe2ccd92c3 100644 --- a/src/Illuminate/Http/ResponseTrait.php +++ b/src/Illuminate/Http/ResponseTrait.php @@ -130,8 +130,8 @@ public function withCookie($cookie) * Expire a cookie when sending the response. * * @param \Symfony\Component\HttpFoundation\Cookie|mixed $cookie - * @param string|null $path - * @param string|null $domain + * @param ?string $path + * @param ?string $domain * @return $this */ public function withoutCookie($cookie, $path = null, $domain = null) @@ -148,7 +148,7 @@ public function withoutCookie($cookie, $path = null, $domain = null) /** * Get the callback of the response. * - * @return string|null + * @return ?string */ public function getCallback() { diff --git a/src/Illuminate/Http/Testing/File.php b/src/Illuminate/Http/Testing/File.php index aaba539cfbb5..bc976fcf094e 100644 --- a/src/Illuminate/Http/Testing/File.php +++ b/src/Illuminate/Http/Testing/File.php @@ -30,7 +30,7 @@ class File extends UploadedFile /** * The MIME type to report. * - * @var string|null + * @var ?string */ public $mimeTypeToReport; diff --git a/src/Illuminate/Http/Testing/FileFactory.php b/src/Illuminate/Http/Testing/FileFactory.php index 9e25d72de8f3..9175968ae7b7 100644 --- a/src/Illuminate/Http/Testing/FileFactory.php +++ b/src/Illuminate/Http/Testing/FileFactory.php @@ -9,7 +9,7 @@ class FileFactory * * @param string $name * @param string|int $kilobytes - * @param string|null $mimeType + * @param ?string $mimeType * @return \Illuminate\Http\Testing\File */ public function create($name, $kilobytes = 0, $mimeType = null) diff --git a/src/Illuminate/Http/Testing/MimeType.php b/src/Illuminate/Http/Testing/MimeType.php index d188a4be35e8..5c22457f4268 100644 --- a/src/Illuminate/Http/Testing/MimeType.php +++ b/src/Illuminate/Http/Testing/MimeType.php @@ -56,7 +56,7 @@ public static function get($extension) * Search for the extension of a given MIME type. * * @param string $mimeType - * @return string|null + * @return ?string */ public static function search($mimeType) { diff --git a/src/Illuminate/Log/LogManager.php b/src/Illuminate/Log/LogManager.php index f528bc58eb55..1d27ec74d96f 100644 --- a/src/Illuminate/Log/LogManager.php +++ b/src/Illuminate/Log/LogManager.php @@ -89,7 +89,7 @@ public function build(array $config) * Create a new, on-demand aggregate logger instance. * * @param array $channels - * @param string|null $channel + * @param ?string $channel * @return \Psr\Log\LoggerInterface */ public function stack(array $channels, $channel = null) @@ -103,7 +103,7 @@ public function stack(array $channels, $channel = null) /** * Get a log channel instance. * - * @param string|null $channel + * @param ?string $channel * @return \Psr\Log\LoggerInterface */ public function channel($channel = null) @@ -114,7 +114,7 @@ public function channel($channel = null) /** * Get a log driver instance. * - * @param string|null $driver + * @param ?string $driver * @return \Psr\Log\LoggerInterface */ public function driver($driver = null) @@ -517,7 +517,7 @@ protected function configurationFor($name) /** * Get the default log driver name. * - * @return string|null + * @return ?string */ public function getDefaultDriver() { @@ -552,7 +552,7 @@ public function extend($driver, Closure $callback) /** * Unset the given channel instance. * - * @param string|null $driver + * @param ?string $driver * @return $this */ public function forgetChannel($driver = null) @@ -567,8 +567,8 @@ public function forgetChannel($driver = null) /** * Parse the driver name. * - * @param string|null $driver - * @return string|null + * @param ?string $driver + * @return ?string */ protected function parseDriver($driver) { diff --git a/src/Illuminate/Mail/Attachment.php b/src/Illuminate/Mail/Attachment.php index 5c78ddf394dc..9ae47cbaf660 100644 --- a/src/Illuminate/Mail/Attachment.php +++ b/src/Illuminate/Mail/Attachment.php @@ -14,14 +14,14 @@ class Attachment /** * The attached file's filename. * - * @var string|null + * @var ?string */ public $as; /** * The attached file's mime type. * - * @var string|null + * @var ?string */ public $mime; @@ -82,7 +82,7 @@ public static function fromStorage($path) /** * Create a mail attachment from a file in the specified storage disk. * - * @param string|null $disk + * @param ?string $disk * @param string $path * @return static */ diff --git a/src/Illuminate/Mail/MailManager.php b/src/Illuminate/Mail/MailManager.php index 8d60b34dad17..faa31d31e0f7 100644 --- a/src/Illuminate/Mail/MailManager.php +++ b/src/Illuminate/Mail/MailManager.php @@ -62,7 +62,7 @@ public function __construct($app) /** * Get a mailer instance by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Mail\Mailer */ public function mailer($name = null) @@ -75,7 +75,7 @@ public function mailer($name = null) /** * Get a mailer driver instance. * - * @param string|null $driver + * @param ?string $driver * @return \Illuminate\Mail\Mailer */ public function driver($driver = null) @@ -434,7 +434,7 @@ public function setDefaultDriver(string $name) /** * Disconnect the given mailer and remove from local cache. * - * @param string|null $name + * @param ?string $name * @return void */ public function purge($name = null) diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index c5d3ea5617e8..1524e2e78b60 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -161,7 +161,7 @@ class Mailable implements MailableContract, Renderable /** * The name of the theme that should be used when formatting the message. * - * @var string|null + * @var ?string */ public $theme; @@ -549,7 +549,7 @@ public function priority($level = 3) * Set the sender of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function from($address, $name = null) @@ -561,7 +561,7 @@ public function from($address, $name = null) * Determine if the given recipient is set on the mailable. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasFrom($address, $name = null) @@ -573,7 +573,7 @@ public function hasFrom($address, $name = null) * Set the recipients of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function to($address, $name = null) @@ -589,7 +589,7 @@ public function to($address, $name = null) * Determine if the given recipient is set on the mailable. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasTo($address, $name = null) @@ -601,7 +601,7 @@ public function hasTo($address, $name = null) * Set the recipients of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function cc($address, $name = null) @@ -613,7 +613,7 @@ public function cc($address, $name = null) * Determine if the given recipient is set on the mailable. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasCc($address, $name = null) @@ -625,7 +625,7 @@ public function hasCc($address, $name = null) * Set the recipients of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function bcc($address, $name = null) @@ -637,7 +637,7 @@ public function bcc($address, $name = null) * Determine if the given recipient is set on the mailable. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasBcc($address, $name = null) @@ -649,7 +649,7 @@ public function hasBcc($address, $name = null) * Set the "reply to" address of the message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function replyTo($address, $name = null) @@ -661,7 +661,7 @@ public function replyTo($address, $name = null) * Determine if the given replyTo is set on the mailable. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasReplyTo($address, $name = null) @@ -675,7 +675,7 @@ public function hasReplyTo($address, $name = null) * All recipients are stored internally as [['name' => ?, 'address' => ?]] * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @param string $property * @return $this */ @@ -706,7 +706,7 @@ protected function setAddress($address, $name = null, $property = 'to') * Convert the given recipient arguments to an array. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return array */ protected function addressesToArray($address, $name) @@ -749,7 +749,7 @@ protected function normalizeRecipient($recipient) * Determine if the given recipient is set on the mailable. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @param string $property * @return bool */ @@ -785,7 +785,7 @@ protected function hasRecipient($address, $name = null, $property = 'to') * Determine if the mailable "envelope" method defines a recipient. * * @param string $address - * @param string|null $name + * @param ?string $name * @param string $property * @return bool */ @@ -1005,7 +1005,7 @@ private function hasEnvelopeAttachment($attachment) * Attach a file to the message from storage. * * @param string $path - * @param string|null $name + * @param ?string $name * @param array $options * @return $this */ @@ -1019,7 +1019,7 @@ public function attachFromStorage($path, $name = null, array $options = []) * * @param string $disk * @param string $path - * @param string|null $name + * @param ?string $name * @param array $options * @return $this */ @@ -1041,7 +1041,7 @@ public function attachFromStorageDisk($disk, $path, $name = null, array $options * Determine if the mailable has the given attachment from storage. * * @param string $path - * @param string|null $name + * @param ?string $name * @param array $options * @return bool */ @@ -1055,7 +1055,7 @@ public function hasAttachmentFromStorage($path, $name = null, array $options = [ * * @param string $disk * @param string $path - * @param string|null $name + * @param ?string $name * @param array $options * @return bool */ @@ -1161,7 +1161,7 @@ public function hasMetadata($key, $value) * Assert that the mailable is from the given address. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function assertFrom($address, $name = null) @@ -1180,7 +1180,7 @@ public function assertFrom($address, $name = null) * Assert that the mailable has the given recipient. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function assertTo($address, $name = null) @@ -1199,7 +1199,7 @@ public function assertTo($address, $name = null) * Assert that the mailable has the given recipient. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function assertHasTo($address, $name = null) @@ -1211,7 +1211,7 @@ public function assertHasTo($address, $name = null) * Assert that the mailable has the given recipient. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function assertHasCc($address, $name = null) @@ -1230,7 +1230,7 @@ public function assertHasCc($address, $name = null) * Assert that the mailable has the given recipient. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function assertHasBcc($address, $name = null) @@ -1249,7 +1249,7 @@ public function assertHasBcc($address, $name = null) * Assert that the mailable has the given "reply to" address. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function assertHasReplyTo($address, $name = null) @@ -1268,7 +1268,7 @@ public function assertHasReplyTo($address, $name = null) * Format the mailable recipeint for display in an assertion message. * * @param object|array|string $address - * @param string|null $name + * @param ?string $name * @return string */ private function formatAssertionRecipient($address, $name = null) @@ -1449,7 +1449,7 @@ public function assertHasAttachedData($data, $name, array $options = []) * Assert the mailable has the given attachment from storage. * * @param string $path - * @param string|null $name + * @param ?string $name * @param array $options * @return $this */ @@ -1470,7 +1470,7 @@ public function assertHasAttachmentFromStorage($path, $name = null, array $optio * * @param string $disk * @param string $path - * @param string|null $name + * @param ?string $name * @param array $options * @return $this */ diff --git a/src/Illuminate/Mail/Mailables/Address.php b/src/Illuminate/Mail/Mailables/Address.php index be54a24a7413..7bdf2f15fbdf 100644 --- a/src/Illuminate/Mail/Mailables/Address.php +++ b/src/Illuminate/Mail/Mailables/Address.php @@ -14,7 +14,7 @@ class Address /** * The recipient's name. * - * @var string|null + * @var ?string */ public $name; @@ -22,7 +22,7 @@ class Address * Create a new address instance. * * @param string $address - * @param string|null $name + * @param ?string $name * @return void */ public function __construct(string $address, string $name = null) diff --git a/src/Illuminate/Mail/Mailables/Content.php b/src/Illuminate/Mail/Mailables/Content.php index 319cfefa744c..77b4419ff689 100644 --- a/src/Illuminate/Mail/Mailables/Content.php +++ b/src/Illuminate/Mail/Mailables/Content.php @@ -11,7 +11,7 @@ class Content /** * The Blade view that should be rendered for the mailable. * - * @var string|null + * @var ?string */ public $view; @@ -20,28 +20,28 @@ class Content * * Alternative syntax for "view". * - * @var string|null + * @var ?string */ public $html; /** * The Blade view that represents the text version of the message. * - * @var string|null + * @var ?string */ public $text; /** * The Blade view that represents the Markdown version of the message. * - * @var string|null + * @var ?string */ public $markdown; /** * The pre-rendered HTML of the message. * - * @var string|null + * @var ?string */ public $htmlString; @@ -55,12 +55,12 @@ class Content /** * Create a new content definition. * - * @param string|null $view - * @param string|null $html - * @param string|null $text - * @param string|null $markdown + * @param ?string $view + * @param ?string $html + * @param ?string $text + * @param ?string $markdown * @param array $with - * @param string|null $htmlString + * @param ?string $htmlString * * @named-arguments-supported */ diff --git a/src/Illuminate/Mail/Mailables/Envelope.php b/src/Illuminate/Mail/Mailables/Envelope.php index 7d6c4b1ee55f..f089b6f291ea 100644 --- a/src/Illuminate/Mail/Mailables/Envelope.php +++ b/src/Illuminate/Mail/Mailables/Envelope.php @@ -48,7 +48,7 @@ class Envelope /** * The subject of the message. * - * @var string|null + * @var ?string */ public $subject; @@ -81,7 +81,7 @@ class Envelope * @param array $cc * @param array $bcc * @param array $replyTo - * @param string|null $subject + * @param ?string $subject * @param array $tags * @param array $metadata * @param \Closure|array $using @@ -119,7 +119,7 @@ protected function normalizeAddresses($addresses) * Specify who the message will be "from". * * @param \Illuminate\Mail\Mailables\Address|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function from(Address|string $address, $name = null) @@ -133,7 +133,7 @@ public function from(Address|string $address, $name = null) * Add a "to" recipient to the message envelope. * * @param \Illuminate\Mail\Mailables\Address|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function to(Address|array|string $address, $name = null) @@ -149,7 +149,7 @@ public function to(Address|array|string $address, $name = null) * Add a "cc" recipient to the message envelope. * * @param \Illuminate\Mail\Mailables\Address|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function cc(Address|array|string $address, $name = null) @@ -165,7 +165,7 @@ public function cc(Address|array|string $address, $name = null) * Add a "bcc" recipient to the message envelope. * * @param \Illuminate\Mail\Mailables\Address|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function bcc(Address|array|string $address, $name = null) @@ -181,7 +181,7 @@ public function bcc(Address|array|string $address, $name = null) * Add a "reply to" recipient to the message envelope. * * @param \Illuminate\Mail\Mailables\Address|array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function replyTo(Address|array|string $address, $name = null) @@ -263,7 +263,7 @@ public function using(Closure $callback) * Determine if the message is from the given address. * * @param string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function isFrom(string $address, string $name = null) @@ -280,7 +280,7 @@ public function isFrom(string $address, string $name = null) * Determine if the message has the given address as a recipient. * * @param string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasTo(string $address, string $name = null) @@ -292,7 +292,7 @@ public function hasTo(string $address, string $name = null) * Determine if the message has the given address as a "cc" recipient. * * @param string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasCc(string $address, string $name = null) @@ -304,7 +304,7 @@ public function hasCc(string $address, string $name = null) * Determine if the message has the given address as a "bcc" recipient. * * @param string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasBcc(string $address, string $name = null) @@ -316,7 +316,7 @@ public function hasBcc(string $address, string $name = null) * Determine if the message has the given address as a "reply to" recipient. * * @param string $address - * @param string|null $name + * @param ?string $name * @return bool */ public function hasReplyTo(string $address, string $name = null) @@ -329,7 +329,7 @@ public function hasReplyTo(string $address, string $name = null) * * @param array $recipients * @param string $address - * @param string|null $name + * @param ?string $name * @return bool */ protected function hasRecipient(array $recipients, string $address, ?string $name = null) diff --git a/src/Illuminate/Mail/Mailables/Headers.php b/src/Illuminate/Mail/Mailables/Headers.php index 87cee52b4768..9680d5b107f4 100644 --- a/src/Illuminate/Mail/Mailables/Headers.php +++ b/src/Illuminate/Mail/Mailables/Headers.php @@ -12,7 +12,7 @@ class Headers /** * The message's message ID. * - * @var string|null + * @var ?string */ public $messageId; @@ -33,7 +33,7 @@ class Headers /** * Create a new instance of headers for a message. * - * @param string|null $messageId + * @param ?string $messageId * @param array $references * @param array $text * @return void diff --git a/src/Illuminate/Mail/Mailer.php b/src/Illuminate/Mail/Mailer.php index 4a253cf29a19..255b0c264cb1 100755 --- a/src/Illuminate/Mail/Mailer.php +++ b/src/Illuminate/Mail/Mailer.php @@ -107,7 +107,7 @@ public function __construct(string $name, Factory $views, TransportInterface $tr * Set the global from address and name. * * @param string $address - * @param string|null $name + * @param ?string $name * @return void */ public function alwaysFrom($address, $name = null) @@ -119,7 +119,7 @@ public function alwaysFrom($address, $name = null) * Set the global reply-to address and name. * * @param string $address - * @param string|null $name + * @param ?string $name * @return void */ public function alwaysReplyTo($address, $name = null) @@ -142,7 +142,7 @@ public function alwaysReturnPath($address) * Set the global to address and name. * * @param string $address - * @param string|null $name + * @param ?string $name * @return void */ public function alwaysTo($address, $name = null) @@ -401,7 +401,7 @@ protected function setGlobalToAndRemoveCcAndBcc($message) * Queue a new e-mail message for sending. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param string|null $queue + * @param ?string $queue * @return mixed * * @throws \InvalidArgumentException @@ -450,7 +450,7 @@ public function queueOn($queue, $view) * * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Contracts\Mail\Mailable $view - * @param string|null $queue + * @param ?string $queue * @return mixed * * @throws \InvalidArgumentException diff --git a/src/Illuminate/Mail/Message.php b/src/Illuminate/Mail/Message.php index 88e83eee8eaa..0eadbe483308 100755 --- a/src/Illuminate/Mail/Message.php +++ b/src/Illuminate/Mail/Message.php @@ -46,7 +46,7 @@ public function __construct(Email $message) * Add a "from" address to the message. * * @param string|array $address - * @param string|null $name + * @param ?string $name * @return $this */ public function from($address, $name = null) @@ -62,7 +62,7 @@ public function from($address, $name = null) * Set the "sender" of the message. * * @param string|array $address - * @param string|null $name + * @param ?string $name * @return $this */ public function sender($address, $name = null) @@ -91,7 +91,7 @@ public function returnPath($address) * Add a recipient to the message. * * @param string|array $address - * @param string|null $name + * @param ?string $name * @param bool $override * @return $this */ @@ -128,7 +128,7 @@ public function forgetTo() * Add a carbon copy to the message. * * @param string|array $address - * @param string|null $name + * @param ?string $name * @param bool $override * @return $this */ @@ -165,7 +165,7 @@ public function forgetCc() * Add a blind carbon copy to the message. * * @param string|array $address - * @param string|null $name + * @param ?string $name * @param bool $override * @return $this */ @@ -202,7 +202,7 @@ public function forgetBcc() * Add a "reply to" address to the message. * * @param string|array $address - * @param string|null $name + * @param ?string $name * @return $this */ public function replyTo($address, $name = null) @@ -368,7 +368,7 @@ function ($data) use ($file) { * * @param string $data * @param string $name - * @param string|null $contentType + * @param ?string $contentType * @return string */ public function embedData($data, $name, $contentType = null) diff --git a/src/Illuminate/Notifications/ChannelManager.php b/src/Illuminate/Notifications/ChannelManager.php index 8eb9c251024d..97093c1af33a 100644 --- a/src/Illuminate/Notifications/ChannelManager.php +++ b/src/Illuminate/Notifications/ChannelManager.php @@ -21,7 +21,7 @@ class ChannelManager extends Manager implements DispatcherContract, FactoryContr /** * The locale used when sending notifications. * - * @var string|null + * @var ?string */ protected $locale; @@ -57,7 +57,7 @@ public function sendNow($notifiables, $notification, array $channels = null) /** * Get a channel instance. * - * @param string|null $name + * @param ?string $name * @return mixed */ public function channel($name = null) diff --git a/src/Illuminate/Notifications/Console/NotificationTableCommand.php b/src/Illuminate/Notifications/Console/NotificationTableCommand.php index a0161ce6b7c9..5ecdb07d66e9 100644 --- a/src/Illuminate/Notifications/Console/NotificationTableCommand.php +++ b/src/Illuminate/Notifications/Console/NotificationTableCommand.php @@ -22,7 +22,7 @@ class NotificationTableCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Notifications/Messages/MailMessage.php b/src/Illuminate/Notifications/Messages/MailMessage.php index d696c8a84a98..95dea55489b2 100644 --- a/src/Illuminate/Notifications/Messages/MailMessage.php +++ b/src/Illuminate/Notifications/Messages/MailMessage.php @@ -31,14 +31,14 @@ class MailMessage extends SimpleMessage implements Renderable /** * The Markdown template to render (if applicable). * - * @var string|null + * @var ?string */ public $markdown = 'notifications::email'; /** * The current theme being used when generating emails. * - * @var string|null + * @var ?string */ public $theme; @@ -176,7 +176,7 @@ public function theme($theme) * Set the from address for the mail message. * * @param string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function from($address, $name = null) @@ -190,7 +190,7 @@ public function from($address, $name = null) * Set the "reply to" address of the message. * * @param array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function replyTo($address, $name = null) @@ -208,7 +208,7 @@ public function replyTo($address, $name = null) * Set the cc address for the mail message. * * @param array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function cc($address, $name = null) @@ -226,7 +226,7 @@ public function cc($address, $name = null) * Set the bcc address for the mail message. * * @param array|string $address - * @param string|null $name + * @param ?string $name * @return $this */ public function bcc($address, $name = null) diff --git a/src/Illuminate/Notifications/Notification.php b/src/Illuminate/Notifications/Notification.php index 3af22645e478..508ed3d1fee8 100644 --- a/src/Illuminate/Notifications/Notification.php +++ b/src/Illuminate/Notifications/Notification.php @@ -18,7 +18,7 @@ class Notification /** * The locale to be used when sending the notification. * - * @var string|null + * @var ?string */ public $locale; diff --git a/src/Illuminate/Notifications/NotificationSender.php b/src/Illuminate/Notifications/NotificationSender.php index 698d19dcb95f..0c4c487d079c 100644 --- a/src/Illuminate/Notifications/NotificationSender.php +++ b/src/Illuminate/Notifications/NotificationSender.php @@ -40,7 +40,7 @@ class NotificationSender /** * The locale to be used when sending notifications. * - * @var string|null + * @var ?string */ protected $locale; @@ -50,7 +50,7 @@ class NotificationSender * @param \Illuminate\Notifications\ChannelManager $manager * @param \Illuminate\Contracts\Bus\Dispatcher $bus * @param \Illuminate\Contracts\Events\Dispatcher $events - * @param string|null $locale + * @param ?string $locale * @return void */ public function __construct($manager, $bus, $events, $locale = null) @@ -115,7 +115,7 @@ public function sendNow($notifiables, $notification, array $channels = null) * * @param mixed $notifiable * @param mixed $notification - * @return string|null + * @return ?string */ protected function preferredLocale($notifiable, $notification) { diff --git a/src/Illuminate/Pagination/AbstractCursorPaginator.php b/src/Illuminate/Pagination/AbstractCursorPaginator.php index e6700789c176..d67d50e07b94 100644 --- a/src/Illuminate/Pagination/AbstractCursorPaginator.php +++ b/src/Illuminate/Pagination/AbstractCursorPaginator.php @@ -54,7 +54,7 @@ abstract class AbstractCursorPaginator implements Htmlable /** * The URL fragment to add to all URLs. * - * @var string|null + * @var ?string */ protected $fragment; @@ -119,7 +119,7 @@ public function url($cursor) /** * Get the URL for the previous page. * - * @return string|null + * @return ?string */ public function previousPageUrl() { @@ -133,7 +133,7 @@ public function previousPageUrl() /** * The URL for the next page, or null. * - * @return string|null + * @return ?string */ public function nextPageUrl() { @@ -233,7 +233,7 @@ public function getParametersForItem($item) * * @param \ArrayAccess|\stdClass $item * @param string $parameterName - * @return string|null + * @return ?string */ protected function getPivotParameterForItem($item, $parameterName) { @@ -266,7 +266,7 @@ protected function ensureParameterIsPrimitive($parameter) /** * Get / set the URL fragment to be appended to URLs. * - * @param string|null $fragment + * @param ?string $fragment * @return $this|string|null */ public function fragment($fragment = null) @@ -284,7 +284,7 @@ public function fragment($fragment = null) * Add a set of query string values to the paginator. * * @param array|string|null $key - * @param string|null $value + * @param ?string $value * @return $this */ public function appends($key, $value = null) @@ -476,7 +476,7 @@ public function setPath($path) /** * Get the base path for paginator generated URLs. * - * @return string|null + * @return ?string */ public function path() { diff --git a/src/Illuminate/Pagination/AbstractPaginator.php b/src/Illuminate/Pagination/AbstractPaginator.php index a4979840f3b3..7e01b2974af2 100644 --- a/src/Illuminate/Pagination/AbstractPaginator.php +++ b/src/Illuminate/Pagination/AbstractPaginator.php @@ -55,7 +55,7 @@ abstract class AbstractPaginator implements Htmlable /** * The URL fragment to add to all URLs. * - * @var string|null + * @var ?string */ protected $fragment; @@ -136,7 +136,7 @@ protected function isValidPageNumber($page) /** * Get the URL for the previous page. * - * @return string|null + * @return ?string */ public function previousPageUrl() { @@ -189,7 +189,7 @@ public function url($page) /** * Get / set the URL fragment to be appended to URLs. * - * @param string|null $fragment + * @param ?string $fragment * @return $this|string|null */ public function fragment($fragment = null) @@ -207,7 +207,7 @@ public function fragment($fragment = null) * Add a set of query string values to the paginator. * * @param array|string|null $key - * @param string|null $value + * @param ?string $value * @return $this */ public function appends($key, $value = null) @@ -462,7 +462,7 @@ public function onEachSide($count) /** * Get the base path for paginator generated URLs. * - * @return string|null + * @return ?string */ public function path() { diff --git a/src/Illuminate/Pagination/Cursor.php b/src/Illuminate/Pagination/Cursor.php index 1d622808bf07..7a68e29747b2 100644 --- a/src/Illuminate/Pagination/Cursor.php +++ b/src/Illuminate/Pagination/Cursor.php @@ -37,7 +37,7 @@ public function __construct(array $parameters, $pointsToNextItems = true) * Get the given parameter from the cursor. * * @param string $parameterName - * @return string|null + * @return ?string * * @throws \UnexpectedValueException */ @@ -108,7 +108,7 @@ public function encode() /** * Get a cursor instance from the encoded string representation. * - * @param string|null $encodedString + * @param ?string $encodedString * @return static|null */ public static function fromEncoded($encodedString) diff --git a/src/Illuminate/Pagination/CursorPaginator.php b/src/Illuminate/Pagination/CursorPaginator.php index 4c0a8965c03d..a879beceafd6 100644 --- a/src/Illuminate/Pagination/CursorPaginator.php +++ b/src/Illuminate/Pagination/CursorPaginator.php @@ -66,7 +66,7 @@ protected function setItems($items) /** * Render the paginator using the given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return \Illuminate\Contracts\Support\Htmlable */ @@ -78,7 +78,7 @@ public function links($view = null, $data = []) /** * Render the paginator using the given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return \Illuminate\Contracts\Support\Htmlable */ diff --git a/src/Illuminate/Pagination/LengthAwarePaginator.php b/src/Illuminate/Pagination/LengthAwarePaginator.php index 8d3e0ab77fbe..f0df465c25cb 100644 --- a/src/Illuminate/Pagination/LengthAwarePaginator.php +++ b/src/Illuminate/Pagination/LengthAwarePaginator.php @@ -70,7 +70,7 @@ protected function setCurrentPage($currentPage, $pageName) /** * Render the paginator using the given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return \Illuminate\Contracts\Support\Htmlable */ @@ -82,7 +82,7 @@ public function links($view = null, $data = []) /** * Render the paginator using the given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return \Illuminate\Contracts\Support\Htmlable */ @@ -165,7 +165,7 @@ public function hasMorePages() /** * Get the URL for the next page. * - * @return string|null + * @return ?string */ public function nextPageUrl() { diff --git a/src/Illuminate/Pagination/Paginator.php b/src/Illuminate/Pagination/Paginator.php index d307ee9ff3f3..0f5ba3a566cc 100644 --- a/src/Illuminate/Pagination/Paginator.php +++ b/src/Illuminate/Pagination/Paginator.php @@ -75,7 +75,7 @@ protected function setItems($items) /** * Get the URL for the next page. * - * @return string|null + * @return ?string */ public function nextPageUrl() { @@ -87,7 +87,7 @@ public function nextPageUrl() /** * Render the paginator using the given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return string */ @@ -99,7 +99,7 @@ public function links($view = null, $data = []) /** * Render the paginator using the given view. * - * @param string|null $view + * @param ?string $view * @param array $data * @return \Illuminate\Contracts\Support\Htmlable */ diff --git a/src/Illuminate/Pipeline/Hub.php b/src/Illuminate/Pipeline/Hub.php index 91e9b3f306b8..ea52ef2191d9 100644 --- a/src/Illuminate/Pipeline/Hub.php +++ b/src/Illuminate/Pipeline/Hub.php @@ -60,7 +60,7 @@ public function pipeline($name, Closure $callback) * Send an object through one of the available pipelines. * * @param mixed $object - * @param string|null $pipeline + * @param ?string $pipeline * @return mixed */ public function pipe($object, $pipeline = null) diff --git a/src/Illuminate/Queue/BeanstalkdQueue.php b/src/Illuminate/Queue/BeanstalkdQueue.php index 3f1e0a5d6a96..e726ecf753ea 100755 --- a/src/Illuminate/Queue/BeanstalkdQueue.php +++ b/src/Illuminate/Queue/BeanstalkdQueue.php @@ -63,7 +63,7 @@ public function __construct(Pheanstalk $pheanstalk, /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null) @@ -78,7 +78,7 @@ public function size($queue = null) * * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function push($job, $data = '', $queue = null) @@ -98,7 +98,7 @@ function ($payload, $queue) { * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -115,7 +115,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null) @@ -141,7 +141,7 @@ function ($payload, $queue, $delay) { * * @param array $jobs * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return void */ public function bulk($jobs, $data = '', $queue = null) @@ -158,7 +158,7 @@ public function bulk($jobs, $data = '', $queue = null) /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null) @@ -191,7 +191,7 @@ public function deleteMessage($queue, $id) /** * Get the queue or return the default. * - * @param string|null $queue + * @param ?string $queue * @return string */ public function getQueue($queue) diff --git a/src/Illuminate/Queue/Capsule/Manager.php b/src/Illuminate/Queue/Capsule/Manager.php index c5ceb872666f..45c43ea3a440 100644 --- a/src/Illuminate/Queue/Capsule/Manager.php +++ b/src/Illuminate/Queue/Capsule/Manager.php @@ -77,7 +77,7 @@ protected function registerConnectors() /** * Get a connection instance from the global manager. * - * @param string|null $connection + * @param ?string $connection * @return \Illuminate\Contracts\Queue\Queue */ public static function connection($connection = null) @@ -90,8 +90,8 @@ public static function connection($connection = null) * * @param string $job * @param mixed $data - * @param string|null $queue - * @param string|null $connection + * @param ?string $queue + * @param ?string $connection * @return mixed */ public static function push($job, $data = '', $queue = null, $connection = null) @@ -104,8 +104,8 @@ public static function push($job, $data = '', $queue = null, $connection = null) * * @param array $jobs * @param mixed $data - * @param string|null $queue - * @param string|null $connection + * @param ?string $queue + * @param ?string $connection * @return mixed */ public static function bulk($jobs, $data = '', $queue = null, $connection = null) @@ -119,8 +119,8 @@ public static function bulk($jobs, $data = '', $queue = null, $connection = null * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job * @param mixed $data - * @param string|null $queue - * @param string|null $connection + * @param ?string $queue + * @param ?string $connection * @return mixed */ public static function later($delay, $job, $data = '', $queue = null, $connection = null) @@ -131,7 +131,7 @@ public static function later($delay, $job, $data = '', $queue = null, $connectio /** * Get a registered connection instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Queue\Queue */ public function getConnection($name = null) diff --git a/src/Illuminate/Queue/Connectors/RedisConnector.php b/src/Illuminate/Queue/Connectors/RedisConnector.php index d442eea99f11..1126db027f16 100644 --- a/src/Illuminate/Queue/Connectors/RedisConnector.php +++ b/src/Illuminate/Queue/Connectors/RedisConnector.php @@ -25,7 +25,7 @@ class RedisConnector implements ConnectorInterface * Create a new Redis queue connector instance. * * @param \Illuminate\Contracts\Redis\Factory $redis - * @param string|null $connection + * @param ?string $connection * @return void */ public function __construct(Redis $redis, $connection = null) diff --git a/src/Illuminate/Queue/Console/BatchesTableCommand.php b/src/Illuminate/Queue/Console/BatchesTableCommand.php index c1ce2d9bb474..14e6d8a2b64f 100644 --- a/src/Illuminate/Queue/Console/BatchesTableCommand.php +++ b/src/Illuminate/Queue/Console/BatchesTableCommand.php @@ -22,7 +22,7 @@ class BatchesTableCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/ClearCommand.php b/src/Illuminate/Queue/Console/ClearCommand.php index 8b48c3e0ea32..cfdffb1b312a 100644 --- a/src/Illuminate/Queue/Console/ClearCommand.php +++ b/src/Illuminate/Queue/Console/ClearCommand.php @@ -27,7 +27,7 @@ class ClearCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/FailedTableCommand.php b/src/Illuminate/Queue/Console/FailedTableCommand.php index f3f20ccaf19b..bd89a7206082 100644 --- a/src/Illuminate/Queue/Console/FailedTableCommand.php +++ b/src/Illuminate/Queue/Console/FailedTableCommand.php @@ -22,7 +22,7 @@ class FailedTableCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/FlushFailedCommand.php b/src/Illuminate/Queue/Console/FlushFailedCommand.php index 86a5d16c87a5..5ed9d37979f4 100644 --- a/src/Illuminate/Queue/Console/FlushFailedCommand.php +++ b/src/Illuminate/Queue/Console/FlushFailedCommand.php @@ -20,7 +20,7 @@ class FlushFailedCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/ForgetFailedCommand.php b/src/Illuminate/Queue/Console/ForgetFailedCommand.php index f4625e113053..dc25a82c62eb 100644 --- a/src/Illuminate/Queue/Console/ForgetFailedCommand.php +++ b/src/Illuminate/Queue/Console/ForgetFailedCommand.php @@ -20,7 +20,7 @@ class ForgetFailedCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/ListFailedCommand.php b/src/Illuminate/Queue/Console/ListFailedCommand.php index 4ccaf30ea242..ea39d3b4f3ed 100644 --- a/src/Illuminate/Queue/Console/ListFailedCommand.php +++ b/src/Illuminate/Queue/Console/ListFailedCommand.php @@ -21,7 +21,7 @@ class ListFailedCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ @@ -90,7 +90,7 @@ protected function parseFailedJob(array $failed) * Extract the failed job name from payload. * * @param string $payload - * @return string|null + * @return ?string */ private function extractJobName($payload) { @@ -107,7 +107,7 @@ private function extractJobName($payload) * Match the job name from the payload. * * @param array $payload - * @return string|null + * @return ?string */ protected function matchJobName($payload) { diff --git a/src/Illuminate/Queue/Console/ListenCommand.php b/src/Illuminate/Queue/Console/ListenCommand.php index 2952c627959f..568b8f300039 100755 --- a/src/Illuminate/Queue/Console/ListenCommand.php +++ b/src/Illuminate/Queue/Console/ListenCommand.php @@ -33,7 +33,7 @@ class ListenCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/MonitorCommand.php b/src/Illuminate/Queue/Console/MonitorCommand.php index 527d6a88c5a3..b127487c21db 100644 --- a/src/Illuminate/Queue/Console/MonitorCommand.php +++ b/src/Illuminate/Queue/Console/MonitorCommand.php @@ -26,7 +26,7 @@ class MonitorCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/PruneBatchesCommand.php b/src/Illuminate/Queue/Console/PruneBatchesCommand.php index 5e2d32337055..cfda2dd23135 100644 --- a/src/Illuminate/Queue/Console/PruneBatchesCommand.php +++ b/src/Illuminate/Queue/Console/PruneBatchesCommand.php @@ -27,7 +27,7 @@ class PruneBatchesCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/PruneFailedJobsCommand.php b/src/Illuminate/Queue/Console/PruneFailedJobsCommand.php index 61f7903b5f11..cbee0b8aa60b 100644 --- a/src/Illuminate/Queue/Console/PruneFailedJobsCommand.php +++ b/src/Illuminate/Queue/Console/PruneFailedJobsCommand.php @@ -23,7 +23,7 @@ class PruneFailedJobsCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/RestartCommand.php b/src/Illuminate/Queue/Console/RestartCommand.php index 6dfbcb1fa69a..7544d4429aaf 100644 --- a/src/Illuminate/Queue/Console/RestartCommand.php +++ b/src/Illuminate/Queue/Console/RestartCommand.php @@ -24,7 +24,7 @@ class RestartCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/RetryBatchCommand.php b/src/Illuminate/Queue/Console/RetryBatchCommand.php index b99e00206866..e48aeaa87884 100644 --- a/src/Illuminate/Queue/Console/RetryBatchCommand.php +++ b/src/Illuminate/Queue/Console/RetryBatchCommand.php @@ -21,7 +21,7 @@ class RetryBatchCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/RetryCommand.php b/src/Illuminate/Queue/Console/RetryCommand.php index ef6a5ed49de3..61840c5b1332 100644 --- a/src/Illuminate/Queue/Console/RetryCommand.php +++ b/src/Illuminate/Queue/Console/RetryCommand.php @@ -28,7 +28,7 @@ class RetryCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/TableCommand.php b/src/Illuminate/Queue/Console/TableCommand.php index aa25dafeb448..9d7fd025db77 100644 --- a/src/Illuminate/Queue/Console/TableCommand.php +++ b/src/Illuminate/Queue/Console/TableCommand.php @@ -22,7 +22,7 @@ class TableCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/Console/WorkCommand.php b/src/Illuminate/Queue/Console/WorkCommand.php index abf580fd9bae..4ef4bf0c96dd 100644 --- a/src/Illuminate/Queue/Console/WorkCommand.php +++ b/src/Illuminate/Queue/Console/WorkCommand.php @@ -47,7 +47,7 @@ class WorkCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Queue/DatabaseQueue.php b/src/Illuminate/Queue/DatabaseQueue.php index bce025c53340..641cbd0bfd6d 100644 --- a/src/Illuminate/Queue/DatabaseQueue.php +++ b/src/Illuminate/Queue/DatabaseQueue.php @@ -67,7 +67,7 @@ public function __construct(Connection $database, /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null) @@ -82,7 +82,7 @@ public function size($queue = null) * * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function push($job, $data = '', $queue = null) @@ -102,7 +102,7 @@ function ($payload, $queue) { * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -117,7 +117,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return void */ public function later($delay, $job, $data = '', $queue = null) @@ -138,7 +138,7 @@ function ($payload, $queue, $delay) { * * @param array $jobs * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function bulk($jobs, $data = '', $queue = null) @@ -174,7 +174,7 @@ public function release($queue, $job, $delay) /** * Push a raw payload to the database with a given delay of (n) seconds. * - * @param string|null $queue + * @param ?string $queue * @param string $payload * @param \DateTimeInterface|\DateInterval|int $delay * @param int $attempts @@ -190,7 +190,7 @@ protected function pushToDatabase($queue, $payload, $delay = 0, $attempts = 0) /** * Create an array to insert for the given job. * - * @param string|null $queue + * @param ?string $queue * @param string $payload * @param int $availableAt * @param int $attempts @@ -211,7 +211,7 @@ protected function buildDatabaseRecord($queue, $payload, $availableAt, $attempts /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null * * @throws \Throwable @@ -230,7 +230,7 @@ public function pop($queue = null) /** * Get the next available job for the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Queue\Jobs\DatabaseJobRecord|null */ protected function getNextAvailableJob($queue) @@ -393,7 +393,7 @@ public function clear($queue) /** * Get the queue or return the default. * - * @param string|null $queue + * @param ?string $queue * @return string */ public function getQueue($queue) diff --git a/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php b/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php index c676faab5a30..4e3d941c6631 100644 --- a/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php +++ b/src/Illuminate/Queue/Failed/DatabaseUuidFailedJobProvider.php @@ -51,7 +51,7 @@ public function __construct(ConnectionResolverInterface $resolver, $database, $t * @param string $queue * @param string $payload * @param \Throwable $exception - * @return string|null + * @return ?string */ public function log($connection, $queue, $payload, $exception) { diff --git a/src/Illuminate/Queue/InvalidPayloadException.php b/src/Illuminate/Queue/InvalidPayloadException.php index 788fa660db8f..4bc6727abaf7 100644 --- a/src/Illuminate/Queue/InvalidPayloadException.php +++ b/src/Illuminate/Queue/InvalidPayloadException.php @@ -9,7 +9,7 @@ class InvalidPayloadException extends InvalidArgumentException /** * Create a new exception instance. * - * @param string|null $message + * @param ?string $message * @return void */ public function __construct($message = null) diff --git a/src/Illuminate/Queue/Jobs/Job.php b/src/Illuminate/Queue/Jobs/Job.php index d5464946b7ee..3adec3692502 100755 --- a/src/Illuminate/Queue/Jobs/Job.php +++ b/src/Illuminate/Queue/Jobs/Job.php @@ -77,7 +77,7 @@ abstract public function getRawBody(); /** * Get the UUID of the job. * - * @return string|null + * @return ?string */ public function uuid() { diff --git a/src/Illuminate/Queue/Jobs/RedisJob.php b/src/Illuminate/Queue/Jobs/RedisJob.php index 1486ebcf9d9c..8cdb049abc99 100644 --- a/src/Illuminate/Queue/Jobs/RedisJob.php +++ b/src/Illuminate/Queue/Jobs/RedisJob.php @@ -110,7 +110,7 @@ public function attempts() /** * Get the job identifier. * - * @return string|null + * @return ?string */ public function getJobId() { diff --git a/src/Illuminate/Queue/ListenerOptions.php b/src/Illuminate/Queue/ListenerOptions.php index d71989d90294..be7ef18321f7 100644 --- a/src/Illuminate/Queue/ListenerOptions.php +++ b/src/Illuminate/Queue/ListenerOptions.php @@ -15,7 +15,7 @@ class ListenerOptions extends WorkerOptions * Create a new listener options instance. * * @param string $name - * @param string|null $environment + * @param ?string $environment * @param int|int[] $backoff * @param int $memory * @param int $timeout diff --git a/src/Illuminate/Queue/NullQueue.php b/src/Illuminate/Queue/NullQueue.php index 10493a1b699d..6e7cd5af9c72 100644 --- a/src/Illuminate/Queue/NullQueue.php +++ b/src/Illuminate/Queue/NullQueue.php @@ -9,7 +9,7 @@ class NullQueue extends Queue implements QueueContract /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null) @@ -22,7 +22,7 @@ public function size($queue = null) * * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function push($job, $data = '', $queue = null) @@ -34,7 +34,7 @@ public function push($job, $data = '', $queue = null) * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -49,7 +49,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null) @@ -60,7 +60,7 @@ public function later($delay, $job, $data = '', $queue = null) /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null) diff --git a/src/Illuminate/Queue/Queue.php b/src/Illuminate/Queue/Queue.php index 033494773a16..8f4a4329e758 100755 --- a/src/Illuminate/Queue/Queue.php +++ b/src/Illuminate/Queue/Queue.php @@ -76,7 +76,7 @@ public function laterOn($queue, $delay, $job, $data = '') * * @param array $jobs * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return void */ public function bulk($jobs, $data = '', $queue = null) diff --git a/src/Illuminate/Queue/QueueManager.php b/src/Illuminate/Queue/QueueManager.php index 33f1cd1652e9..c6a95a1792de 100755 --- a/src/Illuminate/Queue/QueueManager.php +++ b/src/Illuminate/Queue/QueueManager.php @@ -113,7 +113,7 @@ public function stopping($callback) /** * Determine if the driver is connected. * - * @param string|null $name + * @param ?string $name * @return bool */ public function connected($name = null) @@ -124,7 +124,7 @@ public function connected($name = null) /** * Resolve a queue connection instance. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Queue\Queue */ public function connection($name = null) @@ -244,7 +244,7 @@ public function setDefaultDriver($name) /** * Get the full name for the given connection. * - * @param string|null $connection + * @param ?string $connection * @return string */ public function getName($connection = null) diff --git a/src/Illuminate/Queue/RedisQueue.php b/src/Illuminate/Queue/RedisQueue.php index 4c376a81a2c0..28f78413706a 100644 --- a/src/Illuminate/Queue/RedisQueue.php +++ b/src/Illuminate/Queue/RedisQueue.php @@ -59,7 +59,7 @@ class RedisQueue extends Queue implements QueueContract, ClearableQueue * * @param \Illuminate\Contracts\Redis\Factory $redis * @param string $default - * @param string|null $connection + * @param ?string $connection * @param int $retryAfter * @param int|null $blockFor * @param bool $dispatchAfterCommit @@ -86,7 +86,7 @@ public function __construct(Redis $redis, /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null) @@ -103,7 +103,7 @@ public function size($queue = null) * * @param array $jobs * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return void */ public function bulk($jobs, $data = '', $queue = null) @@ -126,7 +126,7 @@ public function bulk($jobs, $data = '', $queue = null) * * @param object|string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function push($job, $data = '', $queue = null) @@ -146,7 +146,7 @@ function ($payload, $queue) { * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -166,7 +166,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * @param \DateTimeInterface|\DateInterval|int $delay * @param object|string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null) @@ -187,7 +187,7 @@ function ($payload, $queue, $delay) { * * @param \DateTimeInterface|\DateInterval|int $delay * @param string $payload - * @param string|null $queue + * @param ?string $queue * @return mixed */ protected function laterRaw($delay, $payload, $queue = null) @@ -218,7 +218,7 @@ protected function createPayloadArray($job, $queue, $data = '') /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null) @@ -352,7 +352,7 @@ protected function getRandomId() /** * Get the queue or return the default. * - * @param string|null $queue + * @param ?string $queue * @return string */ public function getQueue($queue) diff --git a/src/Illuminate/Queue/SqsQueue.php b/src/Illuminate/Queue/SqsQueue.php index 38849f9978e8..cd1d04c68286 100755 --- a/src/Illuminate/Queue/SqsQueue.php +++ b/src/Illuminate/Queue/SqsQueue.php @@ -64,7 +64,7 @@ public function __construct(SqsClient $sqs, /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null) @@ -84,7 +84,7 @@ public function size($queue = null) * * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function push($job, $data = '', $queue = null) @@ -104,7 +104,7 @@ function ($payload, $queue) { * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -121,7 +121,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null) @@ -146,7 +146,7 @@ function ($payload, $queue, $delay) { * * @param array $jobs * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return void */ public function bulk($jobs, $data = '', $queue = null) @@ -163,7 +163,7 @@ public function bulk($jobs, $data = '', $queue = null) /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null) @@ -199,7 +199,7 @@ public function clear($queue) /** * Get the queue or return the default. * - * @param string|null $queue + * @param ?string $queue * @return string */ public function getQueue($queue) diff --git a/src/Illuminate/Queue/SyncQueue.php b/src/Illuminate/Queue/SyncQueue.php index f416b0232fd3..3b624b537402 100755 --- a/src/Illuminate/Queue/SyncQueue.php +++ b/src/Illuminate/Queue/SyncQueue.php @@ -15,7 +15,7 @@ class SyncQueue extends Queue implements QueueContract /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null) @@ -28,7 +28,7 @@ public function size($queue = null) * * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed * * @throws \Throwable @@ -124,7 +124,7 @@ protected function handleException(Job $queueJob, Throwable $e) * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -139,7 +139,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * @param \DateTimeInterface|\DateInterval|int $delay * @param string $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null) @@ -150,7 +150,7 @@ public function later($delay, $job, $data = '', $queue = null) /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null) diff --git a/src/Illuminate/Redis/Connections/Connection.php b/src/Illuminate/Redis/Connections/Connection.php index e3e55e94be33..4e0118f9b38f 100644 --- a/src/Illuminate/Redis/Connections/Connection.php +++ b/src/Illuminate/Redis/Connections/Connection.php @@ -25,7 +25,7 @@ abstract class Connection /** * The Redis connection name. * - * @var string|null + * @var ?string */ protected $name; @@ -149,7 +149,7 @@ public function listen(Closure $callback) /** * Get the connection name. * - * @return string|null + * @return ?string */ public function getName() { diff --git a/src/Illuminate/Redis/Connections/PhpRedisConnection.php b/src/Illuminate/Redis/Connections/PhpRedisConnection.php index d4c1f6762e6b..3bbb5f1295d6 100644 --- a/src/Illuminate/Redis/Connections/PhpRedisConnection.php +++ b/src/Illuminate/Redis/Connections/PhpRedisConnection.php @@ -48,7 +48,7 @@ public function __construct($client, callable $connector = null, array $config = * Returns the value of the given key. * * @param string $key - * @return string|null + * @return ?string */ public function get($key) { @@ -75,9 +75,9 @@ public function mget(array $keys) * * @param string $key * @param mixed $value - * @param string|null $expireResolution + * @param ?string $expireResolution * @param int|null $expireTTL - * @param string|null $flag + * @param ?string $flag * @return bool */ public function set($key, $value, $expireResolution = null, $expireTTL = null, $flag = null) diff --git a/src/Illuminate/Redis/RedisManager.php b/src/Illuminate/Redis/RedisManager.php index e869741856c6..9300cb1eaa1e 100644 --- a/src/Illuminate/Redis/RedisManager.php +++ b/src/Illuminate/Redis/RedisManager.php @@ -76,7 +76,7 @@ public function __construct($app, $driver, array $config) /** * Get a Redis connection by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Redis\Connections\Connection */ public function connection($name = null) @@ -95,7 +95,7 @@ public function connection($name = null) /** * Resolve the given connection by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Redis\Connections\Connection * * @throws \InvalidArgumentException @@ -240,7 +240,7 @@ public function setDriver($driver) /** * Disconnect the given connection and remove from local cache. * - * @param string|null $name + * @param ?string $name * @return void */ public function purge($name = null) diff --git a/src/Illuminate/Routing/CompiledRouteCollection.php b/src/Illuminate/Routing/CompiledRouteCollection.php index 2b693f85f25a..2ee9f01d01d2 100644 --- a/src/Illuminate/Routing/CompiledRouteCollection.php +++ b/src/Illuminate/Routing/CompiledRouteCollection.php @@ -166,7 +166,7 @@ protected function requestWithoutTrailingSlash(Request $request) /** * Get routes from the collection by method. * - * @param string|null $method + * @param ?string $method * @return \Illuminate\Routing\Route[] */ public function get($method = null) diff --git a/src/Illuminate/Routing/Console/ControllerMakeCommand.php b/src/Illuminate/Routing/Console/ControllerMakeCommand.php index 6ba0a38863bc..87f3942efe6b 100755 --- a/src/Illuminate/Routing/Console/ControllerMakeCommand.php +++ b/src/Illuminate/Routing/Console/ControllerMakeCommand.php @@ -25,7 +25,7 @@ class ControllerMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Routing/Console/MiddlewareMakeCommand.php b/src/Illuminate/Routing/Console/MiddlewareMakeCommand.php index 11bec0ef98d5..6097c792503b 100644 --- a/src/Illuminate/Routing/Console/MiddlewareMakeCommand.php +++ b/src/Illuminate/Routing/Console/MiddlewareMakeCommand.php @@ -23,7 +23,7 @@ class MiddlewareMakeCommand extends GeneratorCommand * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Routing/ImplicitRouteBinding.php b/src/Illuminate/Routing/ImplicitRouteBinding.php index d9978af3193a..ba9d4aa9a3ac 100644 --- a/src/Illuminate/Routing/ImplicitRouteBinding.php +++ b/src/Illuminate/Routing/ImplicitRouteBinding.php @@ -103,7 +103,7 @@ protected static function resolveBackedEnumsForRoute($route, $parameters) * * @param string $name * @param array $parameters - * @return string|null + * @return ?string */ protected static function getParameterName($name, $parameters) { diff --git a/src/Illuminate/Routing/Middleware/ValidateSignature.php b/src/Illuminate/Routing/Middleware/ValidateSignature.php index 63841b28ce08..2a3b160a0400 100644 --- a/src/Illuminate/Routing/Middleware/ValidateSignature.php +++ b/src/Illuminate/Routing/Middleware/ValidateSignature.php @@ -21,7 +21,7 @@ class ValidateSignature * * @param \Illuminate\Http\Request $request * @param \Closure $next - * @param string|null $relative + * @param ?string $relative * @return \Illuminate\Http\Response * * @throws \Illuminate\Routing\Exceptions\InvalidSignatureException diff --git a/src/Illuminate/Routing/Redirector.php b/src/Illuminate/Routing/Redirector.php index 362e288a3ecc..f7edc7e8990b 100755 --- a/src/Illuminate/Routing/Redirector.php +++ b/src/Illuminate/Routing/Redirector.php @@ -254,7 +254,7 @@ public function setSession(SessionStore $session) /** * Get the "intended" URL from the session. * - * @return string|null + * @return ?string */ public function getIntendedUrl() { diff --git a/src/Illuminate/Routing/ResponseFactory.php b/src/Illuminate/Routing/ResponseFactory.php index 33ea06f937af..94cef5c9ed44 100644 --- a/src/Illuminate/Routing/ResponseFactory.php +++ b/src/Illuminate/Routing/ResponseFactory.php @@ -133,9 +133,9 @@ public function stream($callback, $status = 200, array $headers = []) * Create a new streamed response instance as a file download. * * @param callable $callback - * @param string|null $name + * @param ?string $name * @param array $headers - * @param string|null $disposition + * @param ?string $disposition * @return \Symfony\Component\HttpFoundation\StreamedResponse */ public function streamDownload($callback, $name = null, array $headers = [], $disposition = 'attachment') @@ -165,9 +165,9 @@ public function streamDownload($callback, $name = null, array $headers = [], $di * Create a new file download response. * * @param \SplFileInfo|string $file - * @param string|null $name + * @param ?string $name * @param array $headers - * @param string|null $disposition + * @param ?string $disposition * @return \Symfony\Component\HttpFoundation\BinaryFileResponse */ public function download($file, $name = null, array $headers = [], $disposition = 'attachment') diff --git a/src/Illuminate/Routing/Route.php b/src/Illuminate/Routing/Route.php index f14f769e2108..5d93a4fc72fa 100755 --- a/src/Illuminate/Routing/Route.php +++ b/src/Illuminate/Routing/Route.php @@ -415,8 +415,8 @@ public function parameter($name, $default = null) * Get original value of a given parameter from the route. * * @param string $name - * @param string|null $default - * @return string|null + * @param ?string $default + * @return ?string */ public function originalParameter($name, $default = null) { @@ -537,7 +537,7 @@ public function signatureParameters($conditions = []) * Get the binding field for the given parameter. * * @param string|int $parameter - * @return string|null + * @return ?string */ public function bindingFieldFor($parameter) { @@ -640,7 +640,7 @@ public function setDefaults(array $defaults) * Set a regular expression requirement on the route. * * @param array|string $name - * @param string|null $expression + * @param ?string $expression * @return $this */ public function where($name, $expression = null) @@ -747,7 +747,7 @@ public function secure() /** * Get or set the domain for the route. * - * @param string|null $domain + * @param ?string $domain * @return $this|string|null */ public function domain($domain = null) @@ -770,7 +770,7 @@ public function domain($domain = null) /** * Get the domain defined for the route. * - * @return string|null + * @return ?string */ public function getDomain() { @@ -781,7 +781,7 @@ public function getDomain() /** * Get the prefix of the route instance. * - * @return string|null + * @return ?string */ public function getPrefix() { @@ -859,7 +859,7 @@ protected function parseUri($uri) /** * Get the name of the route instance. * - * @return string|null + * @return ?string */ public function getName() { @@ -960,7 +960,7 @@ public function getActionMethod() /** * Get the action array or one of its properties for the route. * - * @param string|null $key + * @param ?string $key * @return mixed */ public function getAction($key = null) diff --git a/src/Illuminate/Routing/RouteCollection.php b/src/Illuminate/Routing/RouteCollection.php index 7e6f98bca055..7c0a7caf6a93 100644 --- a/src/Illuminate/Routing/RouteCollection.php +++ b/src/Illuminate/Routing/RouteCollection.php @@ -165,7 +165,7 @@ public function match(Request $request) /** * Get routes from the collection by method. * - * @param string|null $method + * @param ?string $method * @return \Illuminate\Routing\Route[] */ public function get($method = null) diff --git a/src/Illuminate/Routing/RouteCollectionInterface.php b/src/Illuminate/Routing/RouteCollectionInterface.php index 8e25d0fa1056..ceaca658bb6e 100644 --- a/src/Illuminate/Routing/RouteCollectionInterface.php +++ b/src/Illuminate/Routing/RouteCollectionInterface.php @@ -46,7 +46,7 @@ public function match(Request $request); /** * Get routes from the collection by method. * - * @param string|null $method + * @param ?string $method * @return \Illuminate\Routing\Route[] */ public function get($method = null); diff --git a/src/Illuminate/Routing/RouteGroup.php b/src/Illuminate/Routing/RouteGroup.php index 28e05d55dd56..7b58ea4320f1 100644 --- a/src/Illuminate/Routing/RouteGroup.php +++ b/src/Illuminate/Routing/RouteGroup.php @@ -40,7 +40,7 @@ public static function merge($new, $old, $prependExistingPrefix = true) * * @param array $new * @param array $old - * @return string|null + * @return ?string */ protected static function formatNamespace($new, $old) { @@ -59,7 +59,7 @@ protected static function formatNamespace($new, $old) * @param array $new * @param array $old * @param bool $prependExistingPrefix - * @return string|null + * @return ?string */ protected static function formatPrefix($new, $old, $prependExistingPrefix = true) { diff --git a/src/Illuminate/Routing/RouteRegistrar.php b/src/Illuminate/Routing/RouteRegistrar.php index 65d454c70d8e..890149df0644 100644 --- a/src/Illuminate/Routing/RouteRegistrar.php +++ b/src/Illuminate/Routing/RouteRegistrar.php @@ -21,7 +21,7 @@ * @method \Illuminate\Routing\RouteRegistrar domain(string $value) * @method \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware) * @method \Illuminate\Routing\RouteRegistrar name(string $value) - * @method \Illuminate\Routing\RouteRegistrar namespace(string|null $value) + * @method \Illuminate\Routing\RouteRegistrar namespace(?string $value) * @method \Illuminate\Routing\RouteRegistrar prefix(string $prefix) * @method \Illuminate\Routing\RouteRegistrar scopeBindings() * @method \Illuminate\Routing\RouteRegistrar where(array $where) diff --git a/src/Illuminate/Routing/Router.php b/src/Illuminate/Routing/Router.php index e2fb7420c4d8..d7060db24270 100644 --- a/src/Illuminate/Routing/Router.php +++ b/src/Illuminate/Routing/Router.php @@ -1209,7 +1209,7 @@ public function getGroupStack() * Get a route parameter for the current route. * * @param string $key - * @param string|null $default + * @param ?string $default * @return mixed */ public function input($key, $default = null) @@ -1269,7 +1269,7 @@ public function has($name) /** * Get the current route name. * - * @return string|null + * @return ?string */ public function currentRouteName() { @@ -1301,7 +1301,7 @@ public function currentRouteNamed(...$patterns) /** * Get the current route action. * - * @return string|null + * @return ?string */ public function currentRouteAction() { diff --git a/src/Illuminate/Routing/UrlGenerator.php b/src/Illuminate/Routing/UrlGenerator.php index 56a116d405a2..d67af818ab40 100755 --- a/src/Illuminate/Routing/UrlGenerator.php +++ b/src/Illuminate/Routing/UrlGenerator.php @@ -57,14 +57,14 @@ class UrlGenerator implements UrlGeneratorContract /** * A cached copy of the URL root for the current request. * - * @var string|null + * @var ?string */ protected $cachedRoot; /** * A cached copy of the URL scheme for the current request. * - * @var string|null + * @var ?string */ protected $cachedScheme; @@ -115,7 +115,7 @@ class UrlGenerator implements UrlGeneratorContract * * @param \Illuminate\Routing\RouteCollectionInterface $routes * @param \Illuminate\Http\Request $request - * @param string|null $assetRoot + * @param ?string $assetRoot * @return void */ public function __construct(RouteCollectionInterface $routes, Request $request, $assetRoot = null) @@ -183,7 +183,7 @@ public function previousPath($fallback = false) /** * Get the previous URL from the session if possible. * - * @return string|null + * @return ?string */ protected function getPreviousUrlFromSession() { @@ -573,7 +573,7 @@ protected function extractQueryString($path) * Get the base URL for the request. * * @param string $scheme - * @param string|null $root + * @param ?string $root * @return string */ public function formatRoot($scheme, $root = null) @@ -667,7 +667,7 @@ public function getDefaultParameters() /** * Force the scheme for URLs. * - * @param string|null $scheme + * @param ?string $scheme * @return void */ public function forceScheme($scheme) @@ -680,7 +680,7 @@ public function forceScheme($scheme) /** * Set the forced root URL. * - * @param string|null $root + * @param ?string $root * @return void */ public function forceRootUrl($root) diff --git a/src/Illuminate/Session/Console/SessionTableCommand.php b/src/Illuminate/Session/Console/SessionTableCommand.php index e44b2da71238..5d1f9b6acde3 100644 --- a/src/Illuminate/Session/Console/SessionTableCommand.php +++ b/src/Illuminate/Session/Console/SessionTableCommand.php @@ -22,7 +22,7 @@ class SessionTableCommand extends Command * * This name is used to identify the command during lazy loading. * - * @var string|null + * @var ?string * * @deprecated */ diff --git a/src/Illuminate/Session/EncryptedStore.php b/src/Illuminate/Session/EncryptedStore.php index b8ae8cfaf34d..54ff822b25e2 100644 --- a/src/Illuminate/Session/EncryptedStore.php +++ b/src/Illuminate/Session/EncryptedStore.php @@ -21,7 +21,7 @@ class EncryptedStore extends Store * @param string $name * @param \SessionHandlerInterface $handler * @param \Illuminate\Contracts\Encryption\Encrypter $encrypter - * @param string|null $id + * @param ?string $id * @param string $serialization * @return void */ diff --git a/src/Illuminate/Session/SessionManager.php b/src/Illuminate/Session/SessionManager.php index a12d6ad026a3..f142831287d5 100755 --- a/src/Illuminate/Session/SessionManager.php +++ b/src/Illuminate/Session/SessionManager.php @@ -227,7 +227,7 @@ public function shouldBlock() /** * Get the name of the cache store / driver that should be used to acquire session locks. * - * @return string|null + * @return ?string */ public function blockDriver() { diff --git a/src/Illuminate/Session/Store.php b/src/Illuminate/Session/Store.php index b78b54c8499d..1ddb42ee1db3 100755 --- a/src/Illuminate/Session/Store.php +++ b/src/Illuminate/Session/Store.php @@ -63,7 +63,7 @@ class Store implements Session * * @param string $name * @param \SessionHandlerInterface $handler - * @param string|null $id + * @param ?string $id * @param string $serialization * @return void */ @@ -311,7 +311,7 @@ public function pull($key, $default = null) /** * Determine if the session contains old input. * - * @param string|null $key + * @param ?string $key * @return bool */ public function hasOldInput($key = null) @@ -324,7 +324,7 @@ public function hasOldInput($key = null) /** * Get the requested item from the flashed input array. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed */ @@ -697,7 +697,7 @@ public function regenerateToken() /** * Get the previous URL from the session. * - * @return string|null + * @return ?string */ public function previousUrl() { diff --git a/src/Illuminate/Support/Composer.php b/src/Illuminate/Support/Composer.php index 9933615cb3b2..677cb8bbe60a 100644 --- a/src/Illuminate/Support/Composer.php +++ b/src/Illuminate/Support/Composer.php @@ -18,7 +18,7 @@ class Composer /** * The working path to regenerate from. * - * @var string|null + * @var ?string */ protected $workingPath; @@ -26,7 +26,7 @@ class Composer * Create a new Composer manager instance. * * @param \Illuminate\Filesystem\Filesystem $files - * @param string|null $workingPath + * @param ?string $workingPath * @return void */ public function __construct(Filesystem $files, $workingPath = null) @@ -111,7 +111,7 @@ public function setWorkingPath($path) /** * Get the version of Composer. * - * @return string|null + * @return ?string */ public function getVersion() { diff --git a/src/Illuminate/Support/ConfigurationUrlParser.php b/src/Illuminate/Support/ConfigurationUrlParser.php index a1b933709236..956427b4679a 100644 --- a/src/Illuminate/Support/ConfigurationUrlParser.php +++ b/src/Illuminate/Support/ConfigurationUrlParser.php @@ -74,7 +74,7 @@ protected function getPrimaryOptions($url) * Get the database driver from the URL. * * @param array $url - * @return string|null + * @return ?string */ protected function getDriver($url) { @@ -91,7 +91,7 @@ protected function getDriver($url) * Get the database name from the URL. * * @param array $url - * @return string|null + * @return ?string */ protected function getDatabase($url) { diff --git a/src/Illuminate/Support/Facades/App.php b/src/Illuminate/Support/Facades/App.php index dee1dbb98675..0606416fda6c 100755 --- a/src/Illuminate/Support/Facades/App.php +++ b/src/Illuminate/Support/Facades/App.php @@ -43,7 +43,7 @@ * @method static \Illuminate\Support\ServiceProvider resolveProvider(string $provider) * @method static void loadDeferredProviders() * @method static void loadDeferredProvider(string $service) - * @method static void registerDeferredProvider(string $provider, string|null $service = null) + * @method static void registerDeferredProvider(string $provider, ?string $service = null) * @method static mixed make(string $abstract, array $parameters = []) * @method static bool bound(string $abstract) * @method static bool isBooted() @@ -104,7 +104,7 @@ * @method static mixed rebinding(string $abstract, \Closure $callback) * @method static mixed refresh(string $abstract, mixed $target, string $method) * @method static \Closure wrap(\Closure $callback, array $parameters = []) - * @method static mixed call(callable|string $callback, array $parameters = [], string|null $defaultMethod = null) + * @method static mixed call(callable|string $callback, array $parameters = [], ?string $defaultMethod = null) * @method static \Closure factory(string $abstract) * @method static mixed makeWith(string|callable $abstract, array $parameters = []) * @method static mixed get(string $id) diff --git a/src/Illuminate/Support/Facades/Auth.php b/src/Illuminate/Support/Facades/Auth.php index fd5ac5138aeb..5b9917bbcdb9 100755 --- a/src/Illuminate/Support/Facades/Auth.php +++ b/src/Illuminate/Support/Facades/Auth.php @@ -6,7 +6,7 @@ use RuntimeException; /** - * @method static \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard guard(string|null $name = null) + * @method static \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard guard(?string $name = null) * @method static \Illuminate\Auth\SessionGuard createSessionDriver(string $name, array $config) * @method static \Illuminate\Auth\TokenGuard createTokenDriver(string $name, array $config) * @method static string getDefaultDriver() @@ -20,7 +20,7 @@ * @method static bool hasResolvedGuards() * @method static \Illuminate\Auth\AuthManager forgetGuards() * @method static \Illuminate\Auth\AuthManager setApplication(\Illuminate\Contracts\Foundation\Application $app) - * @method static \Illuminate\Contracts\Auth\UserProvider|null createUserProvider(string|null $provider = null) + * @method static \Illuminate\Contracts\Auth\UserProvider|null createUserProvider(?string $provider = null) * @method static string getDefaultUserProvider() * @method static bool check() * @method static bool guest() diff --git a/src/Illuminate/Support/Facades/Blade.php b/src/Illuminate/Support/Facades/Blade.php index a58b2142a956..3bea2cf130a3 100755 --- a/src/Illuminate/Support/Facades/Blade.php +++ b/src/Illuminate/Support/Facades/Blade.php @@ -3,7 +3,7 @@ namespace Illuminate\Support\Facades; /** - * @method static void compile(string|null $path = null) + * @method static void compile(?string $path = null) * @method static string getPath() * @method static void setPath(string $path) * @method static string compileString(string $value) @@ -14,18 +14,18 @@ * @method static array getExtensions() * @method static void if(string $name, callable $callback) * @method static bool check(string $name, array ...$parameters) - * @method static void component(string $class, string|null $alias = null, string $prefix = '') + * @method static void component(string $class, ?string $alias = null, string $prefix = '') * @method static void components(array $components, string $prefix = '') * @method static array getClassComponentAliases() - * @method static void anonymousComponentPath(string $path, string|null $prefix = null) - * @method static void anonymousComponentNamespace(string $directory, string|null $prefix = null) + * @method static void anonymousComponentPath(string $path, ?string $prefix = null) + * @method static void anonymousComponentNamespace(string $directory, ?string $prefix = null) * @method static void componentNamespace(string $namespace, string $prefix) * @method static array getAnonymousComponentPaths() * @method static array getAnonymousComponentNamespaces() * @method static array getClassComponentNamespaces() - * @method static void aliasComponent(string $path, string|null $alias = null) - * @method static void include(string $path, string|null $alias = null) - * @method static void aliasInclude(string $path, string|null $alias = null) + * @method static void aliasComponent(string $path, ?string $alias = null) + * @method static void include(string $path, ?string $alias = null) + * @method static void aliasInclude(string $path, ?string $alias = null) * @method static void directive(string $name, callable $handler) * @method static array getCustomDirectives() * @method static void precompiler(callable $precompiler) diff --git a/src/Illuminate/Support/Facades/Broadcast.php b/src/Illuminate/Support/Facades/Broadcast.php index aca0eac88c90..6c4e3f2970bd 100644 --- a/src/Illuminate/Support/Facades/Broadcast.php +++ b/src/Illuminate/Support/Facades/Broadcast.php @@ -8,16 +8,16 @@ * @method static void routes(array|null $attributes = null) * @method static void userRoutes(array|null $attributes = null) * @method static void channelRoutes(array|null $attributes = null) - * @method static string|null socket(\Illuminate\Http\Request|null $request = null) + * @method static ?string socket(\Illuminate\Http\Request|null $request = null) * @method static \Illuminate\Broadcasting\PendingBroadcast event(mixed|null $event = null) * @method static void queue(mixed $event) - * @method static mixed connection(string|null $driver = null) - * @method static mixed driver(string|null $name = null) + * @method static mixed connection(?string $driver = null) + * @method static mixed driver(?string $name = null) * @method static \Pusher\Pusher pusher(array $config) * @method static \Ably\AblyRest ably(array $config) * @method static string getDefaultDriver() * @method static void setDefaultDriver(string $name) - * @method static void purge(string|null $name = null) + * @method static void purge(?string $name = null) * @method static \Illuminate\Broadcasting\BroadcastManager extend(string $driver, \Closure $callback) * @method static \Illuminate\Contracts\Foundation\Application getApplication() * @method static \Illuminate\Broadcasting\BroadcastManager setApplication(\Illuminate\Contracts\Foundation\Application $app) diff --git a/src/Illuminate/Support/Facades/Cache.php b/src/Illuminate/Support/Facades/Cache.php index e49c1eb35da3..671151ee87a5 100755 --- a/src/Illuminate/Support/Facades/Cache.php +++ b/src/Illuminate/Support/Facades/Cache.php @@ -3,14 +3,14 @@ namespace Illuminate\Support\Facades; /** - * @method static \Illuminate\Contracts\Cache\Repository store(string|null $name = null) - * @method static \Illuminate\Contracts\Cache\Repository driver(string|null $driver = null) + * @method static \Illuminate\Contracts\Cache\Repository store(?string $name = null) + * @method static \Illuminate\Contracts\Cache\Repository driver(?string $driver = null) * @method static \Illuminate\Cache\Repository repository(\Illuminate\Contracts\Cache\Store $store) * @method static void refreshEventDispatcher() * @method static string getDefaultDriver() * @method static void setDefaultDriver(string $name) * @method static \Illuminate\Cache\CacheManager forgetDriver(array|string|null $name = null) - * @method static void purge(string|null $name = null) + * @method static void purge(?string $name = null) * @method static \Illuminate\Cache\CacheManager extend(string $driver, \Closure $callback) * @method static bool has(array|string $key) * @method static bool missing(string $key) @@ -47,7 +47,7 @@ * @method static mixed macroCall(string $method, array $parameters) * @method static bool flush() * @method static string getPrefix() - * @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, string|null $owner = null) + * @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, ?string $owner = null) * @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner) * * @see \Illuminate\Cache\CacheManager diff --git a/src/Illuminate/Support/Facades/Cookie.php b/src/Illuminate/Support/Facades/Cookie.php index 3592f5839e74..538e3efddb75 100755 --- a/src/Illuminate/Support/Facades/Cookie.php +++ b/src/Illuminate/Support/Facades/Cookie.php @@ -3,15 +3,15 @@ namespace Illuminate\Support\Facades; /** - * @method static \Symfony\Component\HttpFoundation\Cookie make(string $name, string $value, int $minutes = 0, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null) - * @method static \Symfony\Component\HttpFoundation\Cookie forever(string $name, string $value, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null) - * @method static \Symfony\Component\HttpFoundation\Cookie forget(string $name, string|null $path = null, string|null $domain = null) - * @method static bool hasQueued(string $key, string|null $path = null) - * @method static \Symfony\Component\HttpFoundation\Cookie|null queued(string $key, mixed $default = null, string|null $path = null) + * @method static \Symfony\Component\HttpFoundation\Cookie make(string $name, string $value, int $minutes = 0, ?string $path = null, ?string $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, ?string $sameSite = null) + * @method static \Symfony\Component\HttpFoundation\Cookie forever(string $name, string $value, ?string $path = null, ?string $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, ?string $sameSite = null) + * @method static \Symfony\Component\HttpFoundation\Cookie forget(string $name, ?string $path = null, ?string $domain = null) + * @method static bool hasQueued(string $key, ?string $path = null) + * @method static \Symfony\Component\HttpFoundation\Cookie|null queued(string $key, mixed $default = null, ?string $path = null) * @method static void queue(mixed ...$parameters) - * @method static void expire(string $name, string|null $path = null, string|null $domain = null) - * @method static void unqueue(string $name, string|null $path = null) - * @method static \Illuminate\Cookie\CookieJar setDefaultPathAndDomain(string $path, string|null $domain, bool|null $secure = false, string|null $sameSite = null) + * @method static void expire(string $name, ?string $path = null, ?string $domain = null) + * @method static void unqueue(string $name, ?string $path = null) + * @method static \Illuminate\Cookie\CookieJar setDefaultPathAndDomain(string $path, ?string $domain, bool|null $secure = false, ?string $sameSite = null) * @method static \Symfony\Component\HttpFoundation\Cookie[] getQueuedCookies() * @method static \Illuminate\Cookie\CookieJar flushQueuedCookies() * @method static void macro(string $name, object|callable $macro) @@ -37,7 +37,7 @@ public static function has($key) /** * Retrieve a cookie from the request. * - * @param string|null $key + * @param ?string $key * @param mixed $default * @return string|array|null */ diff --git a/src/Illuminate/Support/Facades/DB.php b/src/Illuminate/Support/Facades/DB.php index ed5b13e7cab0..0660a4d6aa81 100755 --- a/src/Illuminate/Support/Facades/DB.php +++ b/src/Illuminate/Support/Facades/DB.php @@ -3,11 +3,11 @@ namespace Illuminate\Support\Facades; /** - * @method static \Illuminate\Database\Connection connection(string|null $name = null) + * @method static \Illuminate\Database\Connection connection(?string $name = null) * @method static void registerDoctrineType(string $class, string $name, string $type) - * @method static void purge(string|null $name = null) - * @method static void disconnect(string|null $name = null) - * @method static \Illuminate\Database\Connection reconnect(string|null $name = null) + * @method static void purge(?string $name = null) + * @method static void disconnect(?string $name = null) + * @method static \Illuminate\Database\Connection reconnect(?string $name = null) * @method static mixed usingConnection(string $name, callable $callback) * @method static string getDefaultConnection() * @method static void setDefaultConnection(string $name) @@ -27,7 +27,7 @@ * @method static void useDefaultSchemaGrammar() * @method static void useDefaultPostProcessor() * @method static \Illuminate\Database\Schema\Builder getSchemaBuilder() - * @method static \Illuminate\Database\Query\Builder table(\Closure|\Illuminate\Database\Query\Builder|string $table, string|null $as = null) + * @method static \Illuminate\Database\Query\Builder table(\Closure|\Illuminate\Database\Query\Builder|string $table, ?string $as = null) * @method static \Illuminate\Database\Query\Builder query() * @method static mixed selectOne(string $query, array $bindings = [], bool $useReadPdo = true) * @method static mixed scalar(string $query, array $bindings = [], bool $useReadPdo = true) @@ -67,9 +67,9 @@ * @method static \PDO|\Closure|null getRawReadPdo() * @method static \Illuminate\Database\Connection setPdo(\PDO|\Closure|null $pdo) * @method static \Illuminate\Database\Connection setReadPdo(\PDO|\Closure|null $pdo) - * @method static string|null getName() - * @method static string|null getNameWithReadWriteType() - * @method static mixed getConfig(string|null $option = null) + * @method static ?string getName() + * @method static ?string getNameWithReadWriteType() + * @method static mixed getConfig(?string $option = null) * @method static string getDriverName() * @method static \Illuminate\Database\Query\Grammars\Grammar getQueryGrammar() * @method static \Illuminate\Database\Connection setQueryGrammar(\Illuminate\Database\Query\Grammars\Grammar $grammar) @@ -90,7 +90,7 @@ * @method static bool logging() * @method static string getDatabaseName() * @method static \Illuminate\Database\Connection setDatabaseName(string $database) - * @method static \Illuminate\Database\Connection setReadWriteType(string|null $readWriteType) + * @method static \Illuminate\Database\Connection setReadWriteType(?string $readWriteType) * @method static string getTablePrefix() * @method static \Illuminate\Database\Connection setTablePrefix(string $prefix) * @method static \Illuminate\Database\Grammar withTablePrefix(\Illuminate\Database\Grammar $grammar) diff --git a/src/Illuminate/Support/Facades/Facade.php b/src/Illuminate/Support/Facades/Facade.php index 219e599be2e9..26a7317bda29 100755 --- a/src/Illuminate/Support/Facades/Facade.php +++ b/src/Illuminate/Support/Facades/Facade.php @@ -159,7 +159,7 @@ protected static function isMock() /** * Get the mockable class for the bound instance. * - * @return string|null + * @return ?string */ protected static function getMockableClass() { diff --git a/src/Illuminate/Support/Facades/File.php b/src/Illuminate/Support/Facades/File.php index a5a1a60dfacf..54938ee65dd2 100755 --- a/src/Illuminate/Support/Facades/File.php +++ b/src/Illuminate/Support/Facades/File.php @@ -26,7 +26,7 @@ * @method static string basename(string $path) * @method static string dirname(string $path) * @method static string extension(string $path) - * @method static string|null guessExtension(string $path) + * @method static ?string guessExtension(string $path) * @method static string type(string $path) * @method static string|false mimeType(string $path) * @method static int size(string $path) diff --git a/src/Illuminate/Support/Facades/Gate.php b/src/Illuminate/Support/Facades/Gate.php index f4fba393c5e8..310c7a8582eb 100644 --- a/src/Illuminate/Support/Facades/Gate.php +++ b/src/Illuminate/Support/Facades/Gate.php @@ -6,8 +6,8 @@ /** * @method static bool has(string|array $ability) - * @method static \Illuminate\Auth\Access\Response allowIf(\Illuminate\Auth\Access\Response|\Closure|bool $condition, string|null $message = null, string|null $code = null) - * @method static \Illuminate\Auth\Access\Response denyIf(\Illuminate\Auth\Access\Response|\Closure|bool $condition, string|null $message = null, string|null $code = null) + * @method static \Illuminate\Auth\Access\Response allowIf(\Illuminate\Auth\Access\Response|\Closure|bool $condition, ?string $message = null, ?string $code = null) + * @method static \Illuminate\Auth\Access\Response denyIf(\Illuminate\Auth\Access\Response|\Closure|bool $condition, ?string $message = null, ?string $code = null) * @method static \Illuminate\Auth\Access\Gate define(string $ability, callable|array|string $callback) * @method static \Illuminate\Auth\Access\Gate resource(string $name, string $class, array|null $abilities = null) * @method static \Illuminate\Auth\Access\Gate policy(string $class, string $policy) diff --git a/src/Illuminate/Support/Facades/Hash.php b/src/Illuminate/Support/Facades/Hash.php index 1cfe56120e90..e98aaef739e5 100755 --- a/src/Illuminate/Support/Facades/Hash.php +++ b/src/Illuminate/Support/Facades/Hash.php @@ -11,7 +11,7 @@ * @method static bool check(string $value, string $hashedValue, array $options = []) * @method static bool needsRehash(string $hashedValue, array $options = []) * @method static string getDefaultDriver() - * @method static mixed driver(string|null $driver = null) + * @method static mixed driver(?string $driver = null) * @method static \Illuminate\Hashing\HashManager extend(string $driver, \Closure $callback) * @method static array getDrivers() * @method static \Illuminate\Contracts\Container\Container getContainer() diff --git a/src/Illuminate/Support/Facades/Http.php b/src/Illuminate/Support/Facades/Http.php index c35fbdbe2a37..872d41b23e19 100644 --- a/src/Illuminate/Support/Facades/Http.php +++ b/src/Illuminate/Support/Facades/Http.php @@ -26,7 +26,7 @@ * @method static \Illuminate\Http\Client\PendingRequest withBody(string $content, string $contentType) * @method static \Illuminate\Http\Client\PendingRequest asJson() * @method static \Illuminate\Http\Client\PendingRequest asForm() - * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string|resource $contents = '', string|null $filename = null, array $headers = []) + * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string|resource $contents = '', ?string $filename = null, array $headers = []) * @method static \Illuminate\Http\Client\PendingRequest asMultipart() * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format) * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType) diff --git a/src/Illuminate/Support/Facades/Lang.php b/src/Illuminate/Support/Facades/Lang.php index a87088a3fd10..4adad58c1659 100755 --- a/src/Illuminate/Support/Facades/Lang.php +++ b/src/Illuminate/Support/Facades/Lang.php @@ -3,10 +3,10 @@ namespace Illuminate\Support\Facades; /** - * @method static bool hasForLocale(string $key, string|null $locale = null) - * @method static bool has(string $key, string|null $locale = null, bool $fallback = true) - * @method static string|array get(string $key, array $replace = [], string|null $locale = null, bool $fallback = true) - * @method static string choice(string $key, \Countable|int|array $number, array $replace = [], string|null $locale = null) + * @method static bool hasForLocale(string $key, ?string $locale = null) + * @method static bool has(string $key, ?string $locale = null, bool $fallback = true) + * @method static string|array get(string $key, array $replace = [], ?string $locale = null, bool $fallback = true) + * @method static string choice(string $key, \Countable|int|array $number, array $replace = [], ?string $locale = null) * @method static void addLines(array $lines, string $locale, string $namespace = '*') * @method static void load(string $namespace, string $group, string $locale) * @method static void addNamespace(string $namespace, string $hint) diff --git a/src/Illuminate/Support/Facades/Log.php b/src/Illuminate/Support/Facades/Log.php index c00fac374b20..4a90569337b1 100755 --- a/src/Illuminate/Support/Facades/Log.php +++ b/src/Illuminate/Support/Facades/Log.php @@ -4,16 +4,16 @@ /** * @method static \Psr\Log\LoggerInterface build(array $config) - * @method static \Psr\Log\LoggerInterface stack(array $channels, string|null $channel = null) - * @method static \Psr\Log\LoggerInterface channel(string|null $channel = null) - * @method static \Psr\Log\LoggerInterface driver(string|null $driver = null) + * @method static \Psr\Log\LoggerInterface stack(array $channels, ?string $channel = null) + * @method static \Psr\Log\LoggerInterface channel(?string $channel = null) + * @method static \Psr\Log\LoggerInterface driver(?string $driver = null) * @method static \Illuminate\Log\LogManager shareContext(array $context) * @method static array sharedContext() * @method static \Illuminate\Log\LogManager flushSharedContext() - * @method static string|null getDefaultDriver() + * @method static ?string getDefaultDriver() * @method static void setDefaultDriver(string $name) * @method static \Illuminate\Log\LogManager extend(string $driver, \Closure $callback) - * @method static \Illuminate\Log\LogManager forgetChannel(string|null $driver = null) + * @method static \Illuminate\Log\LogManager forgetChannel(?string $driver = null) * @method static array getChannels() * @method static void emergency(string $message, array $context = []) * @method static void alert(string $message, array $context = []) diff --git a/src/Illuminate/Support/Facades/Mail.php b/src/Illuminate/Support/Facades/Mail.php index a6544a3a86ef..551d00c6579f 100755 --- a/src/Illuminate/Support/Facades/Mail.php +++ b/src/Illuminate/Support/Facades/Mail.php @@ -5,20 +5,20 @@ use Illuminate\Support\Testing\Fakes\MailFake; /** - * @method static \Illuminate\Contracts\Mail\Mailer mailer(string|null $name = null) - * @method static \Illuminate\Mail\Mailer driver(string|null $driver = null) + * @method static \Illuminate\Contracts\Mail\Mailer mailer(?string $name = null) + * @method static \Illuminate\Mail\Mailer driver(?string $driver = null) * @method static \Symfony\Component\Mailer\Transport\TransportInterface createSymfonyTransport(array $config) * @method static string getDefaultDriver() * @method static void setDefaultDriver(string $name) - * @method static void purge(string|null $name = null) + * @method static void purge(?string $name = null) * @method static \Illuminate\Mail\MailManager extend(string $driver, \Closure $callback) * @method static \Illuminate\Contracts\Foundation\Application getApplication() * @method static \Illuminate\Mail\MailManager setApplication(\Illuminate\Contracts\Foundation\Application $app) * @method static \Illuminate\Mail\MailManager forgetMailers() - * @method static void alwaysFrom(string $address, string|null $name = null) - * @method static void alwaysReplyTo(string $address, string|null $name = null) + * @method static void alwaysFrom(string $address, ?string $name = null) + * @method static void alwaysReplyTo(string $address, ?string $name = null) * @method static void alwaysReturnPath(string $address) - * @method static void alwaysTo(string $address, string|null $name = null) + * @method static void alwaysTo(string $address, ?string $name = null) * @method static \Illuminate\Mail\PendingMail to(mixed $users) * @method static \Illuminate\Mail\PendingMail cc(mixed $users) * @method static \Illuminate\Mail\PendingMail bcc(mixed $users) @@ -27,10 +27,10 @@ * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, mixed $callback) * @method static string render(string|array $view, array $data = []) * @method static \Illuminate\Mail\SentMessage|null send(\Illuminate\Contracts\Mail\Mailable|string|array $view, array $data = [], \Closure|string|null $callback = null) - * @method static mixed queue(\Illuminate\Contracts\Mail\Mailable|string|array $view, string|null $queue = null) + * @method static mixed queue(\Illuminate\Contracts\Mail\Mailable|string|array $view, ?string $queue = null) * @method static mixed onQueue(string $queue, \Illuminate\Contracts\Mail\Mailable $view) * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable $view) - * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view, string|null $queue = null) + * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view, ?string $queue = null) * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view) * @method static \Symfony\Component\Mailer\Transport\TransportInterface getSymfonyTransport() * @method static \Illuminate\Contracts\View\Factory getViewFactory() diff --git a/src/Illuminate/Support/Facades/Notification.php b/src/Illuminate/Support/Facades/Notification.php index 74d56470b581..bdaade233208 100644 --- a/src/Illuminate/Support/Facades/Notification.php +++ b/src/Illuminate/Support/Facades/Notification.php @@ -9,12 +9,12 @@ /** * @method static void send(\Illuminate\Support\Collection|array|mixed $notifiables, mixed $notification) * @method static void sendNow(\Illuminate\Support\Collection|array|mixed $notifiables, mixed $notification, array|null $channels = null) - * @method static mixed channel(string|null $name = null) + * @method static mixed channel(?string $name = null) * @method static string getDefaultDriver() * @method static string deliversVia() * @method static void deliverVia(string $channel) * @method static \Illuminate\Notifications\ChannelManager locale(string $locale) - * @method static mixed driver(string|null $driver = null) + * @method static mixed driver(?string $driver = null) * @method static \Illuminate\Notifications\ChannelManager extend(string $driver, \Closure $callback) * @method static array getDrivers() * @method static \Illuminate\Contracts\Container\Container getContainer() diff --git a/src/Illuminate/Support/Facades/Password.php b/src/Illuminate/Support/Facades/Password.php index 87d9daf6fb11..b187d543858d 100755 --- a/src/Illuminate/Support/Facades/Password.php +++ b/src/Illuminate/Support/Facades/Password.php @@ -5,7 +5,7 @@ use Illuminate\Contracts\Auth\PasswordBroker; /** - * @method static \Illuminate\Contracts\Auth\PasswordBroker broker(string|null $name = null) + * @method static \Illuminate\Contracts\Auth\PasswordBroker broker(?string $name = null) * @method static string getDefaultDriver() * @method static void setDefaultDriver(string $name) * @method static string sendResetLink(array $credentials, \Closure|null $callback = null) diff --git a/src/Illuminate/Support/Facades/Queue.php b/src/Illuminate/Support/Facades/Queue.php index 60fc5fe7bb9f..149efbb7dfb3 100755 --- a/src/Illuminate/Support/Facades/Queue.php +++ b/src/Illuminate/Support/Facades/Queue.php @@ -12,23 +12,23 @@ * @method static void looping(mixed $callback) * @method static void failing(mixed $callback) * @method static void stopping(mixed $callback) - * @method static bool connected(string|null $name = null) - * @method static \Illuminate\Contracts\Queue\Queue connection(string|null $name = null) + * @method static bool connected(?string $name = null) + * @method static \Illuminate\Contracts\Queue\Queue connection(?string $name = null) * @method static void extend(string $driver, \Closure $resolver) * @method static void addConnector(string $driver, \Closure $resolver) * @method static string getDefaultDriver() * @method static void setDefaultDriver(string $name) - * @method static string getName(string|null $connection = null) + * @method static string getName(?string $connection = null) * @method static \Illuminate\Contracts\Foundation\Application getApplication() * @method static \Illuminate\Queue\QueueManager setApplication(\Illuminate\Contracts\Foundation\Application $app) - * @method static int size(string|null $queue = null) - * @method static mixed push(string|object $job, mixed $data = '', string|null $queue = null) + * @method static int size(?string $queue = null) + * @method static mixed push(string|object $job, mixed $data = '', ?string $queue = null) * @method static mixed pushOn(string $queue, string|object $job, mixed $data = '') - * @method static mixed pushRaw(string $payload, string|null $queue = null, array $options = []) - * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, string|object $job, mixed $data = '', string|null $queue = null) + * @method static mixed pushRaw(string $payload, ?string $queue = null, array $options = []) + * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, string|object $job, mixed $data = '', ?string $queue = null) * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, string|object $job, mixed $data = '') - * @method static mixed bulk(array $jobs, mixed $data = '', string|null $queue = null) - * @method static \Illuminate\Contracts\Queue\Job|null pop(string|null $queue = null) + * @method static mixed bulk(array $jobs, mixed $data = '', ?string $queue = null) + * @method static \Illuminate\Contracts\Queue\Job|null pop(?string $queue = null) * @method static string getConnectionName() * @method static \Illuminate\Contracts\Queue\Queue setConnectionName(string $name) * @method static mixed getJobBackoff(mixed $job) diff --git a/src/Illuminate/Support/Facades/Redirect.php b/src/Illuminate/Support/Facades/Redirect.php index ce96f7e8c21b..764e7dc05444 100755 --- a/src/Illuminate/Support/Facades/Redirect.php +++ b/src/Illuminate/Support/Facades/Redirect.php @@ -16,7 +16,7 @@ * @method static \Illuminate\Http\RedirectResponse action(string|array $action, mixed $parameters = [], int $status = 302, array $headers = []) * @method static \Illuminate\Routing\UrlGenerator getUrlGenerator() * @method static void setSession(\Illuminate\Session\Store $session) - * @method static string|null getIntendedUrl() + * @method static ?string getIntendedUrl() * @method static \Illuminate\Routing\Redirector setIntendedUrl(string $url) * @method static void macro(string $name, object|callable $macro) * @method static void mixin(object $mixin, bool $replace = true) diff --git a/src/Illuminate/Support/Facades/Redis.php b/src/Illuminate/Support/Facades/Redis.php index b796ad09d325..b081ac3cc6cf 100755 --- a/src/Illuminate/Support/Facades/Redis.php +++ b/src/Illuminate/Support/Facades/Redis.php @@ -3,13 +3,13 @@ namespace Illuminate\Support\Facades; /** - * @method static \Illuminate\Redis\Connections\Connection connection(string|null $name = null) - * @method static \Illuminate\Redis\Connections\Connection resolve(string|null $name = null) + * @method static \Illuminate\Redis\Connections\Connection connection(?string $name = null) + * @method static \Illuminate\Redis\Connections\Connection resolve(?string $name = null) * @method static array connections() * @method static void enableEvents() * @method static void disableEvents() * @method static void setDriver(string $driver) - * @method static void purge(string|null $name = null) + * @method static void purge(?string $name = null) * @method static \Illuminate\Redis\RedisManager extend(string $driver, \Closure $callback) * @method static void createSubscription(array|string $channels, \Closure $callback, string $method = 'subscribe') * @method static \Illuminate\Redis\Limiters\ConcurrencyLimiterBuilder funnel(string $name) @@ -19,7 +19,7 @@ * @method static void psubscribe(array|string $channels, \Closure $callback) * @method static mixed command(string $method, array $parameters = []) * @method static void listen(\Closure $callback) - * @method static string|null getName() + * @method static ?string getName() * @method static \Illuminate\Redis\Connections\Connection setName(string $name) * @method static \Illuminate\Contracts\Events\Dispatcher getEventDispatcher() * @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $events) diff --git a/src/Illuminate/Support/Facades/Request.php b/src/Illuminate/Support/Facades/Request.php index b62435dfff1e..4257db5ef7e5 100755 --- a/src/Illuminate/Support/Facades/Request.php +++ b/src/Illuminate/Support/Facades/Request.php @@ -13,7 +13,7 @@ * @method static string fullUrlWithoutQuery(array|string $keys) * @method static string path() * @method static string decodedPath() - * @method static string|null segment(int $index, string|null $default = null) + * @method static ?string segment(int $index, ?string $default = null) * @method static array segments() * @method static bool is(mixed ...$patterns) * @method static bool routeIs(mixed ...$patterns) @@ -25,14 +25,14 @@ * @method static bool pjax() * @method static bool prefetch() * @method static bool secure() - * @method static string|null ip() + * @method static ?string ip() * @method static array ips() - * @method static string|null userAgent() + * @method static ?string userAgent() * @method static \Illuminate\Http\Request merge(array $input) * @method static \Illuminate\Http\Request mergeIfMissing(array $input) * @method static \Illuminate\Http\Request replace(array $input) * @method static mixed get(string $key, mixed $default = null) - * @method static \Symfony\Component\HttpFoundation\ParameterBag|mixed json(string|null $key = null, mixed $default = null) + * @method static \Symfony\Component\HttpFoundation\ParameterBag|mixed json(?string $key = null, mixed $default = null) * @method static \Illuminate\Http\Request createFrom(\Illuminate\Http\Request $from, \Illuminate\Http\Request|null $to = null) * @method static \Illuminate\Http\Request createFromBase(\Symfony\Component\HttpFoundation\Request $request) * @method static \Illuminate\Http\Request duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null) @@ -42,8 +42,8 @@ * @method static void setLaravelSession(\Illuminate\Contracts\Session\Session $session) * @method static void setRequestLocale(string $locale) * @method static void setDefaultRequestLocale(string $locale) - * @method static mixed user(string|null $guard = null) - * @method static \Illuminate\Routing\Route|object|string|null route(string|null $param = null, mixed $default = null) + * @method static mixed user(?string $guard = null) + * @method static \Illuminate\Routing\Route|object|string|null route(?string $param = null, mixed $default = null) * @method static string fingerprint() * @method static \Illuminate\Http\Request setJson(\Symfony\Component\HttpFoundation\ParameterBag $json) * @method static \Closure getUserResolver() @@ -61,41 +61,41 @@ * @method static int getTrustedHeaderSet() * @method static void setTrustedHosts(array $hostPatterns) * @method static string[] getTrustedHosts() - * @method static string normalizeQueryString(string|null $qs) + * @method static string normalizeQueryString(?string $qs) * @method static void enableHttpMethodParameterOverride() * @method static bool getHttpMethodParameterOverride() * @method static bool hasPreviousSession() * @method static void setSession(\Symfony\Component\HttpFoundation\Session\SessionInterface $session) * @method static array getClientIps() - * @method static string|null getClientIp() + * @method static ?string getClientIp() * @method static string getScriptName() * @method static string getPathInfo() * @method static string getBasePath() * @method static string getBaseUrl() * @method static string getScheme() * @method static int|string|null getPort() - * @method static string|null getUser() - * @method static string|null getPassword() - * @method static string|null getUserInfo() + * @method static ?string getUser() + * @method static ?string getPassword() + * @method static ?string getUserInfo() * @method static string getHttpHost() * @method static string getRequestUri() * @method static string getSchemeAndHttpHost() * @method static string getUri() * @method static string getUriForPath(string $path) * @method static string getRelativeUriForPath(string $path) - * @method static string|null getQueryString() + * @method static ?string getQueryString() * @method static bool isSecure() * @method static string getHost() * @method static void setMethod(string $method) * @method static string getMethod() * @method static string getRealMethod() - * @method static string|null getMimeType(string $format) + * @method static ?string getMimeType(string $format) * @method static string[] getMimeTypes(string $format) - * @method static string|null getFormat(string|null $mimeType) - * @method static void setFormat(string|null $format, string|string[] $mimeTypes) - * @method static string|null getRequestFormat(string|null $default = 'html') - * @method static void setRequestFormat(string|null $format) - * @method static string|null getContentTypeFormat() + * @method static ?string getFormat(?string $mimeType) + * @method static void setFormat(?string $format, string|string[] $mimeTypes) + * @method static ?string getRequestFormat(?string $default = 'html') + * @method static void setRequestFormat(?string $format) + * @method static ?string getContentTypeFormat() * @method static void setDefaultLocale(string $locale) * @method static string getDefaultLocale() * @method static void setLocale(string $locale) @@ -104,12 +104,12 @@ * @method static bool isMethodSafe() * @method static bool isMethodIdempotent() * @method static bool isMethodCacheable() - * @method static string|null getProtocolVersion() + * @method static ?string getProtocolVersion() * @method static string|resource getContent(bool $asResource = false) * @method static array getETags() * @method static bool isNoCache() - * @method static string|null getPreferredFormat(string|null $default = 'html') - * @method static string|null getPreferredLanguage(string[] $locales = null) + * @method static ?string getPreferredFormat(?string $default = 'html') + * @method static ?string getPreferredLanguage(string[] $locales = null) * @method static string[] getLanguages() * @method static string[] getCharsets() * @method static string[] getEncodings() @@ -124,21 +124,21 @@ * @method static bool expectsJson() * @method static bool wantsJson() * @method static bool accepts(string|array $contentTypes) - * @method static string|null prefers(string|array $contentTypes) + * @method static ?string prefers(string|array $contentTypes) * @method static bool acceptsAnyContentType() * @method static bool acceptsJson() * @method static bool acceptsHtml() * @method static bool matchesType(string $actual, string $type) * @method static string format(string $default = 'html') - * @method static string|array|null old(string|null $key = null, \Illuminate\Database\Eloquent\Model|string|array|null $default = null) + * @method static string|array|null old(?string $key = null, \Illuminate\Database\Eloquent\Model|string|array|null $default = null) * @method static void flash() * @method static void flashOnly(array|mixed $keys) * @method static void flashExcept(array|mixed $keys) * @method static void flush() - * @method static string|array|null server(string|null $key = null, string|array|null $default = null) + * @method static string|array|null server(?string $key = null, string|array|null $default = null) * @method static bool hasHeader(string $key) - * @method static string|array|null header(string|null $key = null, string|array|null $default = null) - * @method static string|null bearerToken() + * @method static string|array|null header(?string $key = null, string|array|null $default = null) + * @method static ?string bearerToken() * @method static bool exists(string|array $key) * @method static bool has(string|array $key) * @method static bool hasAny(string|array $keys) @@ -151,24 +151,24 @@ * @method static \Illuminate\Http\Request|mixed whenMissing(string $key, callable $callback, callable|null $default = null) * @method static array keys() * @method static array all(array|mixed|null $keys = null) - * @method static mixed input(string|null $key = null, mixed $default = null) + * @method static mixed input(?string $key = null, mixed $default = null) * @method static \Illuminate\Support\Stringable str(string $key, mixed $default = null) * @method static \Illuminate\Support\Stringable string(string $key, mixed $default = null) - * @method static bool boolean(string|null $key = null, bool $default = false) + * @method static bool boolean(?string $key = null, bool $default = false) * @method static int integer(string $key, int $default = 0) * @method static float float(string $key, float $default = 0) - * @method static \Illuminate\Support\Carbon|null date(string $key, string|null $format = null, string|null $tz = null) + * @method static \Illuminate\Support\Carbon|null date(string $key, ?string $format = null, ?string $tz = null) * @method static object|null enum(string $key, string $enumClass) * @method static \Illuminate\Support\Collection collect(array|string|null $key = null) * @method static array only(array|mixed $keys) * @method static array except(array|mixed $keys) - * @method static string|array|null query(string|null $key = null, string|array|null $default = null) - * @method static string|array|null post(string|null $key = null, string|array|null $default = null) + * @method static string|array|null query(?string $key = null, string|array|null $default = null) + * @method static string|array|null post(?string $key = null, string|array|null $default = null) * @method static bool hasCookie(string $key) - * @method static string|array|null cookie(string|null $key = null, string|array|null $default = null) + * @method static string|array|null cookie(?string $key = null, string|array|null $default = null) * @method static array allFiles() * @method static bool hasFile(string $key) - * @method static \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null file(string|null $key = null, mixed $default = null) + * @method static \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null file(?string $key = null, mixed $default = null) * @method static never dd(mixed ...$keys) * @method static \Illuminate\Http\Request dump(mixed $keys = []) * @method static void macro(string $name, object|callable $macro) diff --git a/src/Illuminate/Support/Facades/Response.php b/src/Illuminate/Support/Facades/Response.php index 6a9d46f2c6db..2a87c51e3cb5 100755 --- a/src/Illuminate/Support/Facades/Response.php +++ b/src/Illuminate/Support/Facades/Response.php @@ -11,8 +11,8 @@ * @method static \Illuminate\Http\JsonResponse json(mixed $data = [], int $status = 200, array $headers = [], int $options = 0) * @method static \Illuminate\Http\JsonResponse jsonp(string $callback, mixed $data = [], int $status = 200, array $headers = [], int $options = 0) * @method static \Symfony\Component\HttpFoundation\StreamedResponse stream(callable $callback, int $status = 200, array $headers = []) - * @method static \Symfony\Component\HttpFoundation\StreamedResponse streamDownload(callable $callback, string|null $name = null, array $headers = [], string|null $disposition = 'attachment') - * @method static \Symfony\Component\HttpFoundation\BinaryFileResponse download(\SplFileInfo|string $file, string|null $name = null, array $headers = [], string|null $disposition = 'attachment') + * @method static \Symfony\Component\HttpFoundation\StreamedResponse streamDownload(callable $callback, ?string $name = null, array $headers = [], ?string $disposition = 'attachment') + * @method static \Symfony\Component\HttpFoundation\BinaryFileResponse download(\SplFileInfo|string $file, ?string $name = null, array $headers = [], ?string $disposition = 'attachment') * @method static \Symfony\Component\HttpFoundation\BinaryFileResponse file(\SplFileInfo|string $file, array $headers = []) * @method static \Illuminate\Http\RedirectResponse redirectTo(string $path, int $status = 302, array $headers = [], bool|null $secure = null) * @method static \Illuminate\Http\RedirectResponse redirectToRoute(string $route, mixed $parameters = [], int $status = 302, array $headers = []) diff --git a/src/Illuminate/Support/Facades/Route.php b/src/Illuminate/Support/Facades/Route.php index 6fdaf6ee11bc..95690dbfe651 100755 --- a/src/Illuminate/Support/Facades/Route.php +++ b/src/Illuminate/Support/Facades/Route.php @@ -55,15 +55,15 @@ * @method static void patterns(array $patterns) * @method static bool hasGroupStack() * @method static array getGroupStack() - * @method static mixed input(string $key, string|null $default = null) + * @method static mixed input(string $key, ?string $default = null) * @method static \Illuminate\Http\Request getCurrentRequest() * @method static \Illuminate\Routing\Route|null getCurrentRoute() * @method static \Illuminate\Routing\Route|null current() * @method static bool has(string|array $name) - * @method static string|null currentRouteName() + * @method static ?string currentRouteName() * @method static bool is(mixed ...$patterns) * @method static bool currentRouteNamed(mixed ...$patterns) - * @method static string|null currentRouteAction() + * @method static ?string currentRouteAction() * @method static bool uses(array ...$patterns) * @method static bool currentRouteUses(string $action) * @method static void singularResourceParameters(bool $singular = true) @@ -91,7 +91,7 @@ * @method static \Illuminate\Routing\RouteRegistrar domain(string $value) * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware) * @method static \Illuminate\Routing\RouteRegistrar name(string $value) - * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value) + * @method static \Illuminate\Routing\RouteRegistrar namespace(?string $value) * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix) * @method static \Illuminate\Routing\RouteRegistrar scopeBindings() * @method static \Illuminate\Routing\RouteRegistrar where(array $where) diff --git a/src/Illuminate/Support/Facades/Schema.php b/src/Illuminate/Support/Facades/Schema.php index f3084d04d130..70113782ea77 100755 --- a/src/Illuminate/Support/Facades/Schema.php +++ b/src/Illuminate/Support/Facades/Schema.php @@ -48,7 +48,7 @@ class Schema extends Facade /** * Get a schema builder instance for a connection. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Database\Schema\Builder */ public static function connection($name) diff --git a/src/Illuminate/Support/Facades/Session.php b/src/Illuminate/Support/Facades/Session.php index a36f61334d2a..217bb29a91e1 100755 --- a/src/Illuminate/Support/Facades/Session.php +++ b/src/Illuminate/Support/Facades/Session.php @@ -4,11 +4,11 @@ /** * @method static bool shouldBlock() - * @method static string|null blockDriver() + * @method static ?string blockDriver() * @method static array getSessionConfig() * @method static string getDefaultDriver() * @method static void setDefaultDriver(string $name) - * @method static mixed driver(string|null $driver = null) + * @method static mixed driver(?string $driver = null) * @method static \Illuminate\Session\SessionManager extend(string $driver, \Closure $callback) * @method static array getDrivers() * @method static \Illuminate\Contracts\Container\Container getContainer() @@ -24,8 +24,8 @@ * @method static bool has(string|array $key) * @method static mixed get(string $key, mixed $default = null) * @method static mixed pull(string $key, mixed $default = null) - * @method static bool hasOldInput(string|null $key = null) - * @method static mixed getOldInput(string|null $key = null, mixed $default = null) + * @method static bool hasOldInput(?string $key = null) + * @method static mixed getOldInput(?string $key = null, mixed $default = null) * @method static void replace(array $attributes) * @method static void put(string|array $key, mixed $value = null) * @method static mixed remember(string $key, \Closure $callback) @@ -52,7 +52,7 @@ * @method static void setExists(bool $value) * @method static string token() * @method static void regenerateToken() - * @method static string|null previousUrl() + * @method static ?string previousUrl() * @method static void setPreviousUrl(string $url) * @method static void passwordConfirmed() * @method static \SessionHandlerInterface getHandler() diff --git a/src/Illuminate/Support/Facades/Storage.php b/src/Illuminate/Support/Facades/Storage.php index 0d13bb507df2..b55816400c6f 100644 --- a/src/Illuminate/Support/Facades/Storage.php +++ b/src/Illuminate/Support/Facades/Storage.php @@ -5,8 +5,8 @@ use Illuminate\Filesystem\Filesystem; /** - * @method static \Illuminate\Contracts\Filesystem\Filesystem drive(string|null $name = null) - * @method static \Illuminate\Contracts\Filesystem\Filesystem disk(string|null $name = null) + * @method static \Illuminate\Contracts\Filesystem\Filesystem drive(?string $name = null) + * @method static \Illuminate\Contracts\Filesystem\Filesystem disk(?string $name = null) * @method static \Illuminate\Contracts\Filesystem\Filesystem cloud() * @method static \Illuminate\Contracts\Filesystem\Filesystem build(string|array $config) * @method static \Illuminate\Contracts\Filesystem\Filesystem createLocalDriver(array $config) @@ -18,11 +18,11 @@ * @method static string getDefaultDriver() * @method static string getDefaultCloudDriver() * @method static \Illuminate\Filesystem\FilesystemManager forgetDisk(array|string $disk) - * @method static void purge(string|null $name = null) + * @method static void purge(?string $name = null) * @method static \Illuminate\Filesystem\FilesystemManager extend(string $driver, \Closure $callback) * @method static \Illuminate\Filesystem\FilesystemManager setApplication(\Illuminate\Contracts\Foundation\Application $app) * @method static bool exists(string $path) - * @method static string|null get(string $path) + * @method static ?string get(string $path) * @method static resource|null readStream(string $path) * @method static bool put(string $path, string|resource $contents, mixed $options = []) * @method static bool writeStream(string $path, resource $resource, array $options = []) @@ -35,13 +35,13 @@ * @method static bool move(string $from, string $to) * @method static int size(string $path) * @method static int lastModified(string $path) - * @method static array files(string|null $directory = null, bool $recursive = false) - * @method static array allFiles(string|null $directory = null) - * @method static array directories(string|null $directory = null, bool $recursive = false) - * @method static array allDirectories(string|null $directory = null) + * @method static array files(?string $directory = null, bool $recursive = false) + * @method static array allFiles(?string $directory = null) + * @method static array directories(?string $directory = null, bool $recursive = false) + * @method static array allDirectories(?string $directory = null) * @method static bool makeDirectory(string $path) * @method static bool deleteDirectory(string $directory) - * @method static \Illuminate\Filesystem\FilesystemAdapter assertExists(string|array $path, string|null $content = null) + * @method static \Illuminate\Filesystem\FilesystemAdapter assertExists(string|array $path, ?string $content = null) * @method static \Illuminate\Filesystem\FilesystemAdapter assertMissing(string|array $path) * @method static \Illuminate\Filesystem\FilesystemAdapter assertDirectoryEmpty(string $path) * @method static bool missing(string $path) @@ -50,8 +50,8 @@ * @method static bool directoryExists(string $path) * @method static bool directoryMissing(string $path) * @method static string path(string $path) - * @method static \Symfony\Component\HttpFoundation\StreamedResponse response(string $path, string|null $name = null, array $headers = [], string|null $disposition = 'inline') - * @method static \Symfony\Component\HttpFoundation\StreamedResponse download(string $path, string|null $name = null, array $headers = []) + * @method static \Symfony\Component\HttpFoundation\StreamedResponse response(string $path, ?string $name = null, array $headers = [], ?string $disposition = 'inline') + * @method static \Symfony\Component\HttpFoundation\StreamedResponse download(string $path, ?string $name = null, array $headers = []) * @method static string|false putFile(string $path, \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file, mixed $options = []) * @method static string|false putFileAs(string $path, \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file, string $name, mixed $options = []) * @method static string|false checksum(string $path, array $options = []) @@ -85,7 +85,7 @@ class Storage extends Facade /** * Replace the given disk with a local testing disk. * - * @param string|null $disk + * @param ?string $disk * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ @@ -113,7 +113,7 @@ public static function fake($disk = null, array $config = []) /** * Replace the given disk with a persistent local testing disk. * - * @param string|null $disk + * @param ?string $disk * @param array $config * @return \Illuminate\Contracts\Filesystem\Filesystem */ diff --git a/src/Illuminate/Support/Facades/URL.php b/src/Illuminate/Support/Facades/URL.php index 8da96f482d99..0e94dde871ab 100755 --- a/src/Illuminate/Support/Facades/URL.php +++ b/src/Illuminate/Support/Facades/URL.php @@ -23,13 +23,13 @@ * @method static string toRoute(\Illuminate\Routing\Route $route, mixed $parameters, bool $absolute) * @method static string action(string|array $action, mixed $parameters = [], bool $absolute = true) * @method static array formatParameters(mixed|array $parameters) - * @method static string formatRoot(string $scheme, string|null $root = null) + * @method static string formatRoot(string $scheme, ?string $root = null) * @method static string format(string $root, string $path, \Illuminate\Routing\Route|null $route = null) * @method static bool isValidUrl(string $path) * @method static void defaults(array $defaults) * @method static array getDefaultParameters() - * @method static void forceScheme(string|null $scheme) - * @method static void forceRootUrl(string|null $root) + * @method static void forceScheme(?string $scheme) + * @method static void forceRootUrl(?string $root) * @method static \Illuminate\Routing\UrlGenerator formatHostUsing(\Closure $callback) * @method static \Illuminate\Routing\UrlGenerator formatPathUsing(\Closure $callback) * @method static \Closure pathFormatter() diff --git a/src/Illuminate/Support/Facades/Validator.php b/src/Illuminate/Support/Facades/Validator.php index 4d7002b391ae..479dabe4803d 100755 --- a/src/Illuminate/Support/Facades/Validator.php +++ b/src/Illuminate/Support/Facades/Validator.php @@ -5,9 +5,9 @@ /** * @method static \Illuminate\Validation\Validator make(array $data, array $rules, array $messages = [], array $customAttributes = []) * @method static array validate(array $data, array $rules, array $messages = [], array $customAttributes = []) - * @method static void extend(string $rule, \Closure|string $extension, string|null $message = null) - * @method static void extendImplicit(string $rule, \Closure|string $extension, string|null $message = null) - * @method static void extendDependent(string $rule, \Closure|string $extension, string|null $message = null) + * @method static void extend(string $rule, \Closure|string $extension, ?string $message = null) + * @method static void extendImplicit(string $rule, \Closure|string $extension, ?string $message = null) + * @method static void extendDependent(string $rule, \Closure|string $extension, ?string $message = null) * @method static void replacer(string $rule, \Closure|string $replacer) * @method static void includeUnvalidatedArrayKeys() * @method static void excludeUnvalidatedArrayKeys() diff --git a/src/Illuminate/Support/Facades/View.php b/src/Illuminate/Support/Facades/View.php index 10eaa645d548..c31dca43b596 100755 --- a/src/Illuminate/Support/Facades/View.php +++ b/src/Illuminate/Support/Facades/View.php @@ -43,7 +43,7 @@ * @method static void startComponentFirst(array $names, array $data = []) * @method static string renderComponent() * @method static mixed|null getConsumableComponentData(string $key, mixed $default = null) - * @method static void slot(string $name, string|null $content = null, array $attributes = []) + * @method static void slot(string $name, ?string $content = null, array $attributes = []) * @method static void endSlot() * @method static array creator(array|string $views, \Closure|string $callback) * @method static array composers(array $composers) @@ -52,10 +52,10 @@ * @method static void callCreator(\Illuminate\Contracts\View\View $view) * @method static void startFragment(string $fragment) * @method static string stopFragment() - * @method static mixed getFragment(string $name, string|null $default = null) + * @method static mixed getFragment(string $name, ?string $default = null) * @method static array getFragments() * @method static void flushFragments() - * @method static void startSection(string $section, string|null $content = null) + * @method static void startSection(string $section, ?string $content = null) * @method static void inject(string $section, string $content) * @method static string yieldSection() * @method static string stopSection(bool $overwrite = false) @@ -64,7 +64,7 @@ * @method static string parentPlaceholder(string $section = '') * @method static bool hasSection(string $name) * @method static bool sectionMissing(string $name) - * @method static mixed getSection(string $name, string|null $default = null) + * @method static mixed getSection(string $name, ?string $default = null) * @method static array getSections() * @method static void flushSections() * @method static void addLoop(\Countable|array $data) diff --git a/src/Illuminate/Support/Facades/Vite.php b/src/Illuminate/Support/Facades/Vite.php index ef1e7f8ede3f..7eb7ec070797 100644 --- a/src/Illuminate/Support/Facades/Vite.php +++ b/src/Illuminate/Support/Facades/Vite.php @@ -4,7 +4,7 @@ /** * @method static array preloadedAssets() - * @method static string|null cspNonce() + * @method static ?string cspNonce() * @method static string useCspNonce(?string $nonce = null) * @method static \Illuminate\Foundation\Vite useIntegrityKey(string|false $key) * @method static \Illuminate\Foundation\Vite withEntryPoints(array $entryPoints) @@ -16,8 +16,8 @@ * @method static \Illuminate\Foundation\Vite useStyleTagAttributes(callable|array $attributes) * @method static \Illuminate\Foundation\Vite usePreloadTagAttributes(callable|array|false $attributes) * @method static \Illuminate\Support\HtmlString|void reactRefresh() - * @method static string asset(string $asset, string|null $buildDirectory = null) - * @method static string|null manifestHash(string|null $buildDirectory = null) + * @method static string asset(string $asset, ?string $buildDirectory = null) + * @method static ?string manifestHash(?string $buildDirectory = null) * @method static bool isRunningHot() * @method static string toHtml() * @method static void macro(string $name, object|callable $macro) diff --git a/src/Illuminate/Support/Manager.php b/src/Illuminate/Support/Manager.php index f8ae0729b16f..56ca8692fa51 100755 --- a/src/Illuminate/Support/Manager.php +++ b/src/Illuminate/Support/Manager.php @@ -58,7 +58,7 @@ abstract public function getDefaultDriver(); /** * Get a driver instance. * - * @param string|null $driver + * @param ?string $driver * @return mixed * * @throws \InvalidArgumentException diff --git a/src/Illuminate/Support/MessageBag.php b/src/Illuminate/Support/MessageBag.php index 88ebfb08b71e..a88b0ee4d07e 100755 --- a/src/Illuminate/Support/MessageBag.php +++ b/src/Illuminate/Support/MessageBag.php @@ -162,8 +162,8 @@ public function hasAny($keys = []) /** * Get the first message from the message bag for a given key. * - * @param string|null $key - * @param string|null $format + * @param ?string $key + * @param ?string $format * @return string */ public function first($key = null, $format = null) @@ -179,7 +179,7 @@ public function first($key = null, $format = null) * Get all of the messages from the message bag for a given key. * * @param string $key - * @param string|null $format + * @param ?string $format * @return array */ public function get($key, $format = null) @@ -204,7 +204,7 @@ public function get($key, $format = null) * Get the messages for a wildcard key. * * @param string $key - * @param string|null $format + * @param ?string $format * @return array */ protected function getMessagesForWildcardKey($key, $format) @@ -223,7 +223,7 @@ protected function getMessagesForWildcardKey($key, $format) /** * Get all of the messages for every key in the message bag. * - * @param string|null $format + * @param ?string $format * @return array */ public function all($format = null) @@ -242,7 +242,7 @@ public function all($format = null) /** * Get all of the unique messages for every key in the message bag. * - * @param string|null $format + * @param ?string $format * @return array */ public function unique($format = null) diff --git a/src/Illuminate/Support/MultipleInstanceManager.php b/src/Illuminate/Support/MultipleInstanceManager.php index 8544bdf71b34..138d7c7e5384 100644 --- a/src/Illuminate/Support/MultipleInstanceManager.php +++ b/src/Illuminate/Support/MultipleInstanceManager.php @@ -66,7 +66,7 @@ abstract public function getInstanceConfig($name); /** * Get an instance instance by name. * - * @param string|null $name + * @param ?string $name * @return mixed */ public function instance($name = null) @@ -153,7 +153,7 @@ public function forgetInstance($name = null) /** * Disconnect the given instance and remove from local cache. * - * @param string|null $name + * @param ?string $name * @return void */ public function purge($name = null) diff --git a/src/Illuminate/Support/Reflector.php b/src/Illuminate/Support/Reflector.php index 1390c9dac965..5fdfd9c5e700 100644 --- a/src/Illuminate/Support/Reflector.php +++ b/src/Illuminate/Support/Reflector.php @@ -60,7 +60,7 @@ public static function isCallable($var, $syntaxOnly = false) * Get the class name of the given parameter's type, if possible. * * @param \ReflectionParameter $parameter - * @return string|null + * @return ?string */ public static function getParameterClassName($parameter) { diff --git a/src/Illuminate/Support/ServiceProvider.php b/src/Illuminate/Support/ServiceProvider.php index 6c530c121d3c..f5a46090970b 100755 --- a/src/Illuminate/Support/ServiceProvider.php +++ b/src/Illuminate/Support/ServiceProvider.php @@ -319,8 +319,8 @@ protected function addPublishGroup($group, $paths) /** * Get the paths to publish. * - * @param string|null $provider - * @param string|null $group + * @param ?string $provider + * @param ?string $group * @return array */ public static function pathsToPublish($provider = null, $group = null) @@ -337,8 +337,8 @@ public static function pathsToPublish($provider = null, $group = null) /** * Get the paths for the provider or group (or both). * - * @param string|null $provider - * @param string|null $group + * @param ?string $provider + * @param ?string $group * @return array */ protected static function pathsForProviderOrGroup($provider, $group) diff --git a/src/Illuminate/Support/Str.php b/src/Illuminate/Support/Str.php index 8b23bfad5edb..a09a9c69b8a3 100644 --- a/src/Illuminate/Support/Str.php +++ b/src/Illuminate/Support/Str.php @@ -118,7 +118,7 @@ public static function ascii($value, $language = 'en') * Transliterate a string to its closest ASCII representation. * * @param string $string - * @param string|null $unknown + * @param ?string $unknown * @param bool|null $strict * @return string */ @@ -294,7 +294,7 @@ public static function endsWith($haystack, $needles) * @param string $text * @param string $phrase * @param array $options - * @return string|null + * @return ?string */ public static function excerpt($text, $phrase = '', $options = []) { @@ -343,7 +343,7 @@ public static function finish($value, $cap) * * @param string $value * @param string $before - * @param string|null $after + * @param ?string $after * @return string */ public static function wrap($value, $before, $after = null) @@ -468,7 +468,7 @@ public static function kebab($value) * Return the length of the given string. * * @param string $value - * @param string|null $encoding + * @param ?string $encoding * @return int */ public static function length($value, $encoding = null) @@ -685,8 +685,8 @@ public static function padRight($value, $length, $pad = ' ') * Parse a Class[@]method style callback into class and method. * * @param string $callback - * @param string|null $default - * @return array + * @param ?string $default + * @return array */ public static function parseCallback($callback, $default = null) { @@ -1012,7 +1012,7 @@ public static function singular($value) * * @param string $title * @param string $separator - * @param string|null $language + * @param ?string $language * @param array $dictionary * @return string */ @@ -1218,7 +1218,7 @@ public static function ucsplit($string) * Get the number of words a string contains. * * @param string $string - * @param string|null $characters + * @param ?string $characters * @return int */ public static function wordCount($string, $characters = null) diff --git a/src/Illuminate/Support/Stringable.php b/src/Illuminate/Support/Stringable.php index 0fc5db25b717..7c2a2793891d 100644 --- a/src/Illuminate/Support/Stringable.php +++ b/src/Illuminate/Support/Stringable.php @@ -230,7 +230,7 @@ public function exactly($value) * * @param string $phrase * @param array $options - * @return string|null + * @return ?string */ public function excerpt($phrase = '', $options = []) { @@ -363,7 +363,7 @@ public function kebab() /** * Return the length of the given string. * - * @param string|null $encoding + * @param ?string $encoding * @return int */ public function length($encoding = null) @@ -501,8 +501,8 @@ public function padRight($length, $pad = ' ') /** * Parse a Class@method style callback into class and method. * - * @param string|null $default - * @return array + * @param ?string $default + * @return array */ public function parseCallback($default = null) { @@ -738,7 +738,7 @@ public function singular() * Generate a URL friendly "slug" from a given string. * * @param string $separator - * @param string|null $language + * @param ?string $language * @param array $dictionary * @return static */ @@ -1071,7 +1071,7 @@ public function words($words = 100, $end = '...') /** * Get the number of words a string contains. * - * @param string|null $characters + * @param ?string $characters * @return int */ public function wordCount($characters = null) @@ -1083,7 +1083,7 @@ public function wordCount($characters = null) * Wrap the string with the given strings. * * @param string $before - * @param string|null $after + * @param ?string $after * @return static */ public function wrap($before, $after = null) @@ -1180,8 +1180,8 @@ public function toBoolean() /** * Get the underlying string value as a Carbon instance. * - * @param string|null $format - * @param string|null $tz + * @param ?string $format + * @param ?string $tz * @return \Illuminate\Support\Carbon * * @throws \Carbon\Exceptions\InvalidFormatException diff --git a/src/Illuminate/Support/Testing/Fakes/MailFake.php b/src/Illuminate/Support/Testing/Fakes/MailFake.php index c95c15a55b5c..5b546559edbd 100644 --- a/src/Illuminate/Support/Testing/Fakes/MailFake.php +++ b/src/Illuminate/Support/Testing/Fakes/MailFake.php @@ -291,7 +291,7 @@ protected function queuedMailablesOf($type) /** * Get a mailer instance by name. * - * @param string|null $name + * @param ?string $name * @return \Illuminate\Contracts\Mail\Mailer */ public function mailer($name = null) @@ -375,7 +375,7 @@ public function send($view, array $data = [], $callback = null) * Queue a new e-mail message for sending. * * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function queue($view, $queue = null) @@ -396,7 +396,7 @@ public function queue($view, $queue = null) * * @param \DateTimeInterface|\DateInterval|int $delay * @param \Illuminate\Contracts\Mail\Mailable|string|array $view - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $view, $queue = null) diff --git a/src/Illuminate/Support/Testing/Fakes/NotificationFake.php b/src/Illuminate/Support/Testing/Fakes/NotificationFake.php index 5991420d3342..57722a054eec 100644 --- a/src/Illuminate/Support/Testing/Fakes/NotificationFake.php +++ b/src/Illuminate/Support/Testing/Fakes/NotificationFake.php @@ -28,7 +28,7 @@ class NotificationFake implements NotificationDispatcher, NotificationFactory /** * Locale used when sending notifications. * - * @var string|null + * @var ?string */ public $locale; @@ -342,7 +342,7 @@ public function sendNow($notifiables, $notification, array $channels = null) /** * Get a channel instance by name. * - * @param string|null $name + * @param ?string $name * @return mixed */ public function channel($name = null) diff --git a/src/Illuminate/Support/Testing/Fakes/QueueFake.php b/src/Illuminate/Support/Testing/Fakes/QueueFake.php index f2caa768daf7..0cf039f41ac9 100644 --- a/src/Illuminate/Support/Testing/Fakes/QueueFake.php +++ b/src/Illuminate/Support/Testing/Fakes/QueueFake.php @@ -303,7 +303,7 @@ public function connection($value = null) /** * Get the size of the queue. * - * @param string|null $queue + * @param ?string $queue * @return int */ public function size($queue = null) @@ -318,7 +318,7 @@ public function size($queue = null) * * @param string|object $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function push($job, $data = '', $queue = null) @@ -378,7 +378,7 @@ protected function shouldDispatchJob($job) * Push a raw payload onto the queue. * * @param string $payload - * @param string|null $queue + * @param ?string $queue * @param array $options * @return mixed */ @@ -393,7 +393,7 @@ public function pushRaw($payload, $queue = null, array $options = []) * @param \DateTimeInterface|\DateInterval|int $delay * @param string|object $job * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function later($delay, $job, $data = '', $queue = null) @@ -431,7 +431,7 @@ public function laterOn($queue, $delay, $job, $data = '') /** * Pop the next job off of the queue. * - * @param string|null $queue + * @param ?string $queue * @return \Illuminate\Contracts\Queue\Job|null */ public function pop($queue = null) @@ -444,7 +444,7 @@ public function pop($queue = null) * * @param array $jobs * @param mixed $data - * @param string|null $queue + * @param ?string $queue * @return mixed */ public function bulk($jobs, $data = '', $queue = null) diff --git a/src/Illuminate/Support/helpers.php b/src/Illuminate/Support/helpers.php index bb8d178f4889..2dc5ca2f42c2 100755 --- a/src/Illuminate/Support/helpers.php +++ b/src/Illuminate/Support/helpers.php @@ -156,7 +156,7 @@ function filled($value) * Get an item from an object using "dot" notation. * * @param object $object - * @param string|null $key + * @param ?string $key * @param mixed $default * @return mixed */ @@ -265,7 +265,7 @@ function retry($times, callable $callback, $sleepMilliseconds = 0, $when = null) /** * Get a new stringable object from the given string. * - * @param string|null $string + * @param ?string $string * @return \Illuminate\Support\Stringable|mixed */ function str($string = null) diff --git a/src/Illuminate/Testing/AssertableJsonString.php b/src/Illuminate/Testing/AssertableJsonString.php index 6d40d50b17bb..f85c6980828a 100644 --- a/src/Illuminate/Testing/AssertableJsonString.php +++ b/src/Illuminate/Testing/AssertableJsonString.php @@ -51,7 +51,7 @@ public function __construct($jsonable) /** * Validate and return the decoded response JSON. * - * @param string|null $key + * @param ?string $key * @return mixed */ public function json($key = null) @@ -63,7 +63,7 @@ public function json($key = null) * Assert that the response JSON has the expected count of items at the given key. * * @param int $count - * @param string|null $key + * @param ?string $key * @return $this */ public function assertCount(int $count, $key = null) diff --git a/src/Illuminate/Testing/Fluent/AssertableJson.php b/src/Illuminate/Testing/Fluent/AssertableJson.php index fde468e33a87..00a0ca642b7c 100644 --- a/src/Illuminate/Testing/Fluent/AssertableJson.php +++ b/src/Illuminate/Testing/Fluent/AssertableJson.php @@ -29,7 +29,7 @@ class AssertableJson implements Arrayable /** * The "dot" path to the current scope. * - * @var string|null + * @var ?string */ private $path; @@ -37,7 +37,7 @@ class AssertableJson implements Arrayable * Create a new fluent, assertable JSON data instance. * * @param array $props - * @param string|null $path + * @param ?string $path * @return void */ protected function __construct(array $props, string $path = null) @@ -64,7 +64,7 @@ protected function dotPath(string $key = ''): string /** * Retrieve a prop within the current scope using "dot" notation. * - * @param string|null $key + * @param ?string $key * @return mixed */ protected function prop(string $key = null) diff --git a/src/Illuminate/Testing/Fluent/Concerns/Debugging.php b/src/Illuminate/Testing/Fluent/Concerns/Debugging.php index e655556cf939..9e0dc121f136 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Debugging.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Debugging.php @@ -7,7 +7,7 @@ trait Debugging /** * Dumps the given props. * - * @param string|null $prop + * @param ?string $prop * @return $this */ public function dump(string $prop = null): self @@ -20,7 +20,7 @@ public function dump(string $prop = null): self /** * Dumps the given props and exits. * - * @param string|null $prop + * @param ?string $prop * @return never */ public function dd(string $prop = null): void @@ -31,7 +31,7 @@ public function dd(string $prop = null): void /** * Retrieve a prop within the current scope using "dot" notation. * - * @param string|null $key + * @param ?string $key * @return mixed */ abstract protected function prop(string $key = null); diff --git a/src/Illuminate/Testing/Fluent/Concerns/Has.php b/src/Illuminate/Testing/Fluent/Concerns/Has.php index 7765f4a061a5..389229612d2d 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Has.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Has.php @@ -182,7 +182,7 @@ abstract protected function interactsWith(string $key): void; /** * Retrieve a prop within the current scope using "dot" notation. * - * @param string|null $key + * @param ?string $key * @return mixed */ abstract protected function prop(string $key = null); diff --git a/src/Illuminate/Testing/Fluent/Concerns/Interaction.php b/src/Illuminate/Testing/Fluent/Concerns/Interaction.php index 15e7e9508f55..8794fa7cbd3b 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Interaction.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Interaction.php @@ -60,7 +60,7 @@ public function etc(): self /** * Retrieve a prop within the current scope using "dot" notation. * - * @param string|null $key + * @param ?string $key * @return mixed */ abstract protected function prop(string $key = null); diff --git a/src/Illuminate/Testing/Fluent/Concerns/Matching.php b/src/Illuminate/Testing/Fluent/Concerns/Matching.php index 9ff7a31823ea..a8534f2cbbe8 100644 --- a/src/Illuminate/Testing/Fluent/Concerns/Matching.php +++ b/src/Illuminate/Testing/Fluent/Concerns/Matching.php @@ -229,7 +229,7 @@ abstract public function has(string $key, $value = null, Closure $scope = null); /** * Retrieve a prop within the current scope using "dot" notation. * - * @param string|null $key + * @param ?string $key * @return mixed */ abstract protected function prop(string $key = null); diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index 583318f2c43e..cbb38eedea2f 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -215,7 +215,7 @@ protected function statusMessageWithDetails($expected, $actual) /** * Assert whether the response is redirecting to a given URI. * - * @param string|null $uri + * @param ?string $uri * @return $this */ public function assertRedirect($uri = null) @@ -280,7 +280,7 @@ public function assertRedirectToRoute($name, $parameters = []) /** * Assert whether the response is redirecting to a given signed route. * - * @param string|null $name + * @param ?string $name * @param mixed $parameters * @return $this */ @@ -373,7 +373,7 @@ public function assertLocation($uri) /** * Assert that the response offers a file download. * - * @param string|null $filename + * @param ?string $filename * @return $this */ public function assertDownload($filename = null) @@ -838,7 +838,7 @@ public function assertJsonStructure(array $structure = null, $responseData = nul * Assert that the response JSON has the expected count of items at the given key. * * @param int $count - * @param string|null $key + * @param ?string $key * @return $this */ public function assertJsonCount(int $count, $key = null) @@ -993,7 +993,7 @@ public function decodeResponseJson() /** * Validate and return the decoded response JSON. * - * @param string|null $key + * @param ?string $key * @return mixed */ public function json($key = null) @@ -1004,7 +1004,7 @@ public function json($key = null) /** * Get the JSON decoded body of the response as a collection. * - * @param string|null $key + * @param ?string $key * @return \Illuminate\Support\Collection */ public function collect($key = null) @@ -1342,7 +1342,7 @@ public function assertSessionHasErrors($keys = [], $format = null, $errorBag = ' * Assert that the session is missing the given errors. * * @param string|array $keys - * @param string|null $format + * @param ?string $format * @param string $errorBag * @return $this */ @@ -1496,7 +1496,7 @@ public function ddSession($keys = []) /** * Dump the content from the response. * - * @param string|null $key + * @param ?string $key * @return $this */ public function dump($key = null) diff --git a/src/Illuminate/Translation/ArrayLoader.php b/src/Illuminate/Translation/ArrayLoader.php index 117e0440ee31..db6f40e5a61d 100644 --- a/src/Illuminate/Translation/ArrayLoader.php +++ b/src/Illuminate/Translation/ArrayLoader.php @@ -18,7 +18,7 @@ class ArrayLoader implements Loader * * @param string $locale * @param string $group - * @param string|null $namespace + * @param ?string $namespace * @return array */ public function load($locale, $group, $namespace = null) @@ -57,7 +57,7 @@ public function addJsonPath($path) * @param string $locale * @param string $group * @param array $messages - * @param string|null $namespace + * @param ?string $namespace * @return $this */ public function addMessages($locale, $group, array $messages, $namespace = null) diff --git a/src/Illuminate/Translation/FileLoader.php b/src/Illuminate/Translation/FileLoader.php index f359a8e5584d..e78aa7bfc62c 100755 --- a/src/Illuminate/Translation/FileLoader.php +++ b/src/Illuminate/Translation/FileLoader.php @@ -54,7 +54,7 @@ public function __construct(Filesystem $files, $path) * * @param string $locale * @param string $group - * @param string|null $namespace + * @param ?string $namespace * @return array */ public function load($locale, $group, $namespace = null) diff --git a/src/Illuminate/Translation/PotentiallyTranslatedString.php b/src/Illuminate/Translation/PotentiallyTranslatedString.php index f46db3522429..791b426fe3ed 100644 --- a/src/Illuminate/Translation/PotentiallyTranslatedString.php +++ b/src/Illuminate/Translation/PotentiallyTranslatedString.php @@ -16,7 +16,7 @@ class PotentiallyTranslatedString implements Stringable /** * The translated string. * - * @var string|null + * @var ?string */ protected $translation; @@ -44,7 +44,7 @@ public function __construct($string, $translator) * Translate the string. * * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return $this */ public function translate($replace = [], $locale = null) @@ -59,7 +59,7 @@ public function translate($replace = [], $locale = null) * * @param \Countable|int|array $number * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return $this */ public function translateChoice($number, array $replace = [], $locale = null) diff --git a/src/Illuminate/Translation/Translator.php b/src/Illuminate/Translation/Translator.php index 048423f7aed6..a873b2859354 100755 --- a/src/Illuminate/Translation/Translator.php +++ b/src/Illuminate/Translation/Translator.php @@ -74,7 +74,7 @@ public function __construct(Loader $loader, $locale) * Determine if a translation exists for a given locale. * * @param string $key - * @param string|null $locale + * @param ?string $locale * @return bool */ public function hasForLocale($key, $locale = null) @@ -86,7 +86,7 @@ public function hasForLocale($key, $locale = null) * Determine if a translation exists. * * @param string $key - * @param string|null $locale + * @param ?string $locale * @param bool $fallback * @return bool */ @@ -100,7 +100,7 @@ public function has($key, $locale = null, $fallback = true) * * @param string $key * @param array $replace - * @param string|null $locale + * @param ?string $locale * @param bool $fallback * @return string|array */ @@ -147,7 +147,7 @@ public function get($key, array $replace = [], $locale = null, $fallback = true) * @param string $key * @param \Countable|int|array $number * @param array $replace - * @param string|null $locale + * @param ?string $locale * @return string */ public function choice($key, $number, array $replace = [], $locale = null) @@ -173,7 +173,7 @@ public function choice($key, $number, array $replace = [], $locale = null) /** * Get the proper locale for a choice operation. * - * @param string|null $locale + * @param ?string $locale * @return string */ protected function localeForChoice($locale) @@ -327,7 +327,7 @@ public function parseKey($key) /** * Get the array of locales to be checked. * - * @param string|null $locale + * @param ?string $locale * @return array */ protected function localeArray($locale) diff --git a/src/Illuminate/Validation/ClosureValidationRule.php b/src/Illuminate/Validation/ClosureValidationRule.php index 8f247fc37bbf..2222afbf51d5 100644 --- a/src/Illuminate/Validation/ClosureValidationRule.php +++ b/src/Illuminate/Validation/ClosureValidationRule.php @@ -23,7 +23,7 @@ class ClosureValidationRule implements RuleContract /** * The validation error message. * - * @var string|null + * @var ?string */ public $message; diff --git a/src/Illuminate/Validation/Concerns/FormatsMessages.php b/src/Illuminate/Validation/Concerns/FormatsMessages.php index 17d0a4649c1e..3594492c703f 100644 --- a/src/Illuminate/Validation/Concerns/FormatsMessages.php +++ b/src/Illuminate/Validation/Concerns/FormatsMessages.php @@ -76,7 +76,7 @@ protected function getMessage($attribute, $rule) * * @param string $attribute * @param string $rule - * @return string|null + * @return ?string */ protected function getInlineMessage($attribute, $rule) { @@ -93,7 +93,7 @@ protected function getInlineMessage($attribute, $rule) * @param string $attribute * @param string $lowerRule * @param array|null $source - * @return string|null + * @return ?string */ protected function getFromLocalArray($attribute, $lowerRule, $source = null) { @@ -487,7 +487,7 @@ protected function getAttributeList(array $values) * @param string $rule * @param array $parameters * @param \Illuminate\Validation\Validator $validator - * @return string|null + * @return ?string */ protected function callReplacer($message, $attribute, $rule, $parameters, $validator) { diff --git a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php index b6c6e0a3956c..b294312dda09 100644 --- a/src/Illuminate/Validation/Concerns/ValidatesAttributes.php +++ b/src/Illuminate/Validation/Concerns/ValidatesAttributes.php @@ -256,7 +256,7 @@ protected function compareDates($attribute, $value, $parameters, $operator) * Get the date format for an attribute if it has one. * * @param string $attribute - * @return string|null + * @return ?string */ protected function getDateFormat($attribute) { @@ -909,7 +909,7 @@ public function validateUnique($attribute, $value, $parameters) /** * Get the excluded ID column and value for the unique rule. * - * @param string|null $idColumn + * @param ?string $idColumn * @param array $parameters * @return array */ diff --git a/src/Illuminate/Validation/DatabasePresenceVerifier.php b/src/Illuminate/Validation/DatabasePresenceVerifier.php index 9229f06b708a..a784caeff305 100755 --- a/src/Illuminate/Validation/DatabasePresenceVerifier.php +++ b/src/Illuminate/Validation/DatabasePresenceVerifier.php @@ -39,7 +39,7 @@ public function __construct(ConnectionResolverInterface $db) * @param string $column * @param string $value * @param int|null $excludeId - * @param string|null $idColumn + * @param ?string $idColumn * @param array $extra * @return int */ diff --git a/src/Illuminate/Validation/Factory.php b/src/Illuminate/Validation/Factory.php index 88879f4049a9..a1c6504ebc25 100755 --- a/src/Illuminate/Validation/Factory.php +++ b/src/Illuminate/Validation/Factory.php @@ -190,7 +190,7 @@ protected function addExtensions(Validator $validator) * * @param string $rule * @param \Closure|string $extension - * @param string|null $message + * @param ?string $message * @return void */ public function extend($rule, $extension, $message = null) @@ -207,7 +207,7 @@ public function extend($rule, $extension, $message = null) * * @param string $rule * @param \Closure|string $extension - * @param string|null $message + * @param ?string $message * @return void */ public function extendImplicit($rule, $extension, $message = null) @@ -224,7 +224,7 @@ public function extendImplicit($rule, $extension, $message = null) * * @param string $rule * @param \Closure|string $extension - * @param string|null $message + * @param ?string $message * @return void */ public function extendDependent($rule, $extension, $message = null) diff --git a/src/Illuminate/Validation/PresenceVerifierInterface.php b/src/Illuminate/Validation/PresenceVerifierInterface.php index da58a1210a8a..819d1416f4a5 100755 --- a/src/Illuminate/Validation/PresenceVerifierInterface.php +++ b/src/Illuminate/Validation/PresenceVerifierInterface.php @@ -11,7 +11,7 @@ interface PresenceVerifierInterface * @param string $column * @param string $value * @param int|null $excludeId - * @param string|null $idColumn + * @param ?string $idColumn * @param array $extra * @return int */ diff --git a/src/Illuminate/Validation/Rules/Unique.php b/src/Illuminate/Validation/Rules/Unique.php index 1f4e86787050..8440886fdcd5 100644 --- a/src/Illuminate/Validation/Rules/Unique.php +++ b/src/Illuminate/Validation/Rules/Unique.php @@ -27,7 +27,7 @@ class Unique * Ignore the given ID during the unique check. * * @param mixed $id - * @param string|null $idColumn + * @param ?string $idColumn * @return $this */ public function ignore($id, $idColumn = null) @@ -46,7 +46,7 @@ public function ignore($id, $idColumn = null) * Ignore the given model during the unique check. * * @param \Illuminate\Database\Eloquent\Model $model - * @param string|null $idColumn + * @param ?string $idColumn * @return $this */ public function ignoreModel($model, $idColumn = null) diff --git a/src/Illuminate/Validation/Validator.php b/src/Illuminate/Validation/Validator.php index 8a552fae6246..623251d7d668 100755 --- a/src/Illuminate/Validation/Validator.php +++ b/src/Illuminate/Validation/Validator.php @@ -1416,7 +1416,7 @@ public function setFallbackMessages(array $messages) /** * Get the Presence Verifier implementation. * - * @param string|null $connection + * @param ?string $connection * @return \Illuminate\Validation\PresenceVerifierInterface * * @throws \RuntimeException diff --git a/src/Illuminate/View/Compilers/BladeCompiler.php b/src/Illuminate/View/Compilers/BladeCompiler.php index 1435b3567ab5..853b8a908ccf 100644 --- a/src/Illuminate/View/Compilers/BladeCompiler.php +++ b/src/Illuminate/View/Compilers/BladeCompiler.php @@ -161,7 +161,7 @@ class BladeCompiler extends Compiler implements CompilerInterface /** * Compile the view at the given path. * - * @param string|null $path + * @param ?string $path * @return void */ public function compile($path = null) @@ -587,7 +587,7 @@ protected function compileStatement($match) * Call the given directive with the given value. * * @param string $name - * @param string|null $value + * @param ?string $value * @return string */ protected function callCustomDirective($name, $value) @@ -687,7 +687,7 @@ public function check($name, ...$parameters) * Register a class-based component alias directive. * * @param string $class - * @param string|null $alias + * @param ?string $alias * @param string $prefix * @return void */ @@ -744,7 +744,7 @@ public function getClassComponentAliases() * Register a new anonymous component path. * * @param string $path - * @param string|null $prefix + * @param ?string $prefix * @return void */ public function anonymousComponentPath(string $path, string $prefix = null) @@ -766,7 +766,7 @@ public function anonymousComponentPath(string $path, string $prefix = null) * Register an anonymous component namespace. * * @param string $directory - * @param string|null $prefix + * @param ?string $prefix * @return void */ public function anonymousComponentNamespace(string $directory, string $prefix = null) @@ -825,7 +825,7 @@ public function getClassComponentNamespaces() * Register a component alias directive. * * @param string $path - * @param string|null $alias + * @param ?string $alias * @return void */ public function aliasComponent($path, $alias = null) @@ -847,7 +847,7 @@ public function aliasComponent($path, $alias = null) * Register an include alias directive. * * @param string $path - * @param string|null $alias + * @param ?string $alias * @return void */ public function include($path, $alias = null) @@ -859,7 +859,7 @@ public function include($path, $alias = null) * Register an include alias directive. * * @param string $path - * @param string|null $alias + * @param ?string $alias * @return void */ public function aliasInclude($path, $alias = null) diff --git a/src/Illuminate/View/Compilers/ComponentTagCompiler.php b/src/Illuminate/View/Compilers/ComponentTagCompiler.php index 8fee31dd29a4..27f884222404 100644 --- a/src/Illuminate/View/Compilers/ComponentTagCompiler.php +++ b/src/Illuminate/View/Compilers/ComponentTagCompiler.php @@ -310,7 +310,7 @@ public function componentClass(string $component) * * @param \Illuminate\Contracts\View\Factory $viewFactory * @param string $component - * @return string|null + * @return ?string */ protected function guessAnonymousComponentUsingPaths(Factory $viewFactory, string $component) { @@ -345,7 +345,7 @@ protected function guessAnonymousComponentUsingPaths(Factory $viewFactory, strin * * @param \Illuminate\Contracts\View\Factory $viewFactory * @param string $component - * @return string|null + * @return ?string */ protected function guessAnonymousComponentUsingNamespaces(Factory $viewFactory, string $component) { @@ -375,7 +375,7 @@ protected function guessAnonymousComponentUsingNamespaces(Factory $viewFactory, * Find the class for the given component using the registered namespaces. * * @param string $component - * @return string|null + * @return ?string */ public function findClassByComponent(string $component) { diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php b/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php index 2b1c0e8e41d4..b2644bb47ea4 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php @@ -16,7 +16,7 @@ trait CompilesConditionals /** * Compile the if-auth statements into valid PHP. * - * @param string|null $guard + * @param ?string $guard * @return string */ protected function compileAuth($guard = null) @@ -29,7 +29,7 @@ protected function compileAuth($guard = null) /** * Compile the else-auth statements into valid PHP. * - * @param string|null $guard + * @param ?string $guard * @return string */ protected function compileElseAuth($guard = null) @@ -93,7 +93,7 @@ protected function compileEndProduction() /** * Compile the if-guest statements into valid PHP. * - * @param string|null $guard + * @param ?string $guard * @return string */ protected function compileGuest($guard = null) @@ -106,7 +106,7 @@ protected function compileGuest($guard = null) /** * Compile the else-guest statements into valid PHP. * - * @param string|null $guard + * @param ?string $guard * @return string */ protected function compileElseGuest($guard = null) @@ -285,7 +285,7 @@ protected function compileEndSwitch() /** * Compile a once block into valid PHP. * - * @param string|null $id + * @param ?string $id * @return string */ protected function compileOnce($id = null) diff --git a/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php b/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php index 7cbafdb93dd8..62f790ea51e8 100644 --- a/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php +++ b/src/Illuminate/View/Compilers/Concerns/CompilesTranslations.php @@ -7,7 +7,7 @@ trait CompilesTranslations /** * Compile the lang statements into valid PHP. * - * @param string|null $expression + * @param ?string $expression * @return string */ protected function compileLang($expression) diff --git a/src/Illuminate/View/Component.php b/src/Illuminate/View/Component.php index 949803056425..ae3400a2967b 100644 --- a/src/Illuminate/View/Component.php +++ b/src/Illuminate/View/Component.php @@ -384,7 +384,7 @@ public function shouldRender() /** * Get the evaluated view contents for the given view. * - * @param string|null $view + * @param ?string $view * @param \Illuminate\Contracts\Support\Arrayable|array $data * @param array $mergeData * @return \Illuminate\Contracts\View\View diff --git a/src/Illuminate/View/Concerns/ManagesComponents.php b/src/Illuminate/View/Concerns/ManagesComponents.php index f24908f1e936..8d7e69f9ad63 100644 --- a/src/Illuminate/View/Concerns/ManagesComponents.php +++ b/src/Illuminate/View/Concerns/ManagesComponents.php @@ -163,7 +163,7 @@ public function getConsumableComponentData($key, $default = null) * Start the slot rendering process. * * @param string $name - * @param string|null $content + * @param ?string $content * @param array $attributes * @return void */ diff --git a/src/Illuminate/View/Concerns/ManagesFragments.php b/src/Illuminate/View/Concerns/ManagesFragments.php index 7273da64a5f2..b151c7bee6e7 100644 --- a/src/Illuminate/View/Concerns/ManagesFragments.php +++ b/src/Illuminate/View/Concerns/ManagesFragments.php @@ -57,7 +57,7 @@ public function stopFragment() * Get the contents of a fragment. * * @param string $name - * @param string|null $default + * @param ?string $default * @return mixed */ public function getFragment($name, $default = null) diff --git a/src/Illuminate/View/Concerns/ManagesLayouts.php b/src/Illuminate/View/Concerns/ManagesLayouts.php index f04512658761..4168dafeb9d0 100644 --- a/src/Illuminate/View/Concerns/ManagesLayouts.php +++ b/src/Illuminate/View/Concerns/ManagesLayouts.php @@ -40,7 +40,7 @@ trait ManagesLayouts * Start injecting content into a section. * * @param string $section - * @param string|null $content + * @param ?string $content * @return void */ public function startSection($section, $content = null) @@ -224,7 +224,7 @@ public function sectionMissing($name) * Get the contents of a section. * * @param string $name - * @param string|null $default + * @param ?string $default * @return mixed */ public function getSection($name, $default = null) diff --git a/src/Illuminate/View/Factory.php b/src/Illuminate/View/Factory.php index 315edc120dd0..d76cd19b8d3a 100755 --- a/src/Illuminate/View/Factory.php +++ b/src/Illuminate/View/Factory.php @@ -314,7 +314,7 @@ public function getEngineFromPath($path) * Get the extension used by the view file. * * @param string $path - * @return string|null + * @return ?string */ protected function getExtension($path) { diff --git a/tests/Database/DatabaseConnectionTest.php b/tests/Database/DatabaseConnectionTest.php index cfc027e85fcd..8c4366e161a6 100755 --- a/tests/Database/DatabaseConnectionTest.php +++ b/tests/Database/DatabaseConnectionTest.php @@ -497,8 +497,8 @@ class DatabaseConnectionTestMockPDOException extends PDOException * Overrides Exception::__construct, which casts $code to integer, so that we can create * an exception with a string $code consistent with the real PDOException behavior. * - * @param string|null $message - * @param string|null $code + * @param ?string $message + * @param ?string $code * @return void */ public function __construct($message = null, $code = null) diff --git a/tests/Integration/Console/CommandSchedulingTest.php b/tests/Integration/Console/CommandSchedulingTest.php index 8e078f0b531b..e335135a04d4 100644 --- a/tests/Integration/Console/CommandSchedulingTest.php +++ b/tests/Integration/Console/CommandSchedulingTest.php @@ -27,7 +27,7 @@ class CommandSchedulingTest extends TestCase /** * Just in case Testbench starts to ship an `artisan` script, we'll check and save a backup. * - * @var string|null + * @var ?string */ protected $originalArtisan; diff --git a/tests/Integration/Database/EloquentModelCustomCastingTest.php b/tests/Integration/Database/EloquentModelCustomCastingTest.php index 47ce39932720..296524cbcd39 100644 --- a/tests/Integration/Database/EloquentModelCustomCastingTest.php +++ b/tests/Integration/Database/EloquentModelCustomCastingTest.php @@ -258,7 +258,7 @@ class GMPCast implements CastsAttributes, SerializesCastableAttributes * @param string $key * @param string $value * @param array $attributes - * @return string|null + * @return ?string */ public function get($model, $key, $value, $attributes) { @@ -270,7 +270,7 @@ public function get($model, $key, $value, $attributes) * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key - * @param string|null $value + * @param ?string $value * @param array $attributes * @return string */ @@ -303,7 +303,7 @@ class NonNullableString implements CastsAttributes * @param string $key * @param string $value * @param array $attributes - * @return string|null + * @return ?string */ public function get($model, $key, $value, $attributes) { @@ -315,7 +315,7 @@ public function get($model, $key, $value, $attributes) * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key - * @param string|null $value + * @param ?string $value * @param array $attributes * @return string */ diff --git a/tests/Queue/RedisQueueIntegrationTest.php b/tests/Queue/RedisQueueIntegrationTest.php index ae54171c80c3..99d5c871f68f 100644 --- a/tests/Queue/RedisQueueIntegrationTest.php +++ b/tests/Queue/RedisQueueIntegrationTest.php @@ -517,7 +517,7 @@ public function testBulkJobQueuedEvent($driver) /** * @param string $driver * @param string $default - * @param string|null $connection + * @param ?string $connection * @param int $retryAfter * @param int|null $blockFor */