diff --git a/src/Illuminate/Cache/Repository.php b/src/Illuminate/Cache/Repository.php index 114b3ca9d85b..e34c2857291d 100755 --- a/src/Illuminate/Cache/Repository.php +++ b/src/Illuminate/Cache/Repository.php @@ -131,6 +131,8 @@ public function many(array $keys) /** * {@inheritdoc} + * + * @return iterable */ public function getMultiple($keys, $default = null) { @@ -219,6 +221,8 @@ public function put($key, $value, $ttl = null) /** * {@inheritdoc} + * + * @return bool */ public function set($key, $value, $ttl = null) { @@ -276,6 +280,8 @@ protected function putManyForever(array $values) /** * {@inheritdoc} + * + * @return bool */ public function setMultiple($values, $ttl = null) { @@ -439,6 +445,8 @@ public function forget($key) /** * {@inheritdoc} + * + * @return bool */ public function delete($key) { @@ -447,6 +455,8 @@ public function delete($key) /** * {@inheritdoc} + * + * @return bool */ public function deleteMultiple($keys) { @@ -463,6 +473,8 @@ public function deleteMultiple($keys) /** * {@inheritdoc} + * + * @return bool */ public function clear() { diff --git a/src/Illuminate/Console/Application.php b/src/Illuminate/Console/Application.php index 345ab941116e..b68cbbaa8e05 100755 --- a/src/Illuminate/Console/Application.php +++ b/src/Illuminate/Console/Application.php @@ -76,6 +76,8 @@ public function __construct(Container $laravel, Dispatcher $events, $version) /** * {@inheritdoc} + * + * @return int */ public function run(InputInterface $input = null, OutputInterface $output = null) { diff --git a/src/Illuminate/Console/Command.php b/src/Illuminate/Console/Command.php index 4ad47351e4a1..5c8c179f03cf 100755 --- a/src/Illuminate/Console/Command.php +++ b/src/Illuminate/Console/Command.php @@ -163,6 +163,8 @@ protected function resolveCommand($command) /** * {@inheritdoc} + * + * @return bool */ public function isHidden() { @@ -171,6 +173,8 @@ public function isHidden() /** * {@inheritdoc} + * + * @return static */ public function setHidden(bool $hidden) { diff --git a/src/Illuminate/Container/Container.php b/src/Illuminate/Container/Container.php index 6900226de4f9..bf7bb8e559ac 100755 --- a/src/Illuminate/Container/Container.php +++ b/src/Illuminate/Container/Container.php @@ -187,7 +187,9 @@ public function bound($abstract) } /** - * {@inheritdoc} + * {@inheritdoc} + * + * @return bool */ public function has($id) { @@ -693,7 +695,9 @@ public function make($abstract, array $parameters = []) } /** - * {@inheritdoc} + * {@inheritdoc} + * + * @return mixed */ public function get($id) { diff --git a/src/Illuminate/Container/Util.php b/src/Illuminate/Container/Util.php index 8180a45a5798..8f7e9171d6ef 100644 --- a/src/Illuminate/Container/Util.php +++ b/src/Illuminate/Container/Util.php @@ -53,7 +53,7 @@ public static function getParameterClassName($parameter) $type = $parameter->getType(); if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) { - return; + return null; } $name = $type->getName(); diff --git a/src/Illuminate/Database/DBAL/TimestampType.php b/src/Illuminate/Database/DBAL/TimestampType.php index 0ab733cfe520..e2edc0f5147d 100644 --- a/src/Illuminate/Database/DBAL/TimestampType.php +++ b/src/Illuminate/Database/DBAL/TimestampType.php @@ -10,6 +10,8 @@ class TimestampType extends Type { /** * {@inheritdoc} + * + * @return string */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { @@ -97,6 +99,8 @@ protected function getSQLitePlatformSQLDeclaration(array $fieldDeclaration) /** * {@inheritdoc} + * + * @return string */ public function getName() { diff --git a/src/Illuminate/Database/PDO/SqlServerDriver.php b/src/Illuminate/Database/PDO/SqlServerDriver.php index bbb3bbd32397..1373fc49f6e0 100644 --- a/src/Illuminate/Database/PDO/SqlServerDriver.php +++ b/src/Illuminate/Database/PDO/SqlServerDriver.php @@ -6,6 +6,9 @@ class SqlServerDriver extends AbstractSQLServerDriver { + /** + * @return \Doctrine\DBAL\Driver\Connection + */ public function connect(array $params) { return new SqlServerConnection( diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index b614d76085b3..5f0bfe0b2dd8 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -958,6 +958,8 @@ protected function fireAppCallbacks(array $callbacks) /** * {@inheritdoc} + * + * @return \Symfony\Component\HttpFoundation\Response */ public function handle(SymfonyRequest $request, int $type = self::MASTER_REQUEST, bool $catch = true) { diff --git a/src/Illuminate/Http/JsonResponse.php b/src/Illuminate/Http/JsonResponse.php index 5b103480a840..b2e205ce8fe0 100755 --- a/src/Illuminate/Http/JsonResponse.php +++ b/src/Illuminate/Http/JsonResponse.php @@ -34,6 +34,8 @@ public function __construct($data = null, $status = 200, $headers = [], $options /** * {@inheritdoc} + * + * @return static */ public static function fromJsonString(?string $data = null, int $status = 200, array $headers = []) { @@ -65,6 +67,8 @@ public function getData($assoc = false, $depth = 512) /** * {@inheritdoc} + * + * @return static */ public function setData($data = []) { @@ -109,6 +113,8 @@ protected function hasValidJson($jsonError) /** * {@inheritdoc} + * + * @return static */ public function setEncodingOptions($options) { diff --git a/src/Illuminate/Http/Request.php b/src/Illuminate/Http/Request.php index dc03374f6651..934488bd2a40 100644 --- a/src/Illuminate/Http/Request.php +++ b/src/Illuminate/Http/Request.php @@ -456,6 +456,8 @@ public static function createFromBase(SymfonyRequest $request) /** * {@inheritdoc} + * + * @return static */ public function duplicate(array $query = null, array $request = null, array $attributes = null, array $cookies = null, array $files = null, array $server = null) { diff --git a/src/Illuminate/Mail/Transport/ArrayTransport.php b/src/Illuminate/Mail/Transport/ArrayTransport.php index fbedec9560aa..fe6fdf7dd281 100644 --- a/src/Illuminate/Mail/Transport/ArrayTransport.php +++ b/src/Illuminate/Mail/Transport/ArrayTransport.php @@ -26,6 +26,8 @@ public function __construct() /** * {@inheritdoc} + * + * @return int */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { diff --git a/src/Illuminate/Mail/Transport/LogTransport.php b/src/Illuminate/Mail/Transport/LogTransport.php index 43a2faa204ce..21f1aae96df4 100644 --- a/src/Illuminate/Mail/Transport/LogTransport.php +++ b/src/Illuminate/Mail/Transport/LogTransport.php @@ -28,6 +28,8 @@ public function __construct(LoggerInterface $logger) /** * {@inheritdoc} + * + * @return int */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { diff --git a/src/Illuminate/Mail/Transport/MailgunTransport.php b/src/Illuminate/Mail/Transport/MailgunTransport.php index 1c862b1a7f30..256a8c423a80 100644 --- a/src/Illuminate/Mail/Transport/MailgunTransport.php +++ b/src/Illuminate/Mail/Transport/MailgunTransport.php @@ -55,6 +55,8 @@ public function __construct(ClientInterface $client, $key, $domain, $endpoint = /** * {@inheritdoc} + * + * @return int */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { diff --git a/src/Illuminate/Mail/Transport/SesTransport.php b/src/Illuminate/Mail/Transport/SesTransport.php index 76eb2a8a03c3..24eb78f4a5cf 100644 --- a/src/Illuminate/Mail/Transport/SesTransport.php +++ b/src/Illuminate/Mail/Transport/SesTransport.php @@ -36,6 +36,8 @@ public function __construct(SesClient $ses, $options = []) /** * {@inheritdoc} + * + * @return int */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { diff --git a/src/Illuminate/Mail/Transport/Transport.php b/src/Illuminate/Mail/Transport/Transport.php index b26bff3ff57d..62b44957cf0c 100644 --- a/src/Illuminate/Mail/Transport/Transport.php +++ b/src/Illuminate/Mail/Transport/Transport.php @@ -18,6 +18,8 @@ abstract class Transport implements Swift_Transport /** * {@inheritdoc} + * + * @return bool */ public function isStarted() { @@ -42,6 +44,8 @@ public function stop() /** * {@inheritdoc} + * + * @return bool */ public function ping() { diff --git a/src/Illuminate/Session/ArraySessionHandler.php b/src/Illuminate/Session/ArraySessionHandler.php index 1dcaa607feb4..9a0dff1850fc 100644 --- a/src/Illuminate/Session/ArraySessionHandler.php +++ b/src/Illuminate/Session/ArraySessionHandler.php @@ -36,6 +36,8 @@ public function __construct($minutes) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function open($savePath, $sessionName) @@ -45,6 +47,8 @@ public function open($savePath, $sessionName) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function close() @@ -54,6 +58,8 @@ public function close() /** * {@inheritdoc} + * + * @return string|false */ #[\ReturnTypeWillChange] public function read($sessionId) @@ -75,6 +81,8 @@ public function read($sessionId) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function write($sessionId, $data) @@ -89,6 +97,8 @@ public function write($sessionId, $data) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function destroy($sessionId) @@ -102,6 +112,8 @@ public function destroy($sessionId) /** * {@inheritdoc} + * + * @return int|false */ #[\ReturnTypeWillChange] public function gc($lifetime) diff --git a/src/Illuminate/Session/CacheBasedSessionHandler.php b/src/Illuminate/Session/CacheBasedSessionHandler.php index dbff7726da6e..5db2ac55537f 100755 --- a/src/Illuminate/Session/CacheBasedSessionHandler.php +++ b/src/Illuminate/Session/CacheBasedSessionHandler.php @@ -36,6 +36,8 @@ public function __construct(CacheContract $cache, $minutes) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function open($savePath, $sessionName) @@ -45,6 +47,8 @@ public function open($savePath, $sessionName) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function close() @@ -54,6 +58,8 @@ public function close() /** * {@inheritdoc} + * + * @return string|false */ #[\ReturnTypeWillChange] public function read($sessionId) @@ -63,6 +69,8 @@ public function read($sessionId) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function write($sessionId, $data) @@ -72,6 +80,8 @@ public function write($sessionId, $data) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function destroy($sessionId) @@ -81,6 +91,8 @@ public function destroy($sessionId) /** * {@inheritdoc} + * + * @return int|false */ #[\ReturnTypeWillChange] public function gc($lifetime) diff --git a/src/Illuminate/Session/CookieSessionHandler.php b/src/Illuminate/Session/CookieSessionHandler.php index 6437b67c40d1..0a1d9cd4e188 100755 --- a/src/Illuminate/Session/CookieSessionHandler.php +++ b/src/Illuminate/Session/CookieSessionHandler.php @@ -47,6 +47,8 @@ public function __construct(CookieJar $cookie, $minutes) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function open($savePath, $sessionName) @@ -56,6 +58,8 @@ public function open($savePath, $sessionName) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function close() @@ -65,6 +69,8 @@ public function close() /** * {@inheritdoc} + * + * @return string|false */ #[\ReturnTypeWillChange] public function read($sessionId) @@ -82,6 +88,8 @@ public function read($sessionId) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function write($sessionId, $data) @@ -96,6 +104,8 @@ public function write($sessionId, $data) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function destroy($sessionId) @@ -107,6 +117,8 @@ public function destroy($sessionId) /** * {@inheritdoc} + * + * @return int|false */ #[\ReturnTypeWillChange] public function gc($lifetime) diff --git a/src/Illuminate/Session/DatabaseSessionHandler.php b/src/Illuminate/Session/DatabaseSessionHandler.php index 39adc9da2d60..39c463fa71ba 100644 --- a/src/Illuminate/Session/DatabaseSessionHandler.php +++ b/src/Illuminate/Session/DatabaseSessionHandler.php @@ -69,6 +69,8 @@ public function __construct(ConnectionInterface $connection, $table, $minutes, C /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function open($savePath, $sessionName) @@ -78,6 +80,8 @@ public function open($savePath, $sessionName) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function close() @@ -87,6 +91,8 @@ public function close() /** * {@inheritdoc} + * + * @return string|false */ #[\ReturnTypeWillChange] public function read($sessionId) @@ -122,6 +128,8 @@ protected function expired($session) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function write($sessionId, $data) @@ -257,6 +265,8 @@ protected function userAgent() /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function destroy($sessionId) @@ -268,6 +278,8 @@ public function destroy($sessionId) /** * {@inheritdoc} + * + * @return int|false */ #[\ReturnTypeWillChange] public function gc($lifetime) diff --git a/src/Illuminate/Session/FileSessionHandler.php b/src/Illuminate/Session/FileSessionHandler.php index 52928a20d52e..27c5e8fb52f9 100644 --- a/src/Illuminate/Session/FileSessionHandler.php +++ b/src/Illuminate/Session/FileSessionHandler.php @@ -47,6 +47,8 @@ public function __construct(Filesystem $files, $path, $minutes) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function open($savePath, $sessionName) @@ -56,6 +58,8 @@ public function open($savePath, $sessionName) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function close() @@ -65,6 +69,8 @@ public function close() /** * {@inheritdoc} + * + * @return string|false */ #[\ReturnTypeWillChange] public function read($sessionId) @@ -80,6 +86,8 @@ public function read($sessionId) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function write($sessionId, $data) @@ -91,6 +99,8 @@ public function write($sessionId, $data) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function destroy($sessionId) @@ -102,6 +112,8 @@ public function destroy($sessionId) /** * {@inheritdoc} + * + * @return int|false */ #[\ReturnTypeWillChange] public function gc($lifetime) diff --git a/src/Illuminate/Session/NullSessionHandler.php b/src/Illuminate/Session/NullSessionHandler.php index 778f48fa42e3..b9af93ab635f 100644 --- a/src/Illuminate/Session/NullSessionHandler.php +++ b/src/Illuminate/Session/NullSessionHandler.php @@ -8,6 +8,8 @@ class NullSessionHandler implements SessionHandlerInterface { /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function open($savePath, $sessionName) @@ -17,6 +19,8 @@ public function open($savePath, $sessionName) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function close() @@ -26,6 +30,8 @@ public function close() /** * {@inheritdoc} + * + * @return string|false */ #[\ReturnTypeWillChange] public function read($sessionId) @@ -35,6 +41,8 @@ public function read($sessionId) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function write($sessionId, $data) @@ -44,6 +52,8 @@ public function write($sessionId, $data) /** * {@inheritdoc} + * + * @return bool */ #[\ReturnTypeWillChange] public function destroy($sessionId) @@ -53,6 +63,8 @@ public function destroy($sessionId) /** * {@inheritdoc} + * + * @return int|false */ #[\ReturnTypeWillChange] public function gc($lifetime) diff --git a/src/Illuminate/Translation/MessageSelector.php b/src/Illuminate/Translation/MessageSelector.php index c1328d59342d..177fa12f4843 100755 --- a/src/Illuminate/Translation/MessageSelector.php +++ b/src/Illuminate/Translation/MessageSelector.php @@ -61,7 +61,7 @@ private function extractFromString($part, $number) preg_match('/^[\{\[]([^\[\]\{\}]*)[\}\]](.*)/s', $part, $matches); if (count($matches) !== 3) { - return; + return null; } $condition = $matches[1];