diff --git a/.php_cs.dist b/.php-cs-fixer.dist.php
similarity index 82%
rename from .php_cs.dist
rename to .php-cs-fixer.dist.php
index 61ff9d0a10f3d..fe6d31065f43b 100644
--- a/.php_cs.dist
+++ b/.php-cs-fixer.dist.php
@@ -2,13 +2,14 @@
declare(strict_types=1);
-require_once './lib/composer/autoload.php';
+require_once './vendor-bin/cs-fixer/vendor/autoload.php';
use Nextcloud\CodingStandard\Config;
$config = new Config();
$config
->getFinder()
+ ->ignoreVCSIgnored(true)
->exclude('config')
->exclude('data')
->notPath('3rdparty')
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php
index 8a6be4d38093a..93120068c6ab6 100644
--- a/apps/encryption/lib/Crypto/Crypt.php
+++ b/apps/encryption/lib/Crypto/Crypt.php
@@ -237,7 +237,7 @@ private function encrypt($plainContent, $iv, $passPhrase = '', $cipher = self::D
$encryptedContent = openssl_encrypt($plainContent,
$cipher,
$passPhrase,
- false,
+ 0,
$iv);
if (!$encryptedContent) {
@@ -617,7 +617,7 @@ private function decrypt($encryptedContent, $iv, $passPhrase = '', $cipher = sel
$plainContent = openssl_decrypt($encryptedContent,
$cipher,
$passPhrase,
- false,
+ 0,
$iv);
if ($plainContent) {
diff --git a/apps/encryption/lib/KeyManager.php b/apps/encryption/lib/KeyManager.php
index 4a2c6c16e2b0a..ffd07c0f32377 100644
--- a/apps/encryption/lib/KeyManager.php
+++ b/apps/encryption/lib/KeyManager.php
@@ -159,7 +159,7 @@ public function __construct(
$this->config->setAppValue('encryption', 'masterKeyId', $this->masterKeyId);
}
- $this->keyId = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false;
+ $this->keyId = $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false;
$this->log = $log;
}
diff --git a/apps/encryption/lib/Migration/SetMasterKeyStatus.php b/apps/encryption/lib/Migration/SetMasterKeyStatus.php
index 9e800ac7cd352..a80d7144cc430 100644
--- a/apps/encryption/lib/Migration/SetMasterKeyStatus.php
+++ b/apps/encryption/lib/Migration/SetMasterKeyStatus.php
@@ -62,8 +62,8 @@ public function run(IOutput $output) {
// if no config for the master key is set we set it explicitly to '0' in
// order not to break old installations because the default changed to '1'.
- $configAlreadySet = $this->config->getAppValue('encryption', 'useMasterKey', false);
- if ($configAlreadySet === false) {
+ $configAlreadySet = $this->config->getAppValue('encryption', 'useMasterKey', 'not-set');
+ if ($configAlreadySet === 'not-set') {
$this->config->setAppValue('encryption', 'useMasterKey', '0');
}
}
diff --git a/apps/encryption/lib/Recovery.php b/apps/encryption/lib/Recovery.php
index 22a668cd5b034..f4336ec7c4e0a 100644
--- a/apps/encryption/lib/Recovery.php
+++ b/apps/encryption/lib/Recovery.php
@@ -76,7 +76,7 @@ public function __construct(IUserSession $userSession,
IConfig $config,
IFile $file,
View $view) {
- $this->user = ($userSession && $userSession->isLoggedIn()) ? $userSession->getUser() : false;
+ $this->user = ($userSession->isLoggedIn()) ? $userSession->getUser() : null;
$this->crypt = $crypt;
$this->keyManager = $keyManager;
$this->config = $config;
diff --git a/apps/files_external/lib/Lib/Storage/FtpConnection.php b/apps/files_external/lib/Lib/Storage/FtpConnection.php
index d87c44656f402..bc4be18e42e11 100644
--- a/apps/files_external/lib/Lib/Storage/FtpConnection.php
+++ b/apps/files_external/lib/Lib/Storage/FtpConnection.php
@@ -27,7 +27,7 @@
* Low level wrapper around the ftp functions that smooths over some difference between servers
*/
class FtpConnection {
- /** @var resource */
+ /** @var resource|\FTP\Connection */
private $connection;
public function __construct(bool $secure, string $hostname, int $port, string $username, string $password) {
diff --git a/apps/settings/lib/SetupChecks/CheckUserCertificates.php b/apps/settings/lib/SetupChecks/CheckUserCertificates.php
index eff5b4d751564..52fea7b6551d7 100644
--- a/apps/settings/lib/SetupChecks/CheckUserCertificates.php
+++ b/apps/settings/lib/SetupChecks/CheckUserCertificates.php
@@ -39,10 +39,7 @@ class CheckUserCertificates {
public function __construct(IL10N $l10n, IConfig $config, IURLGenerator $urlGenerator) {
$this->l10n = $l10n;
- $configValue = $config->getAppValue('files_external', 'user_certificate_scan', false);
- if (!is_string($configValue)) {
- $configValue = '';
- }
+ $configValue = $config->getAppValue('files_external', 'user_certificate_scan', '');
$this->configValue = $configValue;
$this->urlGenerator = $urlGenerator;
}
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index f79efe9099689..093449ee0ea5f 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -1753,7 +1753,7 @@ private function detectUuidAttribute($dn, $isUser = true, $force = false, array
}
$attribute = $this->connection->getFromCache($uuidAttr);
- if (!$attribute === null) {
+ if ($attribute !== null) {
$this->connection->$uuidAttr = $attribute;
return true;
}
diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php
index 2db51d8b22f7a..faebb471ae6d9 100644
--- a/build/integration/features/bootstrap/WebDav.php
+++ b/build/integration/features/bootstrap/WebDav.php
@@ -585,7 +585,7 @@ public function userUploadsChunkedFiles($user, $name1, $content1, $name2, $conte
$body .= $content3."\r\n";
$body .= '--'.$boundary."--\r\n";
- $stream = fopen('php://temp','r+');
+ $stream = fopen('php://temp', 'r+');
fwrite($stream, $body);
rewind($stream);
diff --git a/build/psalm-baseline-ocp.xml b/build/psalm-baseline-ocp.xml
index 6f6aa5b85e3f0..87a994ea720f8 100644
--- a/build/psalm-baseline-ocp.xml
+++ b/build/psalm-baseline-ocp.xml
@@ -1,5 +1,5 @@
-
+
null|string
@@ -220,7 +220,9 @@
float
-
+
+ \OC
+ \OC
\OC
\OC
\OC
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 8235488b74680..9d4ef09a30b5d 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -1,5 +1,5 @@
-
+
$calendarData
@@ -36,6 +36,11 @@
array
+
+
+ registerEventListener
+
+
$e->getCode()
@@ -44,6 +49,12 @@
!is_array($notification)
+
+
+ registerEventListener
+ registerEventListener
+
+
(int) $comment->getId()
@@ -54,6 +65,11 @@
\Sabre\Uri\split($this->principalUri)
+
+
+ registerEventListener
+
+
new \Sabre\DAV\Auth\Plugin($authBackend, 'ownCloud')
@@ -112,6 +128,36 @@
+
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+
getAppDataDir
@@ -314,6 +360,11 @@
@var VEvent $vevent
+
+
+ $provider::NOTIFICATION_TYPE
+
+
$this->l10n->l('date', $dt, ['width' => 'medium'])
@@ -1005,6 +1056,9 @@
array
+
+ array_values
+
@@ -1022,7 +1076,8 @@
-
+
+ $userSession
$userSession
@@ -1058,9 +1113,6 @@
throw $exception;
-
- $userSession
-
@@ -1068,9 +1120,6 @@
0
1
-
- $userSession
-
@@ -1078,10 +1127,16 @@
-
+
+ $userSession
$userSession
+
+
+ registerEventListener
+
+
$id
@@ -1136,6 +1191,11 @@
null
+
+
+ registerEventListener
+
+
'OCP\Federation\TrustedServerEvent::remove'
@@ -1152,11 +1212,6 @@
$files_list
-
-
- !$dirInfo->getType() === 'dir'
-
-
$this
@@ -1185,6 +1240,12 @@
10 * 1024 * 1024
+
+
+ registerEventListener
+ registerEventListener
+
+
null
@@ -1274,6 +1335,12 @@
$this
+
+
+ registerEventListener
+ registerEventListener
+
+
null
@@ -1323,6 +1390,12 @@
getUniqueStorages
+
+
+ addServiceListener
+ addServiceListener
+
+
self
@@ -1511,6 +1584,16 @@
$_
+
+
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+
+
false
@@ -1530,11 +1613,17 @@
+
+ $permissions
+
$code
$code
Constants::PERMISSION_ALL
+
+ $permissions & Constants::PERMISSION_READ
+
\OCA\Circles\Api\v1\Circles
\OCA\Circles\Api\v1\Circles
@@ -1580,9 +1669,6 @@
-
- $recursive
-
$cacheData
@@ -1605,6 +1691,11 @@
$exception->getMessage()
+
+
+ array_values
+
+
$itemSource
@@ -1717,12 +1808,13 @@
-
- null
-
-
+
+ $trashFiles
$trashFiles
+
+ null
+
$file
getById
@@ -1746,6 +1838,12 @@
$this
+
+
+ registerEventListener
+ registerEventListener
+
+
getChild
@@ -1789,6 +1887,11 @@
+
+
+ registerEventListener
+
+
$quota
@@ -1799,6 +1902,11 @@
+
+ registerEventListener
+ registerEventListener
+ registerEventListener
+
\OC_User::getUser()
@@ -1840,6 +1948,11 @@
isReady
+
+
+ false
+
+
Constants::PERMISSION_ALL
@@ -1876,6 +1989,11 @@
$type
+
+
+ registerEventListener
+
+
$response
@@ -1916,6 +2034,14 @@
$folder !== null
+
+
+ registerEventListener
+ registerEventListener
+ registerEventListener
+ registerEventListener
+
+
bool
@@ -1933,6 +2059,9 @@
+
+ false
+
$this->users
@@ -1977,9 +2106,6 @@
$record
-
- [$attr => $result['values']]
-
$uuid
$values
@@ -2000,8 +2126,7 @@
$limit === 0
is_array($result)
-
- !$attribute === null
+
is_null($findings)
@@ -2137,7 +2262,6 @@
null
- null
$this->getHomePath($ldapEntry[$attr][0])
@@ -2196,10 +2320,20 @@
+
+ registerEventListener
+ registerEventListener
+ registerEventListener
+
registerProvider
+
+
+ registerEventListener
+
+
null
@@ -2294,6 +2428,19 @@
isUserScopeEnabled
+
+
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+ addServiceListener
+
+
$arguments
@@ -2309,17 +2456,6 @@
$arguments
-
-
- null|int
-
-
- null|int
-
-
- null|int
-
-
$result === false
@@ -2330,17 +2466,6 @@
array
-
-
- null|int
-
-
- null|int
-
-
- null|int
-
-
0
@@ -2355,17 +2480,6 @@
getFilteredValues
-
-
- null|int
-
-
- null|int
-
-
- null|int
-
-
IDBConnection::ADD_MISSING_COLUMNS_EVENT
@@ -2521,13 +2635,19 @@
$this
+
+
+ false
+
+
getIcon
-
+
+ $this->memoryCache
$this->memoryCache
@@ -2536,8 +2656,10 @@
getAppsNeedingUpgrade
getIncompatibleApps
-
+
$restrictions
+ addServiceListener
+ addServiceListener
((array)$request->getParam('appid')) !== ''
@@ -2943,14 +3065,6 @@
bool|mixed
-
-
- $user instanceof IUser
-
-
- ''
-
-
$serializedCallable
@@ -3369,7 +3483,8 @@
null
-
+
+ $userObject
$userObject
@@ -3555,6 +3670,9 @@
+
+ $source
+
$source
$target
@@ -3758,6 +3876,11 @@
+
+ \Normalizer::FORM_C
+ \Normalizer::FORM_C
+ \Normalizer::FORM_D
+
$this->namesCache
$this->namesCache
@@ -3848,6 +3971,11 @@
stream_flush
+
+
+ !$isDefaultTemplates
+
+
$mimetype
@@ -3897,9 +4025,11 @@
null
null
-
- $data
+
+ $result
$result && in_array('delete', $hooks) and $result
+ Constants::PERMISSION_READ
+ Constants::PERMISSION_READ
is_resource($source)
@@ -3938,7 +4068,10 @@
$user
-
+
+ $this->emitter
+ $this->emitter
+ $this->emitter
$this->emitter
$this->emitter
$this->emitter
@@ -3981,6 +4114,10 @@
false
+
+ false
+ false
+
$app['path']
$app['path']
@@ -3988,9 +4125,6 @@
null
-
- $archive
-
@@ -4062,7 +4196,8 @@
-
+
+ $request
$request
@@ -4136,10 +4271,6 @@
-
- !($notification instanceof INotification)
- !($notification instanceof INotification)
-
@@ -4239,6 +4370,11 @@
dispatch
+
+
+ false
+
+
$arguments
@@ -4248,6 +4384,9 @@
$arguments
+
+ $counter % 100 === 0
+
@@ -4587,6 +4726,9 @@
+
+ false
+
$this->appendIfExist($this->serverroot, $script.'.js')
$this->appendIfExist($this->serverroot, $theme_dir.$script.'.js')
@@ -4654,6 +4796,9 @@
array|int
+
+ $callback
+
bool|IUser
@@ -4854,9 +4999,6 @@
\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($prevLogging)
\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)
-
- \OCP\Constants::FILENAME_INVALID_CHARS
-
OC_Helper::computerFileSize($userQuota)
@@ -4867,8 +5009,7 @@
$user
OC_User::getUser()
-
- 'off'
+
is_string($expected)
diff --git a/build/stubs/ftp.php b/build/stubs/ftp.php
new file mode 100644
index 0000000000000..c2505d5a5666a
--- /dev/null
+++ b/build/stubs/ftp.php
@@ -0,0 +1,74 @@
+
- * If you are using OpenLDAP 2.x.x you can specify a URL instead of the
- * hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL
- * support, configure PHP with SSL, and set this parameter as
- * ldaps://hostname/.
- *
- * @param int $port [optional]
- * The port to connect to. Not used when using URLs.
- *
- * @return resource|false a positive LDAP link identifier on success, or FALSE on error.
- * When OpenLDAP 2.x.x is used, ldap_connect will always
- * return a resource as it does not actually connect but just
- * initializes the connecting parameters. The actual connect happens with
- * the next calls to ldap_* funcs, usually with
- * ldap_bind.
- *
- *
- * If no arguments are specified then the link identifier of the already
- * opened link will be returned.
- */
-function ldap_connect ($hostname = null, $port = 389) {}
-
-/**
- * Alias of ldap_unbind
- * @link https://php.net/manual/en/function.ldap-close.php
- * @param $link_identifier
- */
-function ldap_close ($link_identifier) {}
-
-/**
- * Bind to LDAP directory
- * @link https://php.net/manual/en/function.ldap-bind.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $bind_rdn [optional]
- * @param string $bind_password [optional]
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_bind ($link_identifier, $bind_rdn = null, $bind_password = null) {}
-
-/**
- * Bind to LDAP directory
- * Does the same thing as ldap_bind() but returns the LDAP result resource to be parsed with ldap_parse_result().
- * @link https://php.net/manual/en/function.ldap-bind.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $bind_rdn [optional]
- * @param string $bind_password [optional]
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false
- * @since 7.3
- */
-function ldap_bind_ext ($link_identifier, $bind_rdn = null, $bind_password = null, $serverctrls = []) {}
-
-
-/**
- * Bind to LDAP directory using SASL
- * @link https://php.net/manual/en/function.ldap-sasl-bind.php
- * @param resource $link
- * @param string $binddn [optional]
- * @param string $password [optional]
- * @param string $sasl_mech [optional]
- * @param string $sasl_realm [optional]
- * @param string $sasl_authc_id [optional]
- * @param string $sasl_authz_id [optional]
- * @param string $props [optional]
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_sasl_bind ($link, $binddn = null, $password = null, $sasl_mech = null, $sasl_realm = null, $sasl_authc_id = null, $sasl_authz_id = null, $props = null) {}
-
-/**
- * Unbind from LDAP directory
- * @link https://php.net/manual/en/function.ldap-unbind.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_unbind ($link_identifier) {}
-
-/**
- * Read an entry
- * @link https://php.net/manual/en/function.ldap-read.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $base_dn
- * The base DN for the directory.
- *
- * @param string $filter
- * An empty filter is not allowed. If you want to retrieve absolutely all
- * information for this entry, use a filter of
- * objectClass=*. If you know which entry types are
- * used on the directory server, you might use an appropriate filter such
- * as objectClass=inetOrgPerson.
- *
- * @param array $attributes [optional]
- * An array of the required attributes, e.g. array("mail", "sn", "cn").
- * Note that the "dn" is always returned irrespective of which attributes
- * types are requested.
- *
- *
- * Using this parameter is much more efficient than the default action
- * (which is to return all attributes and their associated values).
- * The use of this parameter should therefore be considered good
- * practice.
- *
- * @param int $attrsonly [optional]
- * Should be set to 1 if only attribute types are wanted. If set to 0
- * both attributes types and attribute values are fetched which is the
- * default behaviour.
- *
- * @param int $sizelimit [optional]
- * Enables you to limit the count of entries fetched. Setting this to 0
- * means no limit.
- *
- *
- * This parameter can NOT override server-side preset sizelimit. You can
- * set it lower though.
- *
- *
- * Some directory server hosts will be configured to return no more than
- * a preset number of entries. If this occurs, the server will indicate
- * that it has only returned a partial results set. This also occurs if
- * you use this parameter to limit the count of fetched entries.
- *
- * @param int $timelimit [optional]
- * Sets the number of seconds how long is spend on the search. Setting
- * this to 0 means no limit.
- *
- *
- * This parameter can NOT override server-side preset timelimit. You can
- * set it lower though.
- *
- * @param int $deref [optional]
- * Specifies how aliases should be handled during the search. It can be
- * one of the following:
- * LDAP_DEREF_NEVER - (default) aliases are never
- * dereferenced.
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false a search result identifier or FALSE on error.
- */
-function ldap_read ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null, $serverctrls = []) {}
-
-/**
- * Single-level search
- * @link https://php.net/manual/en/function.ldap-list.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $base_dn
- * The base DN for the directory.
- *
- * @param string $filter
- * @param array $attributes [optional]
- * An array of the required attributes, e.g. array("mail", "sn", "cn").
- * Note that the "dn" is always returned irrespective of which attributes
- * types are requested.
- *
- *
- * Using this parameter is much more efficient than the default action
- * (which is to return all attributes and their associated values).
- * The use of this parameter should therefore be considered good
- * practice.
- *
- * @param int $attrsonly [optional]
- * Should be set to 1 if only attribute types are wanted. If set to 0
- * both attributes types and attribute values are fetched which is the
- * default behaviour.
- *
- * @param int $sizelimit [optional]
- * Enables you to limit the count of entries fetched. Setting this to 0
- * means no limit.
- *
- *
- * This parameter can NOT override server-side preset sizelimit. You can
- * set it lower though.
- *
- *
- * Some directory server hosts will be configured to return no more than
- * a preset number of entries. If this occurs, the server will indicate
- * that it has only returned a partial results set. This also occurs if
- * you use this parameter to limit the count of fetched entries.
- *
- * @param int $timelimit [optional]
- * Sets the number of seconds how long is spend on the search. Setting
- * this to 0 means no limit.
- *
- *
- * This parameter can NOT override server-side preset timelimit. You can
- * set it lower though.
- *
- * @param int $deref [optional]
- * Specifies how aliases should be handled during the search. It can be
- * one of the following:
- * LDAP_DEREF_NEVER - (default) aliases are never
- * dereferenced.
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false a search result identifier or FALSE on error.
- */
-function ldap_list ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null, $serverctrls = []) {}
-
-/**
- * Search LDAP tree
- * @link https://php.net/manual/en/function.ldap-search.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $base_dn
- * The base DN for the directory.
- *
- * @param string $filter
- * The search filter can be simple or advanced, using boolean operators in
- * the format described in the LDAP documentation (see the Netscape Directory SDK for full
- * information on filters).
- *
- * @param array $attributes [optional]
- * An array of the required attributes, e.g. array("mail", "sn", "cn").
- * Note that the "dn" is always returned irrespective of which attributes
- * types are requested.
- *
- *
- * Using this parameter is much more efficient than the default action
- * (which is to return all attributes and their associated values).
- * The use of this parameter should therefore be considered good
- * practice.
- *
- * @param int $attrsonly [optional]
- * Should be set to 1 if only attribute types are wanted. If set to 0
- * both attributes types and attribute values are fetched which is the
- * default behaviour.
- *
- * @param int $sizelimit [optional]
- * Enables you to limit the count of entries fetched. Setting this to 0
- * means no limit.
- *
- *
- * This parameter can NOT override server-side preset sizelimit. You can
- * set it lower though.
- *
- *
- * Some directory server hosts will be configured to return no more than
- * a preset number of entries. If this occurs, the server will indicate
- * that it has only returned a partial results set. This also occurs if
- * you use this parameter to limit the count of fetched entries.
- *
- * @param int $timelimit [optional]
- * Sets the number of seconds how long is spend on the search. Setting
- * this to 0 means no limit.
- *
- *
- * This parameter can NOT override server-side preset timelimit. You can
- * set it lower though.
- *
- * @param int $deref [optional]
- * Specifies how aliases should be handled during the search. It can be
- * one of the following:
- * LDAP_DEREF_NEVER - (default) aliases are never
- * dereferenced.
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false a search result identifier or FALSE on error.
- */
-function ldap_search ($link_identifier, $base_dn, $filter, array $attributes = null, $attrsonly = null, $sizelimit = null, $timelimit = null, $deref = null, $serverctrls = []) {}
-
-/**
- * Free result memory
- * @link https://php.net/manual/en/function.ldap-free-result.php
- * @param resource $result_identifier
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_free_result ($result_identifier) {}
-
-/**
- * Count the number of entries in a search
- * @link https://php.net/manual/en/function.ldap-count-entries.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_identifier
- * The internal LDAP result.
- *
- * @return int|false number of entries in the result or FALSE on error.
- */
-function ldap_count_entries ($link_identifier, $result_identifier) {}
-
-/**
- * Return first result id
- * @link https://php.net/manual/en/function.ldap-first-entry.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_identifier
- * @return resource|false the result entry identifier for the first entry on success and
- * FALSE on error.
- */
-function ldap_first_entry ($link_identifier, $result_identifier) {}
-
-/**
- * Get next result entry
- * @link https://php.net/manual/en/function.ldap-next-entry.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_entry_identifier
- * @return resource|false entry identifier for the next entry in the result whose entries
- * are being read starting with ldap_first_entry. If
- * there are no more entries in the result then it returns FALSE.
- */
-function ldap_next_entry ($link_identifier, $result_entry_identifier) {}
-
-/**
- * Get all result entries
- * @link https://php.net/manual/en/function.ldap-get-entries.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_identifier
- * @return array a complete result information in a multi-dimensional array on
- * success and FALSE on error.
- *
- *
- * The structure of the array is as follows.
- * The attribute index is converted to lowercase. (Attributes are
- * case-insensitive for directory servers, but not when used as
- * array indices.)
- *
- * return_value["count"] = number of entries in the result
- * return_value[0] : refers to the details of first entry
- * return_value[i]["dn"] = DN of the ith entry in the result
- * return_value[i]["count"] = number of attributes in ith entry
- * return_value[i][j] = NAME of the jth attribute in the ith entry in the result
- * return_value[i]["attribute"]["count"] = number of values for
- * attribute in ith entry
- * return_value[i]["attribute"][j] = jth value of attribute in ith entry
- *
- */
-function ldap_get_entries ($link_identifier, $result_identifier) {}
-
-/**
- * Return first attribute
- * @link https://php.net/manual/en/function.ldap-first-attribute.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_entry_identifier
- * @param int $dummy_ber [optional] is the identifier to internal memory location pointer. This parameter is no longer used as this is now handled automatically by PHP. For backwards compatibility PHP will not throw an error if this parameter is passed.
- * @return string|false the first attribute in the entry on success and FALSE on
- * error.
- */
-function ldap_first_attribute ($link_identifier, $result_entry_identifier, $dummy_ber = null) {}
-
-/**
- * Get the next attribute in result
- * @link https://php.net/manual/en/function.ldap-next-attribute.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_entry_identifier
- * @param int $dummy_ber [optional] The internal state of the pointer is maintained by this parameter. This parameter is no longer used as this is now handled automatically by PHP. For backwards compatibility PHP will not throw an error if this parameter is passed.
- * @return string|false the next attribute in an entry on success and FALSE on
- * error.
- */
-function ldap_next_attribute ($link_identifier, $result_entry_identifier, $dummy_ber) {}
-
-/**
- * Get attributes from a search result entry
- * @link https://php.net/manual/en/function.ldap-get-attributes.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_entry_identifier
- * @return array a complete entry information in a multi-dimensional array
- * on success and FALSE on error.
- */
-function ldap_get_attributes ($link_identifier, $result_entry_identifier) {}
-
-/**
- * Get all values from a result entry
- * @link https://php.net/manual/en/function.ldap-get-values.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_entry_identifier
- * @param string $attribute
- * @return array|false an array of values for the attribute on success and FALSE on
- * error. The number of values can be found by indexing "count" in the
- * resultant array. Individual values are accessed by integer index in the
- * array. The first index is 0.
- *
- *
- * LDAP allows more than one entry for an attribute, so it can, for example,
- * store a number of email addresses for one person's directory entry all
- * labeled with the attribute "mail"
- * return_value["count"] = number of values for attribute
- * return_value[0] = first value of attribute
- * return_value[i] = ith value of attribute
- */
-function ldap_get_values ($link_identifier, $result_entry_identifier, $attribute) {}
-
-/**
- * Get all binary values from a result entry
- * @link https://php.net/manual/en/function.ldap-get-values-len.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_entry_identifier
- * @param string $attribute
- * @return array|false an array of values for the attribute on success and FALSE on
- * error. Individual values are accessed by integer index in the array. The
- * first index is 0. The number of values can be found by indexing "count"
- * in the resultant array.
- */
-function ldap_get_values_len ($link_identifier, $result_entry_identifier, $attribute) {}
-
-/**
- * Get the DN of a result entry
- * @link https://php.net/manual/en/function.ldap-get-dn.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result_entry_identifier
- * @return string|false the DN of the result entry and FALSE on error.
- */
-function ldap_get_dn ($link_identifier, $result_entry_identifier) {}
-
-/**
- * Splits DN into its component parts
- * @link https://php.net/manual/en/function.ldap-explode-dn.php
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param int $with_attrib
- * Used to request if the RDNs are returned with only values or their
- * attributes as well. To get RDNs with the attributes (i.e. in
- * attribute=value format) set with_attrib to 0
- * and to get only values set it to 1.
- *
- * @return array an array of all DN components.
- * The first element in this array has count key and
- * represents the number of returned values, next elements are numerically
- * indexed DN components.
- */
-function ldap_explode_dn ($dn, $with_attrib) {}
-
-/**
- * Convert DN to User Friendly Naming format
- * @link https://php.net/manual/en/function.ldap-dn2ufn.php
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @return string the user friendly name.
- */
-function ldap_dn2ufn ($dn) {}
-
-/**
- * Add entries to LDAP directory
- * @link https://php.net/manual/en/function.ldap-add.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * An array that specifies the information about the entry. The values in
- * the entries are indexed by individual attributes.
- * In case of multiple values for an attribute, they are indexed using
- * integers starting with 0.
- *
- * $entree["attribut1"] = "value";
- * $entree["attribut2"][0] = "value1";
- * $entree["attribut2"][1] = "value2";
- *
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_add ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Add entries to LDAP directory
- * Does the same thing as ldap_add() but returns the LDAP result resource to be parsed with ldap_parse_result().
- * @link https://www.php.net/manual/en/function.ldap-add-ext.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * An array that specifies the information about the entry. The values in
- * the entries are indexed by individual attributes.
- * In case of multiple values for an attribute, they are indexed using
- * integers starting with 0.
- *
- * $entree["attribut1"] = "value";
- * $entree["attribut2"][0] = "value1";
- * $entree["attribut2"][1] = "value2";
- *
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false
- * @since 7.4
- */
-function ldap_add_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Delete an entry from a directory
- * @link https://php.net/manual/en/function.ldap-delete.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_delete ($link_identifier, $dn, $serverctrls = []) {}
-
-/**
- * Delete an entry from a directory
- * Does the same thing as ldap_delete() but returns the LDAP result resource to be parsed with ldap_parse_result().
- * @link https://php.net/manual/en/function.ldap-delete-ext.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false
- * @since 7.3
- */
-function ldap_delete_ext ($link_identifier, $dn, $serverctrls = []) {}
-
-/**
- * This function is an alias of: ldap_mod_replace().
- * Replace attribute values with new ones
- * @link https://php.net/manual/en/function.ldap-mod-replace.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- * @since 7.0
- */
-function ldap_modify ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Add attribute values to current attributes
- * @link https://php.net/manual/en/function.ldap-mod-add.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_mod_add ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Add attribute values to current attributes
- * Does the same thing as ldap_mod_add() but returns the LDAP result resource to be parsed with ldap_parse_result().
- * @link https://php.net/manual/en/function.ldap-mod-add-ext.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false
- */
-function ldap_mod_add_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Replace attribute values with new ones
- * @link https://php.net/manual/en/function.ldap-mod-replace.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_mod_replace ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Replace attribute values with new ones
- * Does the same thing as ldap_mod_replace() but returns the LDAP result resource to be parsed with ldap_parse_result().
- * @link https://php.net/manual/en/function.ldap-mod-replace-ext.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false
- * @since 7.3
- */
-function ldap_mod_replace_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Delete attribute values from current attributes
- * @link https://php.net/manual/en/function.ldap-mod-del.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_mod_del ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Delete attribute values from current attributes
- * Does the same thing as ldap_mod_del() but returns the LDAP result resource to be parsed with ldap_parse_result().
- * @link https://php.net/manual/en/function.ldap-mod-del-ext.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param array $entry
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false
- * @since 7.3
- */
-function ldap_mod_del_ext ($link_identifier, $dn, array $entry, $serverctrls = []) {}
-
-/**
- * Return the LDAP error number of the last LDAP command
- * @link https://php.net/manual/en/function.ldap-errno.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @return int Return the LDAP error number of the last LDAP command for this
- * link.
- */
-function ldap_errno ($link_identifier) {}
-
-/**
- * Convert LDAP error number into string error message
- * @link https://php.net/manual/en/function.ldap-err2str.php
- * @param int $errno
- * The error number.
- *
- * @return string the error message, as a string.
- */
-function ldap_err2str ($errno) {}
-
-/**
- * Return the LDAP error message of the last LDAP command
- * @link https://php.net/manual/en/function.ldap-error.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @return string string error message.
- */
-function ldap_error ($link_identifier) {}
-
-/**
- * Compare value of attribute found in entry specified with DN
- * @link https://php.net/manual/en/function.ldap-compare.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param string $attribute
- * The attribute name.
- *
- * @param string $value
- * The compared value.
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return mixed TRUE if value matches otherwise returns
- * FALSE. Returns -1 on error.
- */
-function ldap_compare ($link_identifier, $dn, $attribute, $value, $serverctrls = []) {}
-
-/**
- * Sort LDAP result entries
- * @link https://php.net/manual/en/function.ldap-sort.php
- * @param resource $link
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result
- * An search result identifier, returned by
- * ldap_search.
- *
- * @param string $sortfilter
- * The attribute to use as a key in the sort.
- *
- * @deprecated 7.0
- * @removed 8.0
- * @return bool
- */
-function ldap_sort ($link, $result, $sortfilter) {}
-
-/**
- * Modify the name of an entry
- * @link https://php.net/manual/en/function.ldap-rename.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param string $newrdn
- * The new RDN.
- *
- * @param string $newparent
- * The new parent/superior entry.
- *
- * @param bool $deleteoldrdn
- * If TRUE the old RDN value(s) is removed, else the old RDN value(s)
- * is retained as non-distinguished values of the entry.
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_rename ($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls = []) {}
-
-/**
- * Modify the name of an entry
- * Does the same thing as ldap_rename() but returns the LDAP result resource to be parsed with ldap_parse_result().
- * @link https://php.net/manual/en/function.ldap-rename-ext.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param string $dn
- * The distinguished name of an LDAP entity.
- *
- * @param string $newrdn
- * The new RDN.
- *
- * @param string $newparent
- * The new parent/superior entry.
- *
- * @param bool $deleteoldrdn
- * If TRUE the old RDN value(s) is removed, else the old RDN value(s)
- * is retained as non-distinguished values of the entry.
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return resource|false
- * @since 7.3
- */
-function ldap_rename_ext ($link_identifier, $dn, $newrdn, $newparent, $deleteoldrdn, $serverctrls = []) {}
-
-/**
- * Get the current value for given option
- * @link https://php.net/manual/en/function.ldap-get-option.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param int $option
- * The parameter option can be one of:
- *
- * | Option |
- * Type |
- *
- *
- * | LDAP_OPT_DEREF |
- * integer |
- *
- *
- * | LDAP_OPT_SIZELIMIT |
- * integer |
- *
- *
- * | LDAP_OPT_TIMELIMIT |
- * integer |
- *
- *
- * | LDAP_OPT_NETWORK_TIMEOUT |
- * integer |
- *
- *
- * | LDAP_OPT_PROTOCOL_VERSION |
- * integer |
- *
- *
- * | LDAP_OPT_ERROR_NUMBER |
- * integer |
- *
- *
- * | LDAP_OPT_REFERRALS |
- * bool |
- *
- *
- * | LDAP_OPT_RESTART |
- * bool |
- *
- *
- * | LDAP_OPT_HOST_NAME |
- * string |
- *
- *
- * | LDAP_OPT_ERROR_STRING |
- * string |
- *
- *
- * | LDAP_OPT_MATCHED_DN |
- * string |
- *
- *
- * | LDAP_OPT_SERVER_CONTROLS |
- * array |
- *
- *
- * | LDAP_OPT_CLIENT_CONTROLS |
- * array |
- *
- *
- * @param mixed $retval
- * This will be set to the option value.
- *
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_get_option ($link_identifier, $option, &$retval) {}
-
-/**
- * Set the value of the given option
- * @link https://php.net/manual/en/function.ldap-set-option.php
- * @param resource $link_identifier
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param int $option
- * The parameter option can be one of:
- *
- * | Option |
- * Type |
- * Available since |
- *
- *
- * | LDAP_OPT_DEREF |
- * integer |
- * |
- *
- *
- * | LDAP_OPT_SIZELIMIT |
- * integer |
- * |
- *
- *
- * | LDAP_OPT_TIMELIMIT |
- * integer |
- * |
- *
- *
- * | LDAP_OPT_NETWORK_TIMEOUT |
- * integer |
- * PHP 5.3.0 |
- *
- *
- * | LDAP_OPT_PROTOCOL_VERSION |
- * integer |
- * |
- *
- *
- * | LDAP_OPT_ERROR_NUMBER |
- * integer |
- * |
- *
- *
- * | LDAP_OPT_REFERRALS |
- * bool |
- * |
- *
- *
- * | LDAP_OPT_RESTART |
- * bool |
- * |
- *
- *
- * | LDAP_OPT_HOST_NAME |
- * string |
- * |
- *
- *
- * | LDAP_OPT_ERROR_STRING |
- * string |
- * |
- *
- *
- * | LDAP_OPT_MATCHED_DN |
- * string |
- * |
- *
- *
- * | LDAP_OPT_SERVER_CONTROLS |
- * array |
- * |
- *
- *
- * | LDAP_OPT_CLIENT_CONTROLS |
- * array |
- * |
- *
- *
- *
- * LDAP_OPT_SERVER_CONTROLS and
- * LDAP_OPT_CLIENT_CONTROLS require a list of
- * controls, this means that the value must be an array of controls. A
- * control consists of an oid identifying the control,
- * an optional value, and an optional flag for
- * criticality. In PHP a control is given by an
- * array containing an element with the key oid
- * and string value, and two optional elements. The optional
- * elements are key value with string value
- * and key iscritical with boolean value.
- * iscritical defaults to FALSE
- * if not supplied. See draft-ietf-ldapext-ldap-c-api-xx.txt
- * for details. See also the second example below.
- *
- * @param mixed $newval
- * The new value for the specified option.
- *
- * @return bool TRUE on success or FALSE on failure.
- */
-function ldap_set_option ($link_identifier, $option, $newval) {}
-
-/**
- * Return first reference
- * @link https://php.net/manual/en/function.ldap-first-reference.php
- * @param resource $link
- * @param resource $result
- * @return resource
- */
-function ldap_first_reference ($link, $result) {}
-
-/**
- * Get next reference
- * @link https://php.net/manual/en/function.ldap-next-reference.php
- * @param resource $link
- * @param resource $entry
- * @return resource
- */
-function ldap_next_reference ($link, $entry) {}
-
-/**
- * Extract information from reference entry
- * @link https://php.net/manual/en/function.ldap-parse-reference.php
- * @param resource $link
- * @param resource $entry
- * @param array $referrals
- * @return bool
- */
-function ldap_parse_reference ($link, $entry, array &$referrals) {}
-
-/**
- * Extract information from result
- * @link https://php.net/manual/en/function.ldap-parse-result.php
- * @param resource $link
- * @param resource $result
- * @param int $errcode
- * @param string $matcheddn [optional]
- * @param string $errmsg [optional]
- * @param array $referrals [optional]
- * @param array $serverctrls [optional] An array of LDAP Controls which have been sent with the response.
- * @return bool
- */
-function ldap_parse_result ($link, $result, &$errcode, &$matcheddn = null, &$errmsg = null, array &$referrals = null, &$serverctrls = []) {}
-
-/**
- * Start TLS
- * @link https://php.net/manual/en/function.ldap-start-tls.php
- * @param resource $link
- * @return bool
- */
-function ldap_start_tls ($link) {}
-
-/**
- * Set a callback function to do re-binds on referral chasing
- * @link https://php.net/manual/en/function.ldap-set-rebind-proc.php
- * @param resource $link
- * @param callable $callback
- * @return bool
- */
-function ldap_set_rebind_proc ($link, callable $callback) {}
-
-/**
- * Send LDAP pagination control
- * @link https://php.net/manual/en/function.ldap-control-paged-result.php
- * @param resource $link
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param int $pagesize
- * The number of entries by page.
- *
- * @param bool $iscritical [optional]
- * Indicates whether the pagination is critical of not.
- * If true and if the server doesn't support pagination, the search
- * will return no result.
- *
- * @param string $cookie [optional]
- * An opaque structure sent by the server
- * (ldap_control_paged_result_response).
- *
- * @return bool TRUE on success or FALSE on failure.
- * @since 5.4
- * @deprecated 7.4
- */
-function ldap_control_paged_result ($link, $pagesize, $iscritical = false, $cookie = "") {}
-
-/**
- * Retrieve the LDAP pagination cookie
- * @link https://php.net/manual/en/function.ldap-control-paged-result-response.php
- * @param resource $link
- * An LDAP link identifier, returned by ldap_connect.
- *
- * @param resource $result
- * @param string $cookie [optional]
- * An opaque structure sent by the server.
- *
- * @param int $estimated [optional]
- * The estimated number of entries to retrieve.
- *
- * @return bool TRUE on success or FALSE on failure.
- * @since 5.4
- * @deprecated 7.4
- */
-function ldap_control_paged_result_response ($link, $result, &$cookie = null, &$estimated = null) {}
-
-/**
- * Escape a string for use in an LDAP filter or DN
- * @param string $value The value to escape.
- * @param string $ignore [optional] Characters to ignore when escaping.
- * @param int $flags [optional] The context the escaped string will be used in: LDAP_ESCAPE_FILTER for filters to be used with ldap_search(), or LDAP_ESCAPE_DN for DNs. If neither flag is passed, all chars are escaped.
- * @return string
- * @since 5.6
- */
-
-function ldap_escape ($value, $ignore = "", $flags = 0) {}
-
-/**
- * (PHP 5.4 >= 5.4.26, PHP 5.5 >= 5.5.10, PHP 5.6 >= 5.6.0)
- * Batch and execute modifications on an LDAP entry
- * @link https://php.net/manual/en/function.ldap-modify-batch.php
- * @param $link_identifier
- * An LDAP link identifier, returned by
- * {@see ldap_connect()}.
- *
- * @param $dn The distinguished name of an LDAP entity.
- * @param $entry An array that specifies the modifications to make. Each entry in this
- * array is an associative array with two or three keys:
- * attrib maps to the name of the attribute to modify,
- * modtype maps to the type of modification to perform,
- * and (depending on the type of modification) values
- * maps to an array of attribute values relevant to the modification.
- *
- *
- * Possible values for modtype include:
- *
- *
- *
- * -
- * LDAP_MODIFY_BATCH_ADD
- *
- * -
- *
- *
- * Each value specified through values is added (as
- * an additional value) to the attribute named by
- * attrib.
- *
- *
- *
- * -
- * LDAP_MODIFY_BATCH_REMOVE
- *
- * -
- *
- *
- * Each value specified through values is removed
- * from the attribute named by attrib. Any value of
- * the attribute not contained in the values array
- * will remain untouched.
- *
- *
- * -
- * LDAP_MODIFY_BATCH_REMOVE_ALL
- *
- * -
- *
- *
- * All values are removed from the attribute named by
- * attrib. A values entry must
- * not be provided.
- *
- *
- *
- * -
- * LDAP_MODIFY_BATCH_REPLACE
- *
- * -
- *
- *
- * All current values of the attribute named by
- * attrib are replaced with the values specified
- * through values.
- *
- *
- *
- *
- * Note that any value for attrib must be a string, any
- * value for values must be an array of strings, and
- * any value for modtype must be one of the
- * LDAP_MODIFY_BATCH_* constants listed above.
- *
- * @param array $serverctrls [optional] Array of LDAP Controls to send with the request.
- * @return bool TRUE on success or FALSE on failure.
- * @since 5.4
- */
-function ldap_modify_batch ( $link_identifier , $dn , $entry, $serverctrls = []) {}
-
-/**
- * @param resource $link_identifier
- * @param resource $result_identifier
- * @return int returns the number of reference messages in a search result.
- * @since 8.0
- */
-function ldap_count_references($link_identifier, $result_identifier){}
-
-define('LDAP_ESCAPE_FILTER', 1);
-define ('LDAP_ESCAPE_DN', 2);
-define ('LDAP_DEREF_NEVER', 0);
-define ('LDAP_DEREF_SEARCHING', 1);
-define ('LDAP_DEREF_FINDING', 2);
-define ('LDAP_DEREF_ALWAYS', 3);
-define ('LDAP_MODIFY_BATCH_REMOVE',2);
-define('LDAP_MODIFY_BATCH_ADD', 1);
-define('LDAP_MODIFY_BATCH_REMOVE_ALL', 18);
-define('LDAP_MODIFY_BATCH_REPLACE', 3);
-
-define('LDAP_OPT_X_TLS_REQUIRE_CERT', 24582);
-define('LDAP_OPT_X_TLS_NEVER', 0);
-define('LDAP_OPT_X_TLS_HARD', 1);
-define('LDAP_OPT_X_TLS_DEMAND', 2);
-define('LDAP_OPT_X_TLS_ALLOW', 3);
-define('LDAP_OPT_X_TLS_TRY', 4);
-define('LDAP_OPT_X_TLS_CERTFILE', 24580);
-define('LDAP_OPT_X_TLS_CIPHER_SUITE', 24584);
-define('LDAP_OPT_X_TLS_KEYFILE', 24581);
-define('LDAP_OPT_X_TLS_DHFILE', 24590);
-define('LDAP_OPT_X_TLS_CRLFILE', 24592);
-define('LDAP_OPT_X_TLS_RANDOM_FILE', 24585);
-define('LDAP_OPT_X_TLS_CRLCHECK', 24587);
-define('LDAP_OPT_X_TLS_CRL_NONE', 0);
-define('LDAP_OPT_X_TLS_CRL_PEER', 1);
-define('LDAP_OPT_X_TLS_CRL_ALL', 2);
-define('LDAP_OPT_X_TLS_PROTOCOL_MIN', 24583);
-define('LDAP_OPT_X_TLS_PROTOCOL_SSL2', 512);
-define('LDAP_OPT_X_TLS_PROTOCOL_SSL3', 768);
-define('LDAP_OPT_X_TLS_PROTOCOL_TLS1_0', 769);
-define('LDAP_OPT_X_TLS_PROTOCOL_TLS1_1', 770);
-define('LDAP_OPT_X_TLS_PROTOCOL_TLS1_2', 771);
-define('LDAP_OPT_X_TLS_PACKAGE', 24593);
-define('LDAP_OPT_X_KEEPALIVE_IDLE', 25344);
-define('LDAP_OPT_X_KEEPALIVE_PROBES', 25345);
-define('LDAP_OPT_X_KEEPALIVE_INTERVAL', 25346);
-define('LDAP_OPT_X_SASL_USERNAME', 24844);
-define('LDAP_OPT_X_SASL_NOCANON', 24843);
-
-/**
- * Specifies alternative rules for following aliases at the server.
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_DEREF', 2);
-
-/**
- *
- * Specifies the maximum number of entries that can be
- * returned on a search operation.
- *
- * The actual size limit for operations is also bounded
- * by the server's configured maximum number of return entries.
- * The lesser of these two settings is the actual size limit.
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_SIZELIMIT', 3);
-
-/**
- * Specifies the number of seconds to wait for search results.
- * The actual time limit for operations is also bounded
- * by the server's configured maximum time.
- * The lesser of these two settings is the actual time limit.
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_TIMELIMIT', 4);
-
-/**
- * Option for ldap_set_option to allow setting network timeout.
- * (Available as of PHP 5.3.0)
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_NETWORK_TIMEOUT', 20485);
-
-/**
- * Specifies the LDAP protocol to be used (V2 or V3).
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_PROTOCOL_VERSION', 17);
-define ('LDAP_OPT_ERROR_NUMBER', 49);
-
-/**
- * Specifies whether to automatically follow referrals returned
- * by the LDAP server.
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_REFERRALS', 8);
-define ('LDAP_OPT_RESTART', 9);
-define ('LDAP_OPT_HOST_NAME', 48);
-define ('LDAP_OPT_ERROR_STRING', 50);
-define ('LDAP_OPT_MATCHED_DN', 51);
-
-/**
- * Specifies a default list of server controls to be sent with each request.
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_SERVER_CONTROLS', 18);
-
-/**
- * Specifies a default list of client controls to be processed with each request.
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_CLIENT_CONTROLS', 19);
-
-/**
- * Specifies a bitwise level for debug traces.
- * @link https://php.net/manual/en/ldap.constants.php
- */
-define ('LDAP_OPT_DEBUG_LEVEL', 20481);
-define ('LDAP_OPT_X_SASL_MECH', 24832);
-define ('LDAP_OPT_X_SASL_REALM', 24833);
-define ('LDAP_OPT_X_SASL_AUTHCID', 24834);
-define ('LDAP_OPT_X_SASL_AUTHZID', 24835);
-
-/**
- * Specifies the path of the directory containing CA certificates.
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.1
- */
-define('LDAP_OPT_X_TLS_CACERTDIR', 24579);
-
-/**
- * Specifies the full-path of the CA certificate file.
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.1
- */
-define('LDAP_OPT_X_TLS_CACERTFILE', 24578);
-
-define('LDAP_MODIFY_BATCH_ATTRIB', 'attrib');
-define('LDAP_MODIFY_BATCH_MODTYPE', 'modtype');
-define('LDAP_MODIFY_BATCH_VALUES', 'values');
-define('LDAP_OPT_TIMEOUT', 20482);
-define('LDAP_OPT_DIAGNOSTIC_MESSAGE', 50);
-
-
-/**
- * Control Constant - Manage DSA IT (» RFC 3296)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_MANAGEDSAIT", "2.16.840.1.113730.3.4.2");
-echo
-
-/**
- * Control Constant - Proxied Authorization (» RFC 4370)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_PROXY_AUTHZ", "2.16.840.1.113730.3.4.18");
-
-/**
- * Control Constant - Subentries (» RFC 3672)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_SUBENTRIES", "1.3.6.1.4.1.4203.1.10.1");
-
-/**
- * Control Constant - Filter returned values (» RFC 3876)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_VALUESRETURNFILTER", "1.2.826.0.1.3344810.2.3");
-
-/**
- * Control Constant - Assertion (» RFC 4528)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_ASSERT", "1.3.6.1.1.12");
-
-/**
- * Control Constant - Pre read (» RFC 4527)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_PRE_READ", "1.3.6.1.1.13.1");
-
-/**
- * Control Constant - Post read (» RFC 4527)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_POST_READ", "1.3.6.1.1.13.2");
-
-/**
- * Control Constant - Sort request (» RFC 2891)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_SORTREQUEST", "1.2.840.113556.1.4.473");
-
-/**
- * Control Constant - Sort response (» RFC 2891)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_SORTRESPONSE", "1.2.840.113556.1.4.474");
-
-/**
- * Control Constant - Paged results (» RFC 2696)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_PAGEDRESULTS", "1.2.840.113556.1.4.319");
-
-/**
- * Control Constant - Content Synchronization Operation (» RFC 4533)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_SYNC", "1.3.6.1.4.1.4203.1.9.1.1");
-
-/**
- * Control Constant - Content Synchronization Operation State (» RFC 4533)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_SYNC_STATE", "1.3.6.1.4.1.4203.1.9.1.2");
-
-/**
- * Control Constant - Content Synchronization Operation Done (» RFC 4533)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_SYNC_DONE", "1.3.6.1.4.1.4203.1.9.1.3");
-
-/**
- * Control Constant - Don't Use Copy (» RFC 6171)
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_DONTUSECOPY", "1.3.6.1.1.22");
-
-/**
- * Control Constant - Password Policy Request
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_PASSWORDPOLICYREQUEST", "1.3.6.1.4.1.42.2.27.8.5.1");
-
-/**
- * Control Constant - Password Policy Response
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_PASSWORDPOLICYRESPONSE", "1.3.6.1.4.1.42.2.27.8.5.1");
-
-/**
- * Control Constant - Active Directory Incremental Values
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_X_INCREMENTAL_VALUES", "1.2.840.113556.1.4.802");
-
-/**
- * Control Constant - Active Directory Domain Scope
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_X_DOMAIN_SCOPE", "1.2.840.113556.1.4.1339");
-
-/**
- * Control Constant - Active Directory Permissive Modify
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_X_PERMISSIVE_MODIFY", "1.2.840.113556.1.4.1413");
-
-/**
- * Control Constant - Active Directory Search Options
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_X_SEARCH_OPTIONS", "1.2.840.113556.1.4.1340");
-
-/**
- * Control Constant - Active Directory Tree Delete
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_X_TREE_DELETE", "1.2.840.113556.1.4.805");
-
-/**
- * Control Constant - Active Directory Extended DN
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_X_EXTENDED_DN", "1.2.840.113556.1.4.529");
-
-/**
- * Control Constant - Virtual List View Request
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_VLVREQUEST", "2.16.840.1.113730.3.4.9");
-
-/**
- * Control Constant - Virtual List View Response
- * @link https://php.net/manual/en/ldap.constants.php
- * @since 7.3
- */
-define("LDAP_CONTROL_VLVRESPONSE", "2.16.840.1.113730.3.4.10");
-
-
-/**
- * Extended Operation constant - Modify password
- */
-define("LDAP_EXOP_MODIFY_PASSWD", "1.3.6.1.4.1.4203.1.11.1");
-
-/**
- * Extended Operation Constant - Refresh
- */
-define("LDAP_EXOP_REFRESH", "1.3.6.1.4.1.1466.101.119.1");
-
-/**
- * Extended Operation constant - Start TLS
- */
-define("LDAP_EXOP_START_TLS", "1.3.6.1.4.1.1466.20037");
-
-/**
- * Extended Operation Constant - Turn
- */
-define("LDAP_EXOP_TURN", "1.3.6.1.1.19");
-
-/**
- * Extended Operation Constant - WHOAMI
- */
-define("LDAP_EXOP_WHO_AM_I", "1.3.6.1.4.1.4203.1.11.3");
-
-// End of ldap v.
-?>
+namespace LDAP {
+
+ /**
+ * @strict-properties
+ * @not-serializable
+ */
+ final class Connection
+ {
+ }
+
+ /**
+ * @strict-properties
+ * @not-serializable
+ */
+ final class Result
+ {
+ }
+
+ /**
+ * @strict-properties
+ * @not-serializable
+ */
+ final class ResultEntry
+ {
+ }
+}
diff --git a/build/stubs/pcntl.php b/build/stubs/pcntl.php
new file mode 100644
index 0000000000000..ff0bde9ed7a7e
--- /dev/null
+++ b/build/stubs/pcntl.php
@@ -0,0 +1,50 @@
+getArgument('app');
diff --git a/core/Command/Config/App/GetConfig.php b/core/Command/Config/App/GetConfig.php
index 0e42ae786d84f..e0beb4ee84ea6 100644
--- a/core/Command/Config/App/GetConfig.php
+++ b/core/Command/Config/App/GetConfig.php
@@ -69,7 +69,7 @@ protected function configure() {
*
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
- * @return null|int null or 0 if everything went fine, or an error code
+ * @return int 0 if everything went fine, or an error code
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$appName = $input->getArgument('app');
diff --git a/core/Command/Config/System/GetConfig.php b/core/Command/Config/System/GetConfig.php
index 3fce89572c88f..265fc70900f7a 100644
--- a/core/Command/Config/System/GetConfig.php
+++ b/core/Command/Config/System/GetConfig.php
@@ -65,7 +65,7 @@ protected function configure() {
*
* @param InputInterface $input An InputInterface instance
* @param OutputInterface $output An OutputInterface instance
- * @return null|int null or 0 if everything went fine, or an error code
+ * @return int 0 if everything went fine, or an error code
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
$configNames = $input->getArgument('name');
diff --git a/core/Command/Db/Migrations/ExecuteCommand.php b/core/Command/Db/Migrations/ExecuteCommand.php
index a2dc2b9241886..6f4559ee7b4d3 100644
--- a/core/Command/Db/Migrations/ExecuteCommand.php
+++ b/core/Command/Db/Migrations/ExecuteCommand.php
@@ -79,7 +79,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
$olderVersions = $ms->getMigratedVersions();
$olderVersions[] = '0';
$olderVersions[] = 'prev';
- if (in_array($version, $olderVersions, true)) {
+ if (in_array($version, $olderVersions, true)) {
$output->writeln('Can not go back to previous migration without debug enabled');
return 1;
}
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php
index b352e86ec62e3..47777b1561efc 100644
--- a/core/Command/Db/Migrations/GenerateCommand.php
+++ b/core/Command/Db/Migrations/GenerateCommand.php
@@ -113,7 +113,7 @@ public function execute(InputInterface $input, OutputInterface $output): int {
$appName = $input->getArgument('app');
$version = $input->getArgument('version');
- if (!preg_match('/^\d{1,16}$/',$version)) {
+ if (!preg_match('/^\d{1,16}$/', $version)) {
$output->writeln('The given version is invalid. Only 0-9 are allowed (max. 16 digits)');
return 1;
}
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index efc7124f2eada..0591132e37f4b 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -247,8 +247,7 @@ function ($success) use ($output, $self) {
$output->write('Maybe an upgrade is already in process. Please check the '
. 'logfile (data/nextcloud.log). If you want to re-run the '
. 'upgrade procedure, remove the "maintenance mode" from '
- . 'config.php and call this script again.'
- , true);
+ . 'config.php and call this script again.', true);
return self::ERROR_MAINTENANCE_MODE;
} else {
$output->writeln('Nextcloud is already latest version');
diff --git a/core/Command/User/Add.php b/core/Command/User/Add.php
index bb11a1ea5c998..574be6e421c49 100644
--- a/core/Command/User/Add.php
+++ b/core/Command/User/Add.php
@@ -107,7 +107,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$question = new Question('Confirm password: ');
$question->setHidden(true);
- $confirm = $helper->ask($input, $output,$question);
+ $confirm = $helper->ask($input, $output, $question);
if ($password !== $confirm) {
$output->writeln("Passwords did not match!");
diff --git a/core/Command/User/Setting.php b/core/Command/User/Setting.php
index b677540d170ab..04488cdeff101 100644
--- a/core/Command/User/Setting.php
+++ b/core/Command/User/Setting.php
@@ -178,7 +178,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
- if ($app === 'settings' && in_array($key , ['email', 'display_name'])) {
+ if ($app === 'settings' && in_array($key, ['email', 'display_name'])) {
$user = $this->userManager->get($uid);
if ($user instanceof IUser) {
if ($key === 'email') {
@@ -208,7 +208,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
- if ($app === 'settings' && in_array($key , ['email', 'display_name'])) {
+ if ($app === 'settings' && in_array($key, ['email', 'display_name'])) {
$user = $this->userManager->get($uid);
if ($user instanceof IUser) {
if ($key === 'email') {
diff --git a/core/Migrations/Version15000Date20180926101451.php b/core/Migrations/Version15000Date20180926101451.php
index e379b12490d2c..f70a786bbcdca 100644
--- a/core/Migrations/Version15000Date20180926101451.php
+++ b/core/Migrations/Version15000Date20180926101451.php
@@ -44,7 +44,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$schema = $schemaClosure();
$table = $schema->getTable('authtoken');
- $table->addColumn('password_invalid','boolean', [
+ $table->addColumn('password_invalid', 'boolean', [
'default' => 0,
'notnull' => false,
]);
diff --git a/index.php b/index.php
index 7c7400a056422..7b62f17e5bd58 100644
--- a/index.php
+++ b/index.php
@@ -60,7 +60,7 @@
* not return a webpage, so we only print the error page when html is accepted,
* otherwise we reply with a JSON array like the SecurityMiddleware would do.
*/
- if (stripos($request->getHeader('Accept'),'html') === false) {
+ if (stripos($request->getHeader('Accept'), 'html') === false) {
http_response_code(401);
header('Content-Type: application/json; charset=utf-8');
echo json_encode(['message' => $ex->getMessage()]);
diff --git a/lib/composer/composer/ClassLoader.php b/lib/composer/composer/ClassLoader.php
index 0cd6055d1b794..afef3fa2ad83f 100644
--- a/lib/composer/composer/ClassLoader.php
+++ b/lib/composer/composer/ClassLoader.php
@@ -149,7 +149,7 @@ public function getFallbackDirsPsr4()
/**
* @return string[] Array of classname => path
- * @psalm-var array
+ * @psalm-return array
*/
public function getClassMap()
{
diff --git a/lib/composer/composer/InstalledVersions.php b/lib/composer/composer/InstalledVersions.php
index b3a4e1611e6e5..d50e0c9fcc47d 100644
--- a/lib/composer/composer/InstalledVersions.php
+++ b/lib/composer/composer/InstalledVersions.php
@@ -20,12 +20,25 @@
*
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
*
- * To require it's presence, you can require `composer-runtime-api ^2.0`
+ * To require its presence, you can require `composer-runtime-api ^2.0`
*/
class InstalledVersions
{
+ /**
+ * @var mixed[]|null
+ * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array}|array{}|null
+ */
private static $installed;
+
+ /**
+ * @var bool|null
+ */
private static $canGetVendors;
+
+ /**
+ * @var array[]
+ * @psalm-var array}>
+ */
private static $installedByVendor = array();
/**
@@ -228,7 +241,7 @@ public static function getInstallPath($packageName)
/**
* @return array
- * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}
+ * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
*/
public static function getRootPackage()
{
@@ -242,7 +255,7 @@ public static function getRootPackage()
*
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
* @return array[]
- * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array}
+ * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array}
*/
public static function getRawData()
{
@@ -265,7 +278,7 @@ public static function getRawData()
* Returns the raw data of all installed.php which are currently loaded for custom implementations
*
* @return array[]
- * @psalm-return list}>
+ * @psalm-return list}>
*/
public static function getAllRawData()
{
@@ -288,7 +301,7 @@ public static function getAllRawData()
* @param array[] $data A vendor/composer/installed.php data set
* @return void
*
- * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array} $data
+ * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array} $data
*/
public static function reload($data)
{
@@ -298,7 +311,7 @@ public static function reload($data)
/**
* @return array[]
- * @psalm-return list}>
+ * @psalm-return list}>
*/
private static function getInstalled()
{
diff --git a/lib/composer/composer/installed.php b/lib/composer/composer/installed.php
index b811738fbd0f0..f12a8e00dbe5f 100644
--- a/lib/composer/composer/installed.php
+++ b/lib/composer/composer/installed.php
@@ -5,7 +5,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../../',
'aliases' => array(),
- 'reference' => '66144c300395458ff38b86e50cd92174443cd85e',
+ 'reference' => '1225189f74d06606aafc4150d07584b90cea50dd',
'name' => '__root__',
'dev' => false,
),
@@ -16,7 +16,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../../',
'aliases' => array(),
- 'reference' => '66144c300395458ff38b86e50cd92174443cd85e',
+ 'reference' => '1225189f74d06606aafc4150d07584b90cea50dd',
'dev_requirement' => false,
),
),
diff --git a/lib/private/Accounts/AccountManager.php b/lib/private/Accounts/AccountManager.php
index 2c7641243fa7c..6613772769904 100644
--- a/lib/private/Accounts/AccountManager.php
+++ b/lib/private/Accounts/AccountManager.php
@@ -630,7 +630,7 @@ protected function writeUserDataProperties(IQueryBuilder $query, array $data): v
}
// the value col is limited to 255 bytes. It is used for searches only.
- $value = $property['value'] ? Util::shortenMultibyteString($property['value'], 255) : '';
+ $value = $property['value'] ? Util::shortenMultibyteString($property['value'], 255) : '';
$query->setParameter('name', $property['name'])
->setParameter('value', $value);
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php
index 6bbab42cb7994..0f12dbda629ce 100644
--- a/lib/private/AppFramework/Http/Dispatcher.php
+++ b/lib/private/AppFramework/Http/Dispatcher.php
@@ -131,7 +131,7 @@ public function dispatch(Controller $controller, string $methodName): array {
$numExecuted = $databaseStatsAfter['executed'] - $databaseStatsBefore['executed'];
if ($numBuilt > 50) {
- $this->logger->debug('Controller {class}::{method} created {count} QueryBuilder objects, please check if they are created inside a loop by accident.' , [
+ $this->logger->debug('Controller {class}::{method} created {count} QueryBuilder objects, please check if they are created inside a loop by accident.', [
'class' => get_class($controller),
'method' => $methodName,
'count' => $numBuilt,
@@ -139,7 +139,7 @@ public function dispatch(Controller $controller, string $methodName): array {
}
if ($numExecuted > 100) {
- $this->logger->warning('Controller {class}::{method} executed {count} queries.' , [
+ $this->logger->warning('Controller {class}::{method} executed {count} queries.', [
'class' => get_class($controller),
'method' => $methodName,
'count' => $numExecuted,
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index c67500bcaa4ed..21af2bc46f469 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -303,7 +303,7 @@ public function __unset($id) {
* @return string
*/
public function getHeader(string $name): string {
- $name = strtoupper(str_replace('-', '_',$name));
+ $name = strtoupper(str_replace('-', '_', $name));
if (isset($this->server['HTTP_' . $name])) {
return $this->server['HTTP_' . $name];
}
diff --git a/lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php b/lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php
index 8bdbacda20b45..5f683fa38ace5 100644
--- a/lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php
@@ -109,7 +109,7 @@ public function beforeController($controller, $methodName) {
*/
public function afterException($controller, $methodName, \Exception $exception) {
if ($exception instanceof RateLimitExceededException) {
- if (stripos($this->request->getHeader('Accept'),'html') === false) {
+ if (stripos($this->request->getHeader('Accept'), 'html') === false) {
$response = new DataResponse([], $exception->getCode());
} else {
$response = new TemplateResponse(
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php
index 9442bd9eca950..3dbcf518f1e05 100644
--- a/lib/private/BackgroundJob/JobList.php
+++ b/lib/private/BackgroundJob/JobList.php
@@ -356,8 +356,8 @@ public function setExecutionTime(IJob $job, $timeTaken) {
public function resetBackgroundJob(IJob $job): void {
$query = $this->connection->getQueryBuilder();
$query->update('jobs')
- ->set('last_run', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
- ->set('reserved_at', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
+ ->set('last_run', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
+ ->set('reserved_at', $query->createNamedParameter(0, IQueryBuilder::PARAM_INT))
->where($query->expr()->eq('id', $query->createNamedParameter($job->getId()), IQueryBuilder::PARAM_INT));
$query->executeStatement();
}
diff --git a/lib/private/Collaboration/Resources/Manager.php b/lib/private/Collaboration/Resources/Manager.php
index a0fba16998fb2..8fc3d0dd5eae5 100644
--- a/lib/private/Collaboration/Resources/Manager.php
+++ b/lib/private/Collaboration/Resources/Manager.php
@@ -131,7 +131,7 @@ public function getCollectionForUser(int $id, ?IUser $user): ICollection {
*/
public function searchCollections(IUser $user, string $filter, int $limit = 50, int $start = 0): array {
$query = $this->connection->getQueryBuilder();
- $userId = $user instanceof IUser ? $user->getUID() : '';
+ $userId = $user->getUID();
$query->select('c.*', 'a.access')
->from(self::TABLE_COLLECTIONS, 'c')
diff --git a/lib/private/DB/Adapter.php b/lib/private/DB/Adapter.php
index 4d9b43d078789..334006d1706ce 100644
--- a/lib/private/DB/Adapter.php
+++ b/lib/private/DB/Adapter.php
@@ -136,7 +136,7 @@ public function insertIfNotExist($table, $input, array $compare = null) {
/**
* @throws \OCP\DB\Exception
*/
- public function insertIgnoreConflict(string $table,array $values) : int {
+ public function insertIgnoreConflict(string $table, array $values) : int {
try {
$builder = $this->conn->getQueryBuilder();
$builder->insert($table);
diff --git a/lib/private/DB/AdapterPgSql.php b/lib/private/DB/AdapterPgSql.php
index 1262fd4f1ab57..9045aa7f8792e 100644
--- a/lib/private/DB/AdapterPgSql.php
+++ b/lib/private/DB/AdapterPgSql.php
@@ -43,7 +43,7 @@ public function fixupStatement($statement) {
return $statement;
}
- public function insertIgnoreConflict(string $table,array $values) : int {
+ public function insertIgnoreConflict(string $table, array $values) : int {
if ($this->isPre9_5CompatMode() === true) {
return parent::insertIgnoreConflict($table, $values);
}
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index f2d91065b9abc..271b7a273211b 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1182,7 +1182,7 @@ private function basicOperation($operation, $path, $hooks = [], $extraParam = nu
if ($result && in_array('delete', $hooks) and $result) {
$this->removeUpdate($storage, $internalPath);
}
- if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
+ if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') {
$this->writeUpdate($storage, $internalPath);
}
if ($result && in_array('touch', $hooks)) {
@@ -1407,7 +1407,7 @@ public function getFileInfo($path, $includeMountPoints = true) {
}
$info = new FileInfo($path, $storage, $internalPath, $data, $mount, $owner);
- if ($data and isset($data['fileid'])) {
+ if (isset($data['fileid'])) {
if ($includeMountPoints and $data['mimetype'] === 'httpd/unix-directory') {
//add the sizes of other mount points to the folder
$extOnly = ($includeMountPoints === 'ext');
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index b63619b821ca7..95143656295e1 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -308,91 +308,80 @@ public function downloadApp($appId, $allowUnstable = false) {
$extractDir = $this->tempManager->getTemporaryFolder();
$archive = new TAR($tempFile);
- if ($archive) {
- if (!$archive->extract($extractDir)) {
- $errorMessage = 'Could not extract app ' . $appId;
+ if (!$archive->extract($extractDir)) {
+ $errorMessage = 'Could not extract app ' . $appId;
- $archiveError = $archive->getError();
- if ($archiveError instanceof \PEAR_Error) {
- $errorMessage .= ': ' . $archiveError->getMessage();
- }
-
- throw new \Exception($errorMessage);
- }
- $allFiles = scandir($extractDir);
- $folders = array_diff($allFiles, ['.', '..']);
- $folders = array_values($folders);
-
- if (count($folders) > 1) {
- throw new \Exception(
- sprintf(
- 'Extracted app %s has more than 1 folder',
- $appId
- )
- );
+ $archiveError = $archive->getError();
+ if ($archiveError instanceof \PEAR_Error) {
+ $errorMessage .= ': ' . $archiveError->getMessage();
}
- // Check if appinfo/info.xml has the same app ID as well
- if ((PHP_VERSION_ID < 80000)) {
- $loadEntities = libxml_disable_entity_loader(false);
- $xml = simplexml_load_file($extractDir . '/' . $folders[0] . '/appinfo/info.xml');
- libxml_disable_entity_loader($loadEntities);
- } else {
- $xml = simplexml_load_file($extractDir . '/' . $folders[0] . '/appinfo/info.xml');
- }
- if ((string)$xml->id !== $appId) {
- throw new \Exception(
- sprintf(
- 'App for id %s has a wrong app ID in info.xml: %s',
- $appId,
- (string)$xml->id
- )
- );
- }
+ throw new \Exception($errorMessage);
+ }
+ $allFiles = scandir($extractDir);
+ $folders = array_diff($allFiles, ['.', '..']);
+ $folders = array_values($folders);
- // Check if the version is lower than before
- $currentVersion = OC_App::getAppVersion($appId);
- $newVersion = (string)$xml->version;
- if (version_compare($currentVersion, $newVersion) === 1) {
- throw new \Exception(
- sprintf(
- 'App for id %s has version %s and tried to update to lower version %s',
- $appId,
- $currentVersion,
- $newVersion
- )
- );
- }
+ if (count($folders) > 1) {
+ throw new \Exception(
+ sprintf(
+ 'Extracted app %s has more than 1 folder',
+ $appId
+ )
+ );
+ }
- $baseDir = OC_App::getInstallPath() . '/' . $appId;
- // Remove old app with the ID if existent
- OC_Helper::rmdirr($baseDir);
- // Move to app folder
- if (@mkdir($baseDir)) {
- $extractDir .= '/' . $folders[0];
- OC_Helper::copyr($extractDir, $baseDir);
- }
- OC_Helper::copyr($extractDir, $baseDir);
- OC_Helper::rmdirr($extractDir);
- return;
+ // Check if appinfo/info.xml has the same app ID as well
+ if ((PHP_VERSION_ID < 80000)) {
+ $loadEntities = libxml_disable_entity_loader(false);
+ $xml = simplexml_load_file($extractDir . '/' . $folders[0] . '/appinfo/info.xml');
+ libxml_disable_entity_loader($loadEntities);
} else {
+ $xml = simplexml_load_file($extractDir . '/' . $folders[0] . '/appinfo/info.xml');
+ }
+ if ((string)$xml->id !== $appId) {
throw new \Exception(
sprintf(
- 'Could not extract app with ID %s to %s',
+ 'App for id %s has a wrong app ID in info.xml: %s',
$appId,
- $extractDir
+ (string)$xml->id
)
);
}
- } else {
- // Signature does not match
- throw new \Exception(
- sprintf(
- 'App with id %s has invalid signature',
- $appId
- )
- );
+
+ // Check if the version is lower than before
+ $currentVersion = OC_App::getAppVersion($appId);
+ $newVersion = (string)$xml->version;
+ if (version_compare($currentVersion, $newVersion) === 1) {
+ throw new \Exception(
+ sprintf(
+ 'App for id %s has version %s and tried to update to lower version %s',
+ $appId,
+ $currentVersion,
+ $newVersion
+ )
+ );
+ }
+
+ $baseDir = OC_App::getInstallPath() . '/' . $appId;
+ // Remove old app with the ID if existent
+ OC_Helper::rmdirr($baseDir);
+ // Move to app folder
+ if (@mkdir($baseDir)) {
+ $extractDir .= '/' . $folders[0];
+ OC_Helper::copyr($extractDir, $baseDir);
+ }
+ OC_Helper::copyr($extractDir, $baseDir);
+ OC_Helper::rmdirr($extractDir);
+ return;
}
+ // Signature does not match
+ throw new \Exception(
+ sprintf(
+ 'App with id %s has invalid signature',
+ $appId
+ )
+ );
}
}
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index 1189907eac97a..61f506d267607 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -244,7 +244,7 @@ protected function convertEmail(string $email): string {
}
[$name, $domain] = explode('@', $email, 2);
- $domain = idn_to_ascii($domain, 0,INTL_IDNA_VARIANT_UTS46);
+ $domain = idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46);
return $name.'@'.$domain;
}
diff --git a/lib/private/Memcache/Memcached.php b/lib/private/Memcache/Memcached.php
index b3414a7d29005..50f3fa66ab3ac 100644
--- a/lib/private/Memcache/Memcached.php
+++ b/lib/private/Memcache/Memcached.php
@@ -66,6 +66,7 @@ public function __construct($prefix = '') {
//\Memcached::OPT_BINARY_PROTOCOL => true,
];
// by default enable igbinary serializer if available
+ /** @psalm-suppress RedundantCondition */
if (\Memcached::HAVE_IGBINARY) {
$defaultOptions[\Memcached::OPT_SERIALIZER] =
\Memcached::SERIALIZER_IGBINARY;
diff --git a/lib/private/Migration/BackgroundRepair.php b/lib/private/Migration/BackgroundRepair.php
index 25026575d3857..03a3d3f4a7c00 100644
--- a/lib/private/Migration/BackgroundRepair.php
+++ b/lib/private/Migration/BackgroundRepair.php
@@ -97,7 +97,7 @@ protected function run($argument) {
try {
$repair->addStep($step);
} catch (\Exception $ex) {
- $this->logger->logException($ex,[
+ $this->logger->logException($ex, [
'app' => 'migration'
]);
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php
index d8bbc02e10527..c707884355b8f 100644
--- a/lib/private/Notification/Manager.php
+++ b/lib/private/Notification/Manager.php
@@ -381,12 +381,12 @@ public function prepare(INotification $notification, string $languageCode): INot
throw new \InvalidArgumentException('The given notification has been processed');
}
- if (!($notification instanceof INotification) || !$notification->isValidParsed()) {
+ if (!$notification->isValidParsed()) {
throw new \InvalidArgumentException('The given notification has not been handled');
}
}
- if (!($notification instanceof INotification) || !$notification->isValidParsed()) {
+ if (!$notification->isValidParsed()) {
throw new \InvalidArgumentException('The given notification has not been handled');
}
diff --git a/lib/private/Preview/MarkDown.php b/lib/private/Preview/MarkDown.php
index e24bdb5959bb7..929f319f57d4e 100644
--- a/lib/private/Preview/MarkDown.php
+++ b/lib/private/Preview/MarkDown.php
@@ -43,7 +43,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
return null;
}
- $content = stream_get_contents($content,3000);
+ $content = stream_get_contents($content, 3000);
//don't create previews of empty text files
if (trim($content) === '') {
@@ -119,7 +119,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
// Get rid of markdown symbols that we still needed for the font size
$line = preg_replace('/^#*\s/', '', $line);
- $wrappedText = wordwrap($line, $wordWrap,"\n");
+ $wrappedText = wordwrap($line, $wordWrap, "\n");
$linesWrapped = count(explode("\n", $wrappedText));
imagettftext($image, $actualFontSize, 0, $x, $y, $textColor, $actualFontSize === $fontSize ? $fontFile : $fontFileBold, $wrappedText);
$nextLineStart = (int)($linesWrapped * ceil($actualFontSize * 2));
diff --git a/lib/private/Preview/TXT.php b/lib/private/Preview/TXT.php
index d55d32386a7af..bb3af6b90de79 100644
--- a/lib/private/Preview/TXT.php
+++ b/lib/private/Preview/TXT.php
@@ -62,7 +62,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
return null;
}
- $content = stream_get_contents($content,3000);
+ $content = stream_get_contents($content, 3000);
//don't create previews of empty text files
if (trim($content) === '') {
diff --git a/lib/private/Security/TrustedDomainHelper.php b/lib/private/Security/TrustedDomainHelper.php
index 175e4cbd3569b..0688ebba5b3bc 100644
--- a/lib/private/Security/TrustedDomainHelper.php
+++ b/lib/private/Security/TrustedDomainHelper.php
@@ -98,7 +98,7 @@ public function isTrustedDomain(string $domainWithPort): bool {
return true;
}
// Reject misformed domains in any case
- if (strpos($domain,'-') === 0 || strpos($domain,'..') !== false) {
+ if (strpos($domain, '-') === 0 || strpos($domain, '..') !== false) {
return false;
}
// Match, allowing for * wildcards
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php
index 8a12465fd8dfa..920baf3e4ee10 100644
--- a/lib/private/Setup/MySQL.php
+++ b/lib/private/Setup/MySQL.php
@@ -125,7 +125,7 @@ private function createDBUser($connection) {
$connection->executeUpdate($query);
}
} catch (\Exception $ex) {
- $this->logger->error('Database user creation failed.',[
+ $this->logger->error('Database user creation failed.', [
'exception' => $ex,
'app' => 'mysql.setup',
]);
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php
index 548c8a2c4517f..47b09982f3aff 100644
--- a/lib/private/Share/Share.php
+++ b/lib/private/Share/Share.php
@@ -847,7 +847,7 @@ private static function transformDBResults(&$row) {
* @param array $parameters additional format parameters
* @return array format result
*/
- private static function formatResult($items, $column, $backend, $format = self::FORMAT_NONE , $parameters = null) {
+ private static function formatResult($items, $column, $backend, $format = self::FORMAT_NONE, $parameters = null) {
if ($format === self::FORMAT_NONE) {
return $items;
} elseif ($format === self::FORMAT_STATUSES) {
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index ec0f25cbae50f..6e8d9105a7692 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -670,7 +670,7 @@ public function getSharesInFolder($userId, Folder $node, $reshares) {
);
}
- $qb->innerJoin('s', 'filecache' ,'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
+ $qb->innerJoin('s', 'filecache', 'f', $qb->expr()->eq('s.file_source', 'f.fileid'));
$qb->andWhere($qb->expr()->eq('f.parent', $qb->createNamedParameter($node->getId())));
$qb->orderBy('id');
diff --git a/lib/private/URLGenerator.php b/lib/private/URLGenerator.php
index 382179b23e03c..753a4a217d1c0 100644
--- a/lib/private/URLGenerator.php
+++ b/lib/private/URLGenerator.php
@@ -187,7 +187,7 @@ public function imagePath(string $appName, string $file): string {
$theme = \OC_Util::getTheme();
//if a theme has a png but not an svg always use the png
- $basename = substr(basename($file),0,-4);
+ $basename = substr(basename($file), 0, -4);
$appPath = \OC_App::getAppPath($appName);
diff --git a/lib/private/legacy/OC_DB.php b/lib/private/legacy/OC_DB.php
index 1fbc233f53524..39faf8e80aad8 100644
--- a/lib/private/legacy/OC_DB.php
+++ b/lib/private/legacy/OC_DB.php
@@ -42,7 +42,7 @@ class OC_DB {
*
* SQL query via Doctrine prepare(), needs to be execute()'d!
*/
- public static function prepare($query , $limit = null, $offset = null, $isManipulation = null) {
+ public static function prepare($query, $limit = null, $offset = null, $isManipulation = null) {
$connection = \OC::$server->getDatabaseConnection();
if ($isManipulation === null) {
diff --git a/lib/private/legacy/OC_DB_StatementWrapper.php b/lib/private/legacy/OC_DB_StatementWrapper.php
index d8e8f0ae37ffb..d6214a49a3335 100644
--- a/lib/private/legacy/OC_DB_StatementWrapper.php
+++ b/lib/private/legacy/OC_DB_StatementWrapper.php
@@ -59,7 +59,7 @@ public function __construct(IPreparedStatement $statement, $isManipulation) {
/**
* pass all other function directly to the \Doctrine\DBAL\Driver\Statement
*/
- public function __call($name,$arguments) {
+ public function __call($name, $arguments) {
return call_user_func_array([$this->statement,$name], $arguments);
}
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php
index 2fa7fa1ad3681..d12baa400c02b 100644
--- a/lib/public/IDBConnection.php
+++ b/lib/public/IDBConnection.php
@@ -188,7 +188,7 @@ public function insertIfNotExist(string $table, array $input, array $compare = n
* @return int number of inserted rows
* @since 16.0.0
*/
- public function insertIgnoreConflict(string $table,array $values) : int;
+ public function insertIgnoreConflict(string $table, array $values) : int;
/**
* Insert or update a row value
diff --git a/ocs/providers.php b/ocs/providers.php
index 34f931ad94086..ca0217d8e91dd 100644
--- a/ocs/providers.php
+++ b/ocs/providers.php
@@ -34,7 +34,7 @@
$writer = new XMLWriter();
$writer->openURI('php://output');
-$writer->startDocument('1.0','UTF-8');
+$writer->startDocument('1.0', 'UTF-8');
$writer->setIndent(true);
$writer->startElement('providers');
$writer->startElement('provider');
diff --git a/psalm-ocp.xml b/psalm-ocp.xml
index 407e08264355e..03706430c5f3f 100644
--- a/psalm-ocp.xml
+++ b/psalm-ocp.xml
@@ -16,6 +16,10 @@
+
+
+
+
diff --git a/psalm.xml b/psalm.xml
index 85ed49c77ee4d..9b3ea0444359f 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -75,14 +75,14 @@
+
+
-
-
@@ -126,11 +126,6 @@
-
-
-
-
-
diff --git a/tests/lib/AppFramework/Db/QBMapperTest.php b/tests/lib/AppFramework/Db/QBMapperTest.php
index 7865979ef418f..b03034056d2d2 100644
--- a/tests/lib/AppFramework/Db/QBMapperTest.php
+++ b/tests/lib/AppFramework/Db/QBMapperTest.php
@@ -109,11 +109,11 @@ protected function setUp(): void {
->disableOriginalConstructor()
->getMock();
- $this->qb = $this->getMockBuilder(IQueryBuilder:: class)
+ $this->qb = $this->getMockBuilder(IQueryBuilder::class)
->disableOriginalConstructor()
->getMock();
- $this->expr = $this->getMockBuilder(IExpressionBuilder:: class)
+ $this->expr = $this->getMockBuilder(IExpressionBuilder::class)
->disableOriginalConstructor()
->getMock();
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php
index 7260b31b27ed9..a4a03b6479cdc 100644
--- a/tests/lib/AppFramework/Http/RequestTest.php
+++ b/tests/lib/AppFramework/Http/RequestTest.php
@@ -1062,7 +1062,7 @@ public function testInsecureServerHostServerNameHeader() {
$this->stream
);
- $this->assertSame('from.server.name:8080', $request->getInsecureServerHost());
+ $this->assertSame('from.server.name:8080', $request->getInsecureServerHost());
}
public function testInsecureServerHostHttpHostHeader() {
@@ -1079,7 +1079,7 @@ public function testInsecureServerHostHttpHostHeader() {
$this->stream
);
- $this->assertSame('from.host.header:8080', $request->getInsecureServerHost());
+ $this->assertSame('from.host.header:8080', $request->getInsecureServerHost());
}
public function testInsecureServerHostHttpFromForwardedHeaderSingle() {
@@ -1108,7 +1108,7 @@ public function testInsecureServerHostHttpFromForwardedHeaderSingle() {
$this->stream
);
- $this->assertSame('from.forwarded.host:8080', $request->getInsecureServerHost());
+ $this->assertSame('from.forwarded.host:8080', $request->getInsecureServerHost());
}
public function testInsecureServerHostHttpFromForwardedHeaderStacked() {
@@ -1137,7 +1137,7 @@ public function testInsecureServerHostHttpFromForwardedHeaderStacked() {
$this->stream
);
- $this->assertSame('from.forwarded.host2:8080', $request->getInsecureServerHost());
+ $this->assertSame('from.forwarded.host2:8080', $request->getInsecureServerHost());
}
public function testGetServerHostWithOverwriteHost() {
@@ -1161,7 +1161,7 @@ public function testGetServerHostWithOverwriteHost() {
$this->stream
);
- $this->assertSame('my.overwritten.host', $request->getServerHost());
+ $this->assertSame('my.overwritten.host', $request->getServerHost());
}
public function testGetServerHostWithTrustedDomain() {
@@ -1190,7 +1190,7 @@ public function testGetServerHostWithTrustedDomain() {
$this->stream
);
- $this->assertSame('my.trusted.host', $request->getServerHost());
+ $this->assertSame('my.trusted.host', $request->getServerHost());
}
public function testGetServerHostWithUntrustedDomain() {
@@ -1219,7 +1219,7 @@ public function testGetServerHostWithUntrustedDomain() {
$this->stream
);
- $this->assertSame('my.trusted.host', $request->getServerHost());
+ $this->assertSame('my.trusted.host', $request->getServerHost());
}
public function testGetServerHostWithNoTrustedDomain() {
@@ -1245,7 +1245,7 @@ public function testGetServerHostWithNoTrustedDomain() {
$this->stream
);
- $this->assertSame('', $request->getServerHost());
+ $this->assertSame('', $request->getServerHost());
}
/**
diff --git a/tests/lib/AppFramework/Middleware/CompressionMiddlewareTest.php b/tests/lib/AppFramework/Middleware/CompressionMiddlewareTest.php
index 3eeac3ef10369..5dd1394209758 100644
--- a/tests/lib/AppFramework/Middleware/CompressionMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/CompressionMiddlewareTest.php
@@ -68,7 +68,7 @@ public function testGzipOCSV1() {
->willReturn(Http::STATUS_OK);
$this->middleWare->beforeController($this->controller, 'myMethod');
- $this->middleWare->afterController($this->controller,'myMethod', $response);
+ $this->middleWare->afterController($this->controller, 'myMethod', $response);
$output = 'myoutput';
$result = $this->middleWare->beforeOutput($this->controller, 'myMethod', $output);
@@ -90,7 +90,7 @@ public function testGzipOCSV2() {
->willReturn(Http::STATUS_OK);
$this->middleWare->beforeController($this->controller, 'myMethod');
- $this->middleWare->afterController($this->controller,'myMethod', $response);
+ $this->middleWare->afterController($this->controller, 'myMethod', $response);
$output = 'myoutput';
$result = $this->middleWare->beforeOutput($this->controller, 'myMethod', $output);
@@ -112,7 +112,7 @@ public function testGzipJSONResponse() {
->willReturn(Http::STATUS_OK);
$this->middleWare->beforeController($this->controller, 'myMethod');
- $this->middleWare->afterController($this->controller,'myMethod', $response);
+ $this->middleWare->afterController($this->controller, 'myMethod', $response);
$output = 'myoutput';
$result = $this->middleWare->beforeOutput($this->controller, 'myMethod', $output);
@@ -132,7 +132,7 @@ public function testNoGzipDataResponse() {
$response->method('getStatus')
->willReturn(Http::STATUS_OK);
$this->middleWare->beforeController($this->controller, 'myMethod');
- $this->middleWare->afterController($this->controller,'myMethod', $response);
+ $this->middleWare->afterController($this->controller, 'myMethod', $response);
$output = 'myoutput';
$result = $this->middleWare->beforeOutput($this->controller, 'myMethod', $output);
@@ -153,7 +153,7 @@ public function testNoGzipNo200() {
->willReturn(Http::STATUS_NOT_FOUND);
$this->middleWare->beforeController($this->controller, 'myMethod');
- $this->middleWare->afterController($this->controller,'myMethod', $response);
+ $this->middleWare->afterController($this->controller, 'myMethod', $response);
$output = 'myoutput';
$result = $this->middleWare->beforeOutput($this->controller, 'myMethod', $output);
diff --git a/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
index 786bac6d856bb..cc04992ae1859 100644
--- a/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/BruteForceMiddlewareTest.php
@@ -135,7 +135,7 @@ public function testAfterControllerWithAnnotationAndThrottledRequest() {
/** @var Controller|\PHPUnit\Framework\MockObject\MockObject $controller */
$controller = $this->createMock(Controller::class);
- $this->bruteForceMiddleware->afterController($controller, 'testMethod' ,$response);
+ $this->bruteForceMiddleware->afterController($controller, 'testMethod', $response);
}
public function testAfterControllerWithAnnotationAndNotThrottledRequest() {
@@ -165,7 +165,7 @@ public function testAfterControllerWithAnnotationAndNotThrottledRequest() {
/** @var Controller|\PHPUnit\Framework\MockObject\MockObject $controller */
$controller = $this->createMock(Controller::class);
- $this->bruteForceMiddleware->afterController($controller, 'testMethod' ,$response);
+ $this->bruteForceMiddleware->afterController($controller, 'testMethod', $response);
}
public function testAfterControllerWithoutAnnotation() {
@@ -188,6 +188,6 @@ public function testAfterControllerWithoutAnnotation() {
$controller = $this->createMock(Controller::class);
/** @var Response|\PHPUnit\Framework\MockObject\MockObject $response */
$response = $this->createMock(Response::class);
- $this->bruteForceMiddleware->afterController($controller, 'testMethod' ,$response);
+ $this->bruteForceMiddleware->afterController($controller, 'testMethod', $response);
}
}
diff --git a/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
index bf84a631f74f3..1af2b2b9f1c76 100644
--- a/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
@@ -446,7 +446,7 @@ public function testIsAdminCheck() {
* @SubAdminRequired
*/
public function testIsNotSubAdminCheck() {
- $this->reader->reflect(__CLASS__,__FUNCTION__);
+ $this->reader->reflect(__CLASS__, __FUNCTION__);
$sec = $this->getMiddleware(true, false, false);
$this->expectException(SecurityException::class);
@@ -458,7 +458,7 @@ public function testIsNotSubAdminCheck() {
* @SubAdminRequired
*/
public function testIsSubAdminCheck() {
- $this->reader->reflect(__CLASS__,__FUNCTION__);
+ $this->reader->reflect(__CLASS__, __FUNCTION__);
$sec = $this->getMiddleware(true, false, true);
$sec->beforeController($this, __METHOD__);
@@ -470,7 +470,7 @@ public function testIsSubAdminCheck() {
* @SubAdminRequired
*/
public function testIsSubAdminAndAdminCheck() {
- $this->reader->reflect(__CLASS__,__FUNCTION__);
+ $this->reader->reflect(__CLASS__, __FUNCTION__);
$sec = $this->getMiddleware(true, true, true);
$sec->beforeController($this, __METHOD__);
@@ -523,7 +523,7 @@ public function testAfterExceptionReturnsRedirectForNotLoggedInUser() {
new NotLoggedInException()
);
$expected = new RedirectResponse('http://localhost/nextcloud/index.php/login?redirect_url=nextcloud/index.php/apps/specialapp');
- $this->assertEquals($expected , $response);
+ $this->assertEquals($expected, $response);
}
public function testAfterExceptionRedirectsToWebRootAfterStrictCookieFail() {
@@ -546,7 +546,7 @@ public function testAfterExceptionRedirectsToWebRootAfterStrictCookieFail() {
);
$expected = new RedirectResponse(\OC::$WEBROOT . '/');
- $this->assertEquals($expected , $response);
+ $this->assertEquals($expected, $response);
}
@@ -594,7 +594,7 @@ public function testAfterExceptionReturnsTemplateResponse(SecurityException $exc
);
$expected = new TemplateResponse('core', '403', ['message' => $exception->getMessage()], 'guest');
$expected->setStatus($exception->getCode());
- $this->assertEquals($expected , $response);
+ $this->assertEquals($expected, $response);
}
public function testAfterAjaxExceptionReturnsJSONError() {
@@ -624,7 +624,7 @@ public function dataRestrictedApp() {
*/
public function testRestrictedAppLoggedInPublicPage() {
$middleware = $this->getMiddleware(true, false, false);
- $this->reader->reflect(__CLASS__,__FUNCTION__);
+ $this->reader->reflect(__CLASS__, __FUNCTION__);
$this->appManager->method('getAppPath')
->with('files')
@@ -645,7 +645,7 @@ public function testRestrictedAppLoggedInPublicPage() {
*/
public function testRestrictedAppNotLoggedInPublicPage() {
$middleware = $this->getMiddleware(false, false, false);
- $this->reader->reflect(__CLASS__,__FUNCTION__);
+ $this->reader->reflect(__CLASS__, __FUNCTION__);
$this->appManager->method('getAppPath')
->with('files')
@@ -665,7 +665,7 @@ public function testRestrictedAppNotLoggedInPublicPage() {
*/
public function testRestrictedAppLoggedIn() {
$middleware = $this->getMiddleware(true, false, false, false);
- $this->reader->reflect(__CLASS__,__FUNCTION__);
+ $this->reader->reflect(__CLASS__, __FUNCTION__);
$this->appManager->method('getAppPath')
->with('files')
diff --git a/tests/lib/Avatar/UserAvatarTest.php b/tests/lib/Avatar/UserAvatarTest.php
index 7833e3a4953e0..dd5f25163f299 100644
--- a/tests/lib/Avatar/UserAvatarTest.php
+++ b/tests/lib/Avatar/UserAvatarTest.php
@@ -258,8 +258,8 @@ public function testHashToInt() {
}
public function testMixPalette() {
- $colorFrom = new \OC\Color(0,0,0);
- $colorTo = new \OC\Color(6,12,18);
+ $colorFrom = new \OC\Color(0, 0, 0);
+ $colorTo = new \OC\Color(6, 12, 18);
$steps = 6;
$palette = $this->invokePrivate($this->avatar, 'mixPalette', [$steps, $colorFrom, $colorTo]);
foreach ($palette as $j => $color) {
@@ -268,7 +268,7 @@ public function testMixPalette() {
$incG = $colorTo->g / $steps * $j;
$incB = $colorTo->b / $steps * $j;
// ensure everything is equal
- $this->assertEquals($color, new \OC\Color($incR, $incG,$incB));
+ $this->assertEquals($color, new \OC\Color($incR, $incG, $incB));
}
$hashToInt = $this->invokePrivate($this->avatar, 'hashToInt', ['abcdef', 18]);
$this->assertTrue(gettype($hashToInt) === 'integer');
diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php
index c9eafeca28080..5791e28eb0c1d 100644
--- a/tests/lib/Cache/FileCacheTest.php
+++ b/tests/lib/Cache/FileCacheTest.php
@@ -63,7 +63,7 @@ protected function setUp(): void {
$this->storage = \OC\Files\Filesystem::getStorage('/');
\OC\Files\Filesystem::clearMounts();
$storage = new \OC\Files\Storage\Temporary([]);
- \OC\Files\Filesystem::mount($storage,[],'/');
+ \OC\Files\Filesystem::mount($storage, [], '/');
$datadir = str_replace('local::', '', $storage->getId());
$config = \OC::$server->getConfig();
$this->datadir = $config->getSystemValue('cachedirectory', \OC::$SERVERROOT.'/data/cache');
diff --git a/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php b/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php
index 6a568d7e01b03..4a168cb014350 100644
--- a/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php
+++ b/tests/lib/DB/QueryBuilder/ExpressionBuilderDBTest.php
@@ -122,8 +122,7 @@ public function testCastColumn(): void {
$query->createFunction(
'(' . $query->expr()->castColumn('configvalue', IQueryBuilder::PARAM_INT)
. ' + 1)'
- )
- , IQueryBuilder::PARAM_STR
+ ), IQueryBuilder::PARAM_STR
)
)
->where($query->expr()->eq('appid', $query->createNamedParameter($appId)))
diff --git a/tests/lib/DateTimeFormatterTest.php b/tests/lib/DateTimeFormatterTest.php
index 78ef0ef3ace26..2ca880ec132a9 100644
--- a/tests/lib/DateTimeFormatterTest.php
+++ b/tests/lib/DateTimeFormatterTest.php
@@ -100,7 +100,7 @@ public function formatDateSpanData() {
['in 2 years', $time, $this->getTimestampAgo($time, 0, 0, 0, 0, 2)],
// Test with compare timestamp
- ['today', $this->getTimestampAgo($time, 0, 0, 0, 0, 1), $this->getTimestampAgo($time, 0, 0, 0, 0, 1)],
+ ['today', $this->getTimestampAgo($time, 0, 0, 0, 0, 1), $this->getTimestampAgo($time, 0, 0, 0, 0, 1)],
['yesterday', $this->getTimestampAgo($time, 30, 15, 3, 1, 1), $this->getTimestampAgo($time, 0, 0, 0, 0, 1)],
['4 days ago', $this->getTimestampAgo($time, 30, 15, 3, 4, 1), $this->getTimestampAgo($time, 0, 0, 0, 0, 1)],
['5 months ago', $this->getTimestampAgo($time, 30, 15, 3, 155, 1), $this->getTimestampAgo($time, 0, 0, 0, 0, 1)],
diff --git a/tests/lib/Encryption/Keys/StorageTest.php b/tests/lib/Encryption/Keys/StorageTest.php
index fdfa08d87c4a4..30680646f7330 100644
--- a/tests/lib/Encryption/Keys/StorageTest.php
+++ b/tests/lib/Encryption/Keys/StorageTest.php
@@ -452,7 +452,7 @@ public function testRenameKeys($source, $target, $systemWideMountSource, $system
/**
* @dataProvider dataProviderCopyRename
*/
- public function testCopyKeys($source, $target, $systemWideMountSource, $systemWideMountTarget , $expectedSource, $expectedTarget) {
+ public function testCopyKeys($source, $target, $systemWideMountSource, $systemWideMountTarget, $expectedSource, $expectedTarget) {
$this->view->expects($this->any())
->method('file_exists')
->willReturn(true);
diff --git a/tests/lib/Files/Cache/CacheTest.php b/tests/lib/Files/Cache/CacheTest.php
index 744a779288d3f..7f8e1af15774d 100644
--- a/tests/lib/Files/Cache/CacheTest.php
+++ b/tests/lib/Files/Cache/CacheTest.php
@@ -399,23 +399,17 @@ public function testSearchByQuery() {
$user = $this->createMock(IUser::class);
$this->assertCount(1, $this->cache->searchQuery(new SearchQuery(
- new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'name', 'foo')
- , 10, 0, [], $user)));
+ new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'name', 'foo'), 10, 0, [], $user)));
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
- new SearchComparison(ISearchComparison::COMPARE_LIKE, 'name', 'foo%')
- , 10, 0, [], $user)));
+ new SearchComparison(ISearchComparison::COMPARE_LIKE, 'name', 'foo%'), 10, 0, [], $user)));
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
- new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'mimetype', 'foo/file')
- , 10, 0, [], $user)));
+ new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'mimetype', 'foo/file'), 10, 0, [], $user)));
$this->assertCount(3, $this->cache->searchQuery(new SearchQuery(
- new SearchComparison(ISearchComparison::COMPARE_LIKE, 'mimetype', 'foo/%')
- , 10, 0, [], $user)));
+ new SearchComparison(ISearchComparison::COMPARE_LIKE, 'mimetype', 'foo/%'), 10, 0, [], $user)));
$this->assertCount(1, $this->cache->searchQuery(new SearchQuery(
- new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN, 'size', 100)
- , 10, 0, [], $user)));
+ new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN, 'size', 100), 10, 0, [], $user)));
$this->assertCount(2, $this->cache->searchQuery(new SearchQuery(
- new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN_EQUAL, 'size', 100)
- , 10, 0, [], $user)));
+ new SearchComparison(ISearchComparison::COMPARE_GREATER_THAN_EQUAL, 'size', 100), 10, 0, [], $user)));
}
public function movePathProvider() {
diff --git a/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php b/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php
index 85a68be3daf27..5ebfd48d1a62b 100644
--- a/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php
+++ b/tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php
@@ -89,7 +89,7 @@ public function testCheckUpdate() {
*/
public function testMove($source, $target) {
$this->initSourceAndTarget($source);
- $sourceId = $this->instance->getCache()->getId(ltrim('/',$source));
+ $sourceId = $this->instance->getCache()->getId(ltrim('/', $source));
$this->assertNotEquals(-1, $sourceId);
$this->instance->rename($source, $target);
@@ -98,7 +98,7 @@ public function testMove($source, $target) {
$this->assertFalse($this->instance->file_exists($source), $source.' still exists');
$this->assertSameAsLorem($target);
- $targetId = $this->instance->getCache()->getId(ltrim('/',$target));
+ $targetId = $this->instance->getCache()->getId(ltrim('/', $target));
$this->assertSame($sourceId, $targetId, 'fileid must be stable on move or shares will break');
}
diff --git a/tests/lib/L10N/L10nTest.php b/tests/lib/L10N/L10nTest.php
index 3fb22b3f66e3d..9f6337ba804d0 100644
--- a/tests/lib/L10N/L10nTest.php
+++ b/tests/lib/L10N/L10nTest.php
@@ -45,7 +45,7 @@ public function testGermanPluralTranslations() {
public function testRussianPluralTranslations() {
$transFile = \OC::$SERVERROOT.'/tests/data/l10n/ru.json';
- $l = new L10N($this->getFactory(), 'test', 'ru', 'ru_UA',[$transFile]);
+ $l = new L10N($this->getFactory(), 'test', 'ru', 'ru_UA', [$transFile]);
$this->assertEquals('1 файл', (string)$l->n('%n file', '%n files', 1));
$this->assertEquals('2 файла', (string)$l->n('%n file', '%n files', 2));
diff --git a/tests/lib/Mail/MessageTest.php b/tests/lib/Mail/MessageTest.php
index b0641ae332ff9..f30630824fcd7 100644
--- a/tests/lib/Mail/MessageTest.php
+++ b/tests/lib/Mail/MessageTest.php
@@ -113,7 +113,7 @@ public function testSetTo() {
/**
* @dataProvider getMailAddressProvider
*/
- public function testGetTo($swiftresult,$return) {
+ public function testGetTo($swiftresult, $return) {
$this->swiftMessage
->expects($this->once())
->method('getTo')
@@ -133,7 +133,7 @@ public function testSetCc() {
/**
* @dataProvider getMailAddressProvider
*/
- public function testGetCc($swiftresult,$return) {
+ public function testGetCc($swiftresult, $return) {
$this->swiftMessage
->expects($this->once())
->method('getCc')
@@ -153,7 +153,7 @@ public function testSetBcc() {
/**
* @dataProvider getMailAddressProvider
*/
- public function testGetBcc($swiftresult,$return) {
+ public function testGetBcc($swiftresult, $return) {
$this->swiftMessage
->expects($this->once())
->method('getBcc')
diff --git a/tests/lib/Security/HasherTest.php b/tests/lib/Security/HasherTest.php
index 5836703504e43..a81f98533ce69 100644
--- a/tests/lib/Security/HasherTest.php
+++ b/tests/lib/Security/HasherTest.php
@@ -197,7 +197,7 @@ public function testUpgradeHashBlowFishToArgon2() {
}
- $this->assertTrue($this->hasher->verify($message, $blowfish,$newHash));
+ $this->assertTrue($this->hasher->verify($message, $blowfish, $newHash));
$this->assertTrue($this->hasher->verify($message, $argon2));
$relativePath = self::invokePrivate($this->hasher, 'splitHash', [$newHash]);
diff --git a/tests/lib/Share20/DefaultShareProviderTest.php b/tests/lib/Share20/DefaultShareProviderTest.php
index 40626bdb57134..03e1bdb4346b8 100644
--- a/tests/lib/Share20/DefaultShareProviderTest.php
+++ b/tests/lib/Share20/DefaultShareProviderTest.php
@@ -951,7 +951,7 @@ public function testGetSharedWithUser($storageStringId, $fileName1, $fileName2)
$this->rootFolder->method('getUserFolder')->with('shareOwner')->willReturnSelf();
$this->rootFolder->method('getById')->with($fileId)->willReturn([$file]);
- $share = $this->provider->getSharedWith('sharedWith', IShare::TYPE_USER, null, 1 , 0);
+ $share = $this->provider->getSharedWith('sharedWith', IShare::TYPE_USER, null, 1, 0);
$this->assertCount(1, $share);
$share = $share[0];
@@ -1023,7 +1023,7 @@ public function testGetSharedWithGroup($storageStringId, $fileName1, $fileName2)
$this->rootFolder->method('getUserFolder')->with('shareOwner')->willReturnSelf();
$this->rootFolder->method('getById')->with($fileId)->willReturn([$file]);
- $share = $this->provider->getSharedWith('sharedWith', IShare::TYPE_GROUP, null, 20 , 1);
+ $share = $this->provider->getSharedWith('sharedWith', IShare::TYPE_GROUP, null, 20, 1);
$this->assertCount(1, $share);
$share = $share[0];
@@ -1267,7 +1267,7 @@ public function testGetSharedWithWithDeletedFile($shareType, $trashed) {
]);
$this->groupManager->method('getUserGroupIds')->with($user)->willReturn($groups);
- $share = $this->provider->getSharedWith('sharedWith', $shareType, null, 1 , 0);
+ $share = $this->provider->getSharedWith('sharedWith', $shareType, null, 1, 0);
$this->assertCount(0, $share);
}
diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php
index f1a53200f5f36..93f33fe30b95f 100644
--- a/tests/lib/Share20/ManagerTest.php
+++ b/tests/lib/Share20/ManagerTest.php
@@ -481,7 +481,7 @@ public function testGetExpiredShareById() {
->getMock();
$date = new \DateTime();
- $date->setTime(0,0,0);
+ $date->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setExpirationDate($date)
@@ -594,30 +594,30 @@ public function dataGeneralChecks() {
->willReturn($storage);
$data = [
- [$this->createShare(null, IShare::TYPE_USER, $file, null, $user0, $user0, 31, null, null), 'SharedWith is not a valid user', true],
- [$this->createShare(null, IShare::TYPE_USER, $file, $group0, $user0, $user0, 31, null, null), 'SharedWith is not a valid user', true],
- [$this->createShare(null, IShare::TYPE_USER, $file, 'foo@bar.com', $user0, $user0, 31, null, null), 'SharedWith is not a valid user', true],
+ [$this->createShare(null, IShare::TYPE_USER, $file, null, $user0, $user0, 31, null, null), 'SharedWith is not a valid user', true],
+ [$this->createShare(null, IShare::TYPE_USER, $file, $group0, $user0, $user0, 31, null, null), 'SharedWith is not a valid user', true],
+ [$this->createShare(null, IShare::TYPE_USER, $file, 'foo@bar.com', $user0, $user0, 31, null, null), 'SharedWith is not a valid user', true],
[$this->createShare(null, IShare::TYPE_GROUP, $file, null, $user0, $user0, 31, null, null), 'SharedWith is not a valid group', true],
[$this->createShare(null, IShare::TYPE_GROUP, $file, $user2, $user0, $user0, 31, null, null), 'SharedWith is not a valid group', true],
[$this->createShare(null, IShare::TYPE_GROUP, $file, 'foo@bar.com', $user0, $user0, 31, null, null), 'SharedWith is not a valid group', true],
- [$this->createShare(null, IShare::TYPE_LINK, $file, $user2, $user0, $user0, 31, null, null), 'SharedWith should be empty', true],
- [$this->createShare(null, IShare::TYPE_LINK, $file, $group0, $user0, $user0, 31, null, null), 'SharedWith should be empty', true],
- [$this->createShare(null, IShare::TYPE_LINK, $file, 'foo@bar.com', $user0, $user0, 31, null, null), 'SharedWith should be empty', true],
+ [$this->createShare(null, IShare::TYPE_LINK, $file, $user2, $user0, $user0, 31, null, null), 'SharedWith should be empty', true],
+ [$this->createShare(null, IShare::TYPE_LINK, $file, $group0, $user0, $user0, 31, null, null), 'SharedWith should be empty', true],
+ [$this->createShare(null, IShare::TYPE_LINK, $file, 'foo@bar.com', $user0, $user0, 31, null, null), 'SharedWith should be empty', true],
[$this->createShare(null, -1, $file, null, $user0, $user0, 31, null, null), 'unknown share type', true],
- [$this->createShare(null, IShare::TYPE_USER, $file, $user2, null, $user0, 31, null, null), 'SharedBy should be set', true],
+ [$this->createShare(null, IShare::TYPE_USER, $file, $user2, null, $user0, 31, null, null), 'SharedBy should be set', true],
[$this->createShare(null, IShare::TYPE_GROUP, $file, $group0, null, $user0, 31, null, null), 'SharedBy should be set', true],
- [$this->createShare(null, IShare::TYPE_LINK, $file, null, null, $user0, 31, null, null), 'SharedBy should be set', true],
+ [$this->createShare(null, IShare::TYPE_LINK, $file, null, null, $user0, 31, null, null), 'SharedBy should be set', true],
- [$this->createShare(null, IShare::TYPE_USER, $file, $user0, $user0, $user0, 31, null, null), 'Cannot share with yourself', true],
+ [$this->createShare(null, IShare::TYPE_USER, $file, $user0, $user0, $user0, 31, null, null), 'Cannot share with yourself', true],
- [$this->createShare(null, IShare::TYPE_USER, null, $user2, $user0, $user0, 31, null, null), 'Path should be set', true],
+ [$this->createShare(null, IShare::TYPE_USER, null, $user2, $user0, $user0, 31, null, null), 'Path should be set', true],
[$this->createShare(null, IShare::TYPE_GROUP, null, $group0, $user0, $user0, 31, null, null), 'Path should be set', true],
- [$this->createShare(null, IShare::TYPE_LINK, null, null, $user0, $user0, 31, null, null), 'Path should be set', true],
+ [$this->createShare(null, IShare::TYPE_LINK, null, null, $user0, $user0, 31, null, null), 'Path should be set', true],
- [$this->createShare(null, IShare::TYPE_USER, $node, $user2, $user0, $user0, 31, null, null), 'Path should be either a file or a folder', true],
+ [$this->createShare(null, IShare::TYPE_USER, $node, $user2, $user0, $user0, 31, null, null), 'Path should be either a file or a folder', true],
[$this->createShare(null, IShare::TYPE_GROUP, $node, $group0, $user0, $user0, 31, null, null), 'Path should be either a file or a folder', true],
- [$this->createShare(null, IShare::TYPE_LINK, $node, null, $user0, $user0, 31, null, null), 'Path should be either a file or a folder', true],
+ [$this->createShare(null, IShare::TYPE_LINK, $node, null, $user0, $user0, 31, null, null), 'Path should be either a file or a folder', true],
];
$nonShareAble = $this->createMock(Folder::class);
@@ -629,9 +629,9 @@ public function dataGeneralChecks() {
$nonShareAble->method('getStorage')
->willReturn($storage);
- $data[] = [$this->createShare(null, IShare::TYPE_USER, $nonShareAble, $user2, $user0, $user0, 31, null, null), 'You are not allowed to share name', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_USER, $nonShareAble, $user2, $user0, $user0, 31, null, null), 'You are not allowed to share name', true];
$data[] = [$this->createShare(null, IShare::TYPE_GROUP, $nonShareAble, $group0, $user0, $user0, 31, null, null), 'You are not allowed to share name', true];
- $data[] = [$this->createShare(null, IShare::TYPE_LINK, $nonShareAble, null, $user0, $user0, 31, null, null), 'You are not allowed to share name', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_LINK, $nonShareAble, null, $user0, $user0, 31, null, null), 'You are not allowed to share name', true];
$limitedPermssions = $this->createMock(File::class);
$limitedPermssions->method('isShareable')->willReturn(true);
@@ -644,17 +644,17 @@ public function dataGeneralChecks() {
$limitedPermssions->method('getStorage')
->willReturn($storage);
- $data[] = [$this->createShare(null, IShare::TYPE_USER, $limitedPermssions, $user2, $user0, $user0, null, null, null), 'A share requires permissions', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_USER, $limitedPermssions, $user2, $user0, $user0, null, null, null), 'A share requires permissions', true];
$data[] = [$this->createShare(null, IShare::TYPE_GROUP, $limitedPermssions, $group0, $user0, $user0, null, null, null), 'A share requires permissions', true];
- $data[] = [$this->createShare(null, IShare::TYPE_LINK, $limitedPermssions, null, $user0, $user0, null, null, null), 'A share requires permissions', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_LINK, $limitedPermssions, null, $user0, $user0, null, null, null), 'A share requires permissions', true];
$mount = $this->createMock(MoveableMount::class);
$limitedPermssions->method('getMountPoint')->willReturn($mount);
- $data[] = [$this->createShare(null, IShare::TYPE_USER, $limitedPermssions, $user2, $user0, $user0, 31, null, null), 'Cannot increase permissions of path', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_USER, $limitedPermssions, $user2, $user0, $user0, 31, null, null), 'Cannot increase permissions of path', true];
$data[] = [$this->createShare(null, IShare::TYPE_GROUP, $limitedPermssions, $group0, $user0, $user0, 17, null, null), 'Cannot increase permissions of path', true];
- $data[] = [$this->createShare(null, IShare::TYPE_LINK, $limitedPermssions, null, $user0, $user0, 3, null, null), 'Cannot increase permissions of path', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_LINK, $limitedPermssions, null, $user0, $user0, 3, null, null), 'Cannot increase permissions of path', true];
$nonMoveableMountPermssions = $this->createMock(Folder::class);
$nonMoveableMountPermssions->method('isShareable')->willReturn(true);
@@ -667,7 +667,7 @@ public function dataGeneralChecks() {
$nonMoveableMountPermssions->method('getStorage')
->willReturn($storage);
- $data[] = [$this->createShare(null, IShare::TYPE_USER, $nonMoveableMountPermssions, $user2, $user0, $user0, 11, null, null), 'Cannot increase permissions of path', false];
+ $data[] = [$this->createShare(null, IShare::TYPE_USER, $nonMoveableMountPermssions, $user2, $user0, $user0, 11, null, null), 'Cannot increase permissions of path', false];
$data[] = [$this->createShare(null, IShare::TYPE_GROUP, $nonMoveableMountPermssions, $group0, $user0, $user0, 11, null, null), 'Cannot increase permissions of path', false];
$rootFolder = $this->createMock(Folder::class);
@@ -675,9 +675,9 @@ public function dataGeneralChecks() {
$rootFolder->method('getPermissions')->willReturn(\OCP\Constants::PERMISSION_ALL);
$rootFolder->method('getId')->willReturn(42);
- $data[] = [$this->createShare(null, IShare::TYPE_USER, $rootFolder, $user2, $user0, $user0, 30, null, null), 'You cannot share your root folder', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_USER, $rootFolder, $user2, $user0, $user0, 30, null, null), 'You cannot share your root folder', true];
$data[] = [$this->createShare(null, IShare::TYPE_GROUP, $rootFolder, $group0, $user0, $user0, 2, null, null), 'You cannot share your root folder', true];
- $data[] = [$this->createShare(null, IShare::TYPE_LINK, $rootFolder, null, $user0, $user0, 16, null, null), 'You cannot share your root folder', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_LINK, $rootFolder, null, $user0, $user0, 16, null, null), 'You cannot share your root folder', true];
$allPermssions = $this->createMock(Folder::class);
$allPermssions->method('isShareable')->willReturn(true);
@@ -688,12 +688,12 @@ public function dataGeneralChecks() {
$allPermssions->method('getStorage')
->willReturn($storage);
- $data[] = [$this->createShare(null, IShare::TYPE_USER, $allPermssions, $user2, $user0, $user0, 30, null, null), 'Shares need at least read permissions', true];
+ $data[] = [$this->createShare(null, IShare::TYPE_USER, $allPermssions, $user2, $user0, $user0, 30, null, null), 'Shares need at least read permissions', true];
$data[] = [$this->createShare(null, IShare::TYPE_GROUP, $allPermssions, $group0, $user0, $user0, 2, null, null), 'Shares need at least read permissions', true];
- $data[] = [$this->createShare(null, IShare::TYPE_USER, $allPermssions, $user2, $user0, $user0, 31, null, null), null, false];
+ $data[] = [$this->createShare(null, IShare::TYPE_USER, $allPermssions, $user2, $user0, $user0, 31, null, null), null, false];
$data[] = [$this->createShare(null, IShare::TYPE_GROUP, $allPermssions, $group0, $user0, $user0, 3, null, null), null, false];
- $data[] = [$this->createShare(null, IShare::TYPE_LINK, $allPermssions, null, $user0, $user0, 17, null, null), null, false];
+ $data[] = [$this->createShare(null, IShare::TYPE_LINK, $allPermssions, null, $user0, $user0, 17, null, null), null, false];
$remoteStorage = $this->createMock(Storage\IStorage::class);
@@ -889,7 +889,7 @@ public function testValidateExpirationDateInternalEnforceButNotSetNewShare($shar
}
$expected = new \DateTime();
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$expected->add(new \DateInterval('P3D'));
self::invokePrivate($this->manager, 'validateExpirationDateInternal', [$share]);
@@ -924,7 +924,7 @@ public function testValidateExpirationDateInternalEnforceRelaxedDefaultButNotSet
}
$expected = new \DateTime();
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$expected->add(new \DateInterval('P1D'));
self::invokePrivate($this->manager, 'validateExpirationDateInternal', [$share]);
@@ -972,10 +972,10 @@ public function testValidateExpirationDateInternalEnforceTooFarIntoFuture($share
public function testValidateExpirationDateInternalEnforceValid($shareType) {
$future = new \DateTime();
$future->add(new \DateInterval('P2D'));
- $future->setTime(1,2,3);
+ $future->setTime(1, 2, 3);
$expected = clone $future;
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setShareType($shareType);
@@ -1014,10 +1014,10 @@ public function testValidateExpirationDateInternalEnforceValid($shareType) {
public function testValidateExpirationDateInternalNoDefault($shareType) {
$date = new \DateTime();
$date->add(new \DateInterval('P5D'));
- $date->setTime(1,2,3);
+ $date->setTime(1, 2, 3);
$expected = clone $date;
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setShareType($shareType);
@@ -1062,7 +1062,7 @@ public function testValidateExpirationDateInternalNoDateDefault($shareType) {
$expected = new \DateTime();
$expected->add(new \DateInterval('P3D'));
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
if ($shareType === IShare::TYPE_USER) {
$this->config->method('getAppValue')
@@ -1097,10 +1097,10 @@ public function testValidateExpirationDateInternalNoDateDefault($shareType) {
public function testValidateExpirationDateInternalDefault($shareType) {
$future = new \DateTime();
$future->add(new \DateInterval('P5D'));
- $future->setTime(1,2,3);
+ $future->setTime(1, 2, 3);
$expected = clone $future;
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setShareType($shareType);
@@ -1139,7 +1139,7 @@ public function testValidateExpirationDateInternalDefault($shareType) {
public function testValidateExpirationDateInternalHookModification($shareType) {
$nextWeek = new \DateTime();
$nextWeek->add(new \DateInterval('P7D'));
- $nextWeek->setTime(0,0,0);
+ $nextWeek->setTime(0, 0, 0);
$save = clone $nextWeek;
@@ -1168,7 +1168,7 @@ public function testValidateExpirationDateInternalHookException($shareType) {
$nextWeek = new \DateTime();
$nextWeek->add(new \DateInterval('P7D'));
- $nextWeek->setTime(0,0,0);
+ $nextWeek->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setShareType($shareType);
@@ -1267,7 +1267,7 @@ public function testValidateExpirationDateEnforceButNotSetNewShare() {
]);
$expected = new \DateTime();
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$expected->add(new \DateInterval('P3D'));
self::invokePrivate($this->manager, 'validateExpirationDateLink', [$share]);
@@ -1288,7 +1288,7 @@ public function testValidateExpirationDateEnforceRelaxedDefaultButNotSetNewShare
]);
$expected = new \DateTime();
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$expected->add(new \DateInterval('P1D'));
self::invokePrivate($this->manager, 'validateExpirationDateLink', [$share]);
@@ -1320,10 +1320,10 @@ public function testValidateExpirationDateEnforceTooFarIntoFuture() {
public function testValidateExpirationDateEnforceValid() {
$future = new \DateTime();
$future->add(new \DateInterval('P2D'));
- $future->setTime(1,2,3);
+ $future->setTime(1, 2, 3);
$expected = clone $future;
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setExpirationDate($future);
@@ -1349,10 +1349,10 @@ public function testValidateExpirationDateEnforceValid() {
public function testValidateExpirationDateNoDefault() {
$date = new \DateTime();
$date->add(new \DateInterval('P5D'));
- $date->setTime(1,2,3);
+ $date->setTime(1, 2, 3);
$expected = clone $date;
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setExpirationDate($date);
@@ -1388,7 +1388,7 @@ public function testValidateExpirationDateNoDateDefault() {
$expected = new \DateTime();
$expected->add(new \DateInterval('P3D'));
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$this->config->method('getAppValue')
->willReturnMap([
@@ -1411,10 +1411,10 @@ public function testValidateExpirationDateNoDateDefault() {
public function testValidateExpirationDateDefault() {
$future = new \DateTime();
$future->add(new \DateInterval('P5D'));
- $future->setTime(1,2,3);
+ $future->setTime(1, 2, 3);
$expected = clone $future;
- $expected->setTime(0,0,0);
+ $expected->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setExpirationDate($future);
@@ -1440,7 +1440,7 @@ public function testValidateExpirationDateDefault() {
public function testValidateExpirationDateHookModification() {
$nextWeek = new \DateTime();
$nextWeek->add(new \DateInterval('P7D'));
- $nextWeek->setTime(0,0,0);
+ $nextWeek->setTime(0, 0, 0);
$save = clone $nextWeek;
@@ -1465,7 +1465,7 @@ public function testValidateExpirationDateHookException() {
$nextWeek = new \DateTime();
$nextWeek->add(new \DateInterval('P7D'));
- $nextWeek->setTime(0,0,0);
+ $nextWeek->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setExpirationDate($nextWeek);
@@ -2623,7 +2623,7 @@ public function testGetSharesByExpiredLinkShares() {
}
$today = new \DateTime();
- $today->setTime(0,0,0);
+ $today->setTime(0, 0, 0);
/*
* Set the expiration date to today for some shares
@@ -2851,7 +2851,7 @@ public function testGetShareByTokenExpired() {
->getMock();
$date = new \DateTime();
- $date->setTime(0,0,0);
+ $date->setTime(0, 0, 0);
$share = $this->manager->newShare();
$share->setExpirationDate($date);
@@ -2875,7 +2875,7 @@ public function testGetShareByTokenNotExpired() {
->willReturn('yes');
$date = new \DateTime();
- $date->setTime(0,0,0);
+ $date->setTime(0, 0, 0);
$date->add(new \DateInterval('P2D'));
$share = $this->manager->newShare();
$share->setExpirationDate($date);
@@ -3195,7 +3195,7 @@ public function testUpdateShareLink() {
->setPermissions(15);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3276,7 +3276,7 @@ public function testUpdateShareLinkEnableSendPasswordByTalkWithNoPassword() {
->setPermissions(15);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3342,7 +3342,7 @@ public function testUpdateShareMail() {
->setPermissions(\OCP\Constants::PERMISSION_ALL);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3424,7 +3424,7 @@ public function testUpdateShareMailEnableSendPasswordByTalk() {
->setSendPasswordByTalk(false);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3507,7 +3507,7 @@ public function testUpdateShareMailEnableSendPasswordByTalkWithDifferentPassword
->setSendPasswordByTalk(false);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3598,7 +3598,7 @@ public function testUpdateShareMailEnableSendPasswordByTalkWithNoPassword() {
->setSendPasswordByTalk(false);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3671,7 +3671,7 @@ public function testUpdateShareMailEnableSendPasswordByTalkRemovingPassword() {
->setSendPasswordByTalk(false);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3744,7 +3744,7 @@ public function testUpdateShareMailEnableSendPasswordByTalkRemovingPasswordWithE
->setSendPasswordByTalk(false);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3817,7 +3817,7 @@ public function testUpdateShareMailEnableSendPasswordByTalkWithPreviousPassword(
->setSendPasswordByTalk(false);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3891,7 +3891,7 @@ public function testUpdateShareMailDisableSendPasswordByTalkWithPreviousPassword
->setSendPasswordByTalk(true);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
@@ -3965,7 +3965,7 @@ public function testUpdateShareMailDisableSendPasswordByTalkWithoutChangingPassw
->setSendPasswordByTalk(true);
$tomorrow = new \DateTime();
- $tomorrow->setTime(0,0,0);
+ $tomorrow->setTime(0, 0, 0);
$tomorrow->add(new \DateInterval('P1D'));
$file = $this->createMock(File::class);
diff --git a/tests/lib/User/UserTest.php b/tests/lib/User/UserTest.php
index ad8b01555eadc..aa56959d3cbcf 100644
--- a/tests/lib/User/UserTest.php
+++ b/tests/lib/User/UserTest.php
@@ -117,7 +117,7 @@ public function testSetPassword() {
});
$user = new User('foo', $backend, $this->dispatcher);
- $this->assertTrue($user->setPassword('bar',''));
+ $this->assertTrue($user->setPassword('bar', ''));
}
public function testSetPasswordNotSupported() {
@@ -133,7 +133,7 @@ public function testSetPasswordNotSupported() {
->willReturn(false);
$user = new User('foo', $backend, $this->dispatcher);
- $this->assertFalse($user->setPassword('bar',''));
+ $this->assertFalse($user->setPassword('bar', ''));
}
public function testChangeAvatarSupportedYes() {
@@ -389,12 +389,12 @@ public function testSetDisplayNameSupported() {
$backend->expects($this->once())
->method('setDisplayName')
- ->with('foo','Foo')
+ ->with('foo', 'Foo')
->willReturn(true);
$user = new User('foo', $backend, $this->dispatcher);
$this->assertTrue($user->setDisplayName('Foo'));
- $this->assertEquals('Foo',$user->getDisplayName());
+ $this->assertEquals('Foo', $user->getDisplayName());
}
/**
@@ -418,7 +418,7 @@ public function testSetDisplayNameEmpty() {
$user = new User('foo', $backend, $this->dispatcher);
$this->assertFalse($user->setDisplayName(' '));
- $this->assertEquals('foo',$user->getDisplayName());
+ $this->assertEquals('foo', $user->getDisplayName());
}
public function testSetDisplayNameNotSupported() {
@@ -436,7 +436,7 @@ public function testSetDisplayNameNotSupported() {
$user = new User('foo', $backend, $this->dispatcher);
$this->assertFalse($user->setDisplayName('Foo'));
- $this->assertEquals('foo',$user->getDisplayName());
+ $this->assertEquals('foo', $user->getDisplayName());
}
public function testSetPasswordHooks() {
@@ -476,7 +476,7 @@ public function testSetPasswordHooks() {
$user = new User('foo', $backend, $this->dispatcher, $emitter);
- $user->setPassword('bar','');
+ $user->setPassword('bar', '');
$this->assertEquals(2, $hooksCalled);
}
diff --git a/vendor-bin/cs-fixer/composer.json b/vendor-bin/cs-fixer/composer.json
index 8290b56d103e9..958c3246abbd3 100644
--- a/vendor-bin/cs-fixer/composer.json
+++ b/vendor-bin/cs-fixer/composer.json
@@ -4,8 +4,8 @@
"php": "7.3"
}
},
- "require": {
- "friendsofphp/php-cs-fixer": "2.19.1",
- "nextcloud/coding-standard": "^0.5.0"
- }
+ "require": {
+ "friendsofphp/php-cs-fixer": "^3.4.0",
+ "nextcloud/coding-standard": "^1.0.0"
+ }
}
diff --git a/vendor-bin/cs-fixer/composer.lock b/vendor-bin/cs-fixer/composer.lock
index e9bddf31ce75a..ec188f867c3ad 100644
--- a/vendor-bin/cs-fixer/composer.lock
+++ b/vendor-bin/cs-fixer/composer.lock
@@ -4,20 +4,91 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "5d1bc6052d45a0cf3a95e1c64db5dd47",
+ "content-hash": "c66e934287e6aaa6a9b6fdf7ac314a9a",
"packages": [
+ {
+ "name": "composer/pcre",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/pcre.git",
+ "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/pcre/zipball/3d322d715c43a1ac36c7fe215fa59336265500f2",
+ "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0 || ^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^1",
+ "phpstan/phpstan-strict-rules": "^1.1",
+ "symfony/phpunit-bridge": "^4.2 || ^5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\Pcre\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "description": "PCRE wrapping library that offers type-safe preg_* replacements.",
+ "keywords": [
+ "PCRE",
+ "preg",
+ "regex",
+ "regular expression"
+ ],
+ "support": {
+ "issues": "https://github.com/composer/pcre/issues",
+ "source": "https://github.com/composer/pcre/tree/1.0.0"
+ },
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-12-06T15:17:27+00:00"
+ },
{
"name": "composer/semver",
- "version": "3.2.5",
+ "version": "3.2.7",
"source": {
"type": "git",
"url": "https://github.com/composer/semver.git",
- "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9"
+ "reference": "deac27056b57e46faf136fae7b449eeaa71661ee"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/semver/zipball/31f3ea725711245195f62e54ffa402d8ef2fdba9",
- "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9",
+ "url": "https://api.github.com/repos/composer/semver/zipball/deac27056b57e46faf136fae7b449eeaa71661ee",
+ "reference": "deac27056b57e46faf136fae7b449eeaa71661ee",
"shasum": ""
},
"require": {
@@ -69,7 +140,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/semver/issues",
- "source": "https://github.com/composer/semver/tree/3.2.5"
+ "source": "https://github.com/composer/semver/tree/3.2.7"
},
"funding": [
{
@@ -85,29 +156,31 @@
"type": "tidelift"
}
],
- "time": "2021-05-24T12:41:47+00:00"
+ "time": "2022-01-04T09:57:54+00:00"
},
{
"name": "composer/xdebug-handler",
- "version": "2.0.2",
+ "version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/composer/xdebug-handler.git",
- "reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339"
+ "reference": "0c1a3925ec58a4ec98e992b9c7d171e9e184be0a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/84674dd3a7575ba617f5a76d7e9e29a7d3891339",
- "reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339",
+ "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/0c1a3925ec58a4ec98e992b9c7d171e9e184be0a",
+ "reference": "0c1a3925ec58a4ec98e992b9c7d171e9e184be0a",
"shasum": ""
},
"require": {
+ "composer/pcre": "^1",
"php": "^5.3.2 || ^7.0 || ^8.0",
"psr/log": "^1 || ^2 || ^3"
},
"require-dev": {
- "phpstan/phpstan": "^0.12.55",
- "symfony/phpunit-bridge": "^4.2 || ^5"
+ "phpstan/phpstan": "^1.0",
+ "phpstan/phpstan-strict-rules": "^1.1",
+ "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0"
},
"type": "library",
"autoload": {
@@ -133,7 +206,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/xdebug-handler/issues",
- "source": "https://github.com/composer/xdebug-handler/tree/2.0.2"
+ "source": "https://github.com/composer/xdebug-handler/tree/2.0.4"
},
"funding": [
{
@@ -149,7 +222,7 @@
"type": "tidelift"
}
],
- "time": "2021-07-31T17:03:58+00:00"
+ "time": "2022-01-04T17:06:45+00:00"
},
{
"name": "doctrine/annotations",
@@ -305,85 +378,65 @@
},
{
"name": "friendsofphp/php-cs-fixer",
- "version": "v2.19.1",
+ "version": "v3.4.0",
"source": {
"type": "git",
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
- "reference": "1fa4af92841f67362c053728989b262fba8eb1ec"
+ "reference": "47177af1cfb9dab5d1cc4daf91b7179c2efe7fad"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/1fa4af92841f67362c053728989b262fba8eb1ec",
- "reference": "1fa4af92841f67362c053728989b262fba8eb1ec",
+ "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/47177af1cfb9dab5d1cc4daf91b7179c2efe7fad",
+ "reference": "47177af1cfb9dab5d1cc4daf91b7179c2efe7fad",
"shasum": ""
},
"require": {
- "composer/semver": "^1.4 || ^2.0 || ^3.0",
- "composer/xdebug-handler": "^1.2 || ^2.0",
- "doctrine/annotations": "^1.2",
+ "composer/semver": "^3.2",
+ "composer/xdebug-handler": "^2.0",
+ "doctrine/annotations": "^1.12",
"ext-json": "*",
"ext-tokenizer": "*",
- "php": "^5.6 || ^7.0 || ^8.0",
- "php-cs-fixer/diff": "^1.3",
- "symfony/console": "^3.4.43 || ^4.1.6 || ^5.0",
- "symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0",
- "symfony/filesystem": "^3.0 || ^4.0 || ^5.0",
- "symfony/finder": "^3.0 || ^4.0 || ^5.0",
- "symfony/options-resolver": "^3.0 || ^4.0 || ^5.0",
- "symfony/polyfill-php70": "^1.0",
- "symfony/polyfill-php72": "^1.4",
- "symfony/process": "^3.0 || ^4.0 || ^5.0",
- "symfony/stopwatch": "^3.0 || ^4.0 || ^5.0"
+ "php": "^7.2.5 || ^8.0",
+ "php-cs-fixer/diff": "^2.0",
+ "symfony/console": "^4.4.20 || ^5.1.3 || ^6.0",
+ "symfony/event-dispatcher": "^4.4.20 || ^5.0 || ^6.0",
+ "symfony/filesystem": "^4.4.20 || ^5.0 || ^6.0",
+ "symfony/finder": "^4.4.20 || ^5.0 || ^6.0",
+ "symfony/options-resolver": "^4.4.20 || ^5.0 || ^6.0",
+ "symfony/polyfill-mbstring": "^1.23",
+ "symfony/polyfill-php80": "^1.23",
+ "symfony/polyfill-php81": "^1.23",
+ "symfony/process": "^4.4.20 || ^5.0 || ^6.0",
+ "symfony/stopwatch": "^4.4.20 || ^5.0 || ^6.0"
},
"require-dev": {
- "justinrainbow/json-schema": "^5.0",
- "keradus/cli-executor": "^1.4",
- "mikey179/vfsstream": "^1.6",
- "php-coveralls/php-coveralls": "^2.4.2",
- "php-cs-fixer/accessible-object": "^1.0",
+ "justinrainbow/json-schema": "^5.2",
+ "keradus/cli-executor": "^1.5",
+ "mikey179/vfsstream": "^1.6.8",
+ "php-coveralls/php-coveralls": "^2.5.2",
+ "php-cs-fixer/accessible-object": "^1.1",
"php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
"php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
+ "phpspec/prophecy": "^1.15",
"phpspec/prophecy-phpunit": "^1.1 || ^2.0",
- "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.5",
+ "phpunit/phpunit": "^8.5.21 || ^9.5",
"phpunitgoodpractices/polyfill": "^1.5",
"phpunitgoodpractices/traits": "^1.9.1",
- "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1",
- "symfony/phpunit-bridge": "^5.2.1",
- "symfony/yaml": "^3.0 || ^4.0 || ^5.0"
+ "symfony/phpunit-bridge": "^5.2.4 || ^6.0",
+ "symfony/yaml": "^4.4.20 || ^5.0 || ^6.0"
},
"suggest": {
"ext-dom": "For handling output formats in XML",
- "ext-mbstring": "For handling non-UTF8 characters.",
- "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.",
- "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.",
- "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible."
+ "ext-mbstring": "For handling non-UTF8 characters."
},
"bin": [
"php-cs-fixer"
],
"type": "application",
- "extra": {
- "branch-alias": {
- "dev-master": "2.19-dev"
- }
- },
"autoload": {
"psr-4": {
"PhpCsFixer\\": "src/"
- },
- "classmap": [
- "tests/Test/AbstractFixerTestCase.php",
- "tests/Test/AbstractIntegrationCaseFactory.php",
- "tests/Test/AbstractIntegrationTestCase.php",
- "tests/Test/Assert/AssertTokensTrait.php",
- "tests/Test/IntegrationCase.php",
- "tests/Test/IntegrationCaseFactory.php",
- "tests/Test/IntegrationCaseFactoryInterface.php",
- "tests/Test/InternalIntegrationCaseFactory.php",
- "tests/Test/IsIdenticalConstraint.php",
- "tests/Test/TokensWithObservedTransformers.php",
- "tests/TestCase.php"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -402,7 +455,7 @@
"description": "A tool to automatically fix PHP code style",
"support": {
"issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues",
- "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.19.1"
+ "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.4.0"
},
"funding": [
{
@@ -410,25 +463,25 @@
"type": "github"
}
],
- "time": "2021-08-02T17:52:09+00:00"
+ "time": "2021-12-11T16:25:08+00:00"
},
{
"name": "nextcloud/coding-standard",
- "version": "v0.5.0",
+ "version": "v1.0.0",
"source": {
"type": "git",
"url": "https://github.com/nextcloud/coding-standard.git",
- "reference": "742ed895ae76c10daf95e08488cfb3f554199f40"
+ "reference": "f3d1f9375e89c605deb1734f59a9f51ecbe80578"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/742ed895ae76c10daf95e08488cfb3f554199f40",
- "reference": "742ed895ae76c10daf95e08488cfb3f554199f40",
+ "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/f3d1f9375e89c605deb1734f59a9f51ecbe80578",
+ "reference": "f3d1f9375e89c605deb1734f59a9f51ecbe80578",
"shasum": ""
},
"require": {
- "friendsofphp/php-cs-fixer": "^2.17",
- "php": "^7.2|^8.0"
+ "friendsofphp/php-cs-fixer": "^3.2",
+ "php": "^7.3|^8.0"
},
"type": "library",
"autoload": {
@@ -449,22 +502,22 @@
"description": "Nextcloud coding standards for the php cs fixer",
"support": {
"issues": "https://github.com/nextcloud/coding-standard/issues",
- "source": "https://github.com/nextcloud/coding-standard/tree/v0.5.0"
+ "source": "https://github.com/nextcloud/coding-standard/tree/v1.0.0"
},
- "time": "2021-01-11T14:15:58+00:00"
+ "time": "2021-11-10T08:44:10+00:00"
},
{
"name": "php-cs-fixer/diff",
- "version": "v1.3.1",
+ "version": "v2.0.2",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/diff.git",
- "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759"
+ "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/dbd31aeb251639ac0b9e7e29405c1441907f5759",
- "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759",
+ "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/29dc0d507e838c4580d018bd8b5cb412474f7ec3",
+ "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3",
"shasum": ""
},
"require": {
@@ -492,21 +545,18 @@
{
"name": "Kore Nordmann",
"email": "mail@kore-nordmann.de"
- },
- {
- "name": "SpacePossum"
}
],
- "description": "sebastian/diff v2 backport support for PHP5.6",
+ "description": "sebastian/diff v3 backport support for PHP 5.6+",
"homepage": "https://github.com/PHP-CS-Fixer",
"keywords": [
"diff"
],
"support": {
"issues": "https://github.com/PHP-CS-Fixer/diff/issues",
- "source": "https://github.com/PHP-CS-Fixer/diff/tree/v1.3.1"
+ "source": "https://github.com/PHP-CS-Fixer/diff/tree/v2.0.2"
},
- "time": "2020-10-14T08:39:05+00:00"
+ "time": "2020-10-14T08:32:19+00:00"
},
{
"name": "psr/cache",
@@ -707,26 +757,26 @@
},
{
"name": "symfony/console",
- "version": "v5.3.6",
+ "version": "v5.4.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2"
+ "reference": "a2c6b7ced2eb7799a35375fb9022519282b5405e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/51b71afd6d2dc8f5063199357b9880cea8d8bfe2",
- "reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2",
+ "url": "https://api.github.com/repos/symfony/console/zipball/a2c6b7ced2eb7799a35375fb9022519282b5405e",
+ "reference": "a2c6b7ced2eb7799a35375fb9022519282b5405e",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
+ "symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-mbstring": "~1.0",
- "symfony/polyfill-php73": "^1.8",
+ "symfony/polyfill-php73": "^1.9",
"symfony/polyfill-php80": "^1.16",
- "symfony/service-contracts": "^1.1|^2",
- "symfony/string": "^5.1"
+ "symfony/service-contracts": "^1.1|^2|^3",
+ "symfony/string": "^5.1|^6.0"
},
"conflict": {
"psr/log": ">=3",
@@ -741,12 +791,12 @@
},
"require-dev": {
"psr/log": "^1|^2",
- "symfony/config": "^4.4|^5.0",
- "symfony/dependency-injection": "^4.4|^5.0",
- "symfony/event-dispatcher": "^4.4|^5.0",
- "symfony/lock": "^4.4|^5.0",
- "symfony/process": "^4.4|^5.0",
- "symfony/var-dumper": "^4.4|^5.0"
+ "symfony/config": "^4.4|^5.0|^6.0",
+ "symfony/dependency-injection": "^4.4|^5.0|^6.0",
+ "symfony/event-dispatcher": "^4.4|^5.0|^6.0",
+ "symfony/lock": "^4.4|^5.0|^6.0",
+ "symfony/process": "^4.4|^5.0|^6.0",
+ "symfony/var-dumper": "^4.4|^5.0|^6.0"
},
"suggest": {
"psr/log": "For using the console logger",
@@ -786,7 +836,7 @@
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v5.3.6"
+ "source": "https://github.com/symfony/console/tree/v5.4.2"
},
"funding": [
{
@@ -802,20 +852,20 @@
"type": "tidelift"
}
],
- "time": "2021-07-27T19:10:22+00:00"
+ "time": "2021-12-20T16:11:12+00:00"
},
{
"name": "symfony/deprecation-contracts",
- "version": "v2.4.0",
+ "version": "v2.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627"
+ "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8",
+ "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8",
"shasum": ""
},
"require": {
@@ -824,7 +874,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -853,7 +903,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0"
},
"funding": [
{
@@ -869,26 +919,26 @@
"type": "tidelift"
}
],
- "time": "2021-03-23T23:28:01+00:00"
+ "time": "2021-07-12T14:48:14+00:00"
},
{
"name": "symfony/event-dispatcher",
- "version": "v5.3.4",
+ "version": "v5.4.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "f2fd2208157553874560f3645d4594303058c4bd"
+ "reference": "27d39ae126352b9fa3be5e196ccf4617897be3eb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/f2fd2208157553874560f3645d4594303058c4bd",
- "reference": "f2fd2208157553874560f3645d4594303058c4bd",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/27d39ae126352b9fa3be5e196ccf4617897be3eb",
+ "reference": "27d39ae126352b9fa3be5e196ccf4617897be3eb",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
- "symfony/event-dispatcher-contracts": "^2",
+ "symfony/deprecation-contracts": "^2.1|^3",
+ "symfony/event-dispatcher-contracts": "^2|^3",
"symfony/polyfill-php80": "^1.16"
},
"conflict": {
@@ -900,13 +950,13 @@
},
"require-dev": {
"psr/log": "^1|^2|^3",
- "symfony/config": "^4.4|^5.0",
- "symfony/dependency-injection": "^4.4|^5.0",
- "symfony/error-handler": "^4.4|^5.0",
- "symfony/expression-language": "^4.4|^5.0",
- "symfony/http-foundation": "^4.4|^5.0",
- "symfony/service-contracts": "^1.1|^2",
- "symfony/stopwatch": "^4.4|^5.0"
+ "symfony/config": "^4.4|^5.0|^6.0",
+ "symfony/dependency-injection": "^4.4|^5.0|^6.0",
+ "symfony/error-handler": "^4.4|^5.0|^6.0",
+ "symfony/expression-language": "^4.4|^5.0|^6.0",
+ "symfony/http-foundation": "^4.4|^5.0|^6.0",
+ "symfony/service-contracts": "^1.1|^2|^3",
+ "symfony/stopwatch": "^4.4|^5.0|^6.0"
},
"suggest": {
"symfony/dependency-injection": "",
@@ -938,7 +988,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/event-dispatcher/tree/v5.3.4"
+ "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.0"
},
"funding": [
{
@@ -954,20 +1004,20 @@
"type": "tidelift"
}
],
- "time": "2021-07-23T15:55:36+00:00"
+ "time": "2021-11-23T10:19:22+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
- "version": "v2.4.0",
+ "version": "v2.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
- "reference": "69fee1ad2332a7cbab3aca13591953da9cdb7a11"
+ "reference": "66bea3b09be61613cd3b4043a65a8ec48cfa6d2a"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/69fee1ad2332a7cbab3aca13591953da9cdb7a11",
- "reference": "69fee1ad2332a7cbab3aca13591953da9cdb7a11",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/66bea3b09be61613cd3b4043a65a8ec48cfa6d2a",
+ "reference": "66bea3b09be61613cd3b4043a65a8ec48cfa6d2a",
"shasum": ""
},
"require": {
@@ -980,7 +1030,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1017,7 +1067,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.4.0"
+ "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.0"
},
"funding": [
{
@@ -1033,25 +1083,26 @@
"type": "tidelift"
}
],
- "time": "2021-03-23T23:28:01+00:00"
+ "time": "2021-07-12T14:48:14+00:00"
},
{
"name": "symfony/filesystem",
- "version": "v5.3.4",
+ "version": "v5.4.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
- "reference": "343f4fe324383ca46792cae728a3b6e2f708fb32"
+ "reference": "731f917dc31edcffec2c6a777f3698c33bea8f01"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/343f4fe324383ca46792cae728a3b6e2f708fb32",
- "reference": "343f4fe324383ca46792cae728a3b6e2f708fb32",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/731f917dc31edcffec2c6a777f3698c33bea8f01",
+ "reference": "731f917dc31edcffec2c6a777f3698c33bea8f01",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/polyfill-ctype": "~1.8",
+ "symfony/polyfill-mbstring": "~1.8",
"symfony/polyfill-php80": "^1.16"
},
"type": "library",
@@ -1080,7 +1131,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/filesystem/tree/v5.3.4"
+ "source": "https://github.com/symfony/filesystem/tree/v5.4.0"
},
"funding": [
{
@@ -1096,24 +1147,25 @@
"type": "tidelift"
}
],
- "time": "2021-07-21T12:40:44+00:00"
+ "time": "2021-10-28T13:39:27+00:00"
},
{
"name": "symfony/finder",
- "version": "v5.3.4",
+ "version": "v5.4.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "17f50e06018baec41551a71a15731287dbaab186"
+ "reference": "e77046c252be48c48a40816187ed527703c8f76c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/17f50e06018baec41551a71a15731287dbaab186",
- "reference": "17f50e06018baec41551a71a15731287dbaab186",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/e77046c252be48c48a40816187ed527703c8f76c",
+ "reference": "e77046c252be48c48a40816187ed527703c8f76c",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
+ "symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-php80": "^1.16"
},
"type": "library",
@@ -1142,7 +1194,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/finder/tree/v5.3.4"
+ "source": "https://github.com/symfony/finder/tree/v5.4.2"
},
"funding": [
{
@@ -1158,25 +1210,25 @@
"type": "tidelift"
}
],
- "time": "2021-07-23T15:54:19+00:00"
+ "time": "2021-12-15T11:06:13+00:00"
},
{
"name": "symfony/options-resolver",
- "version": "v5.3.4",
+ "version": "v5.4.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/options-resolver.git",
- "reference": "a603e5701bd6e305cfc777a8b50bf081ef73105e"
+ "reference": "b0fb78576487af19c500aaddb269fd36701d4847"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a603e5701bd6e305cfc777a8b50bf081ef73105e",
- "reference": "a603e5701bd6e305cfc777a8b50bf081ef73105e",
+ "url": "https://api.github.com/repos/symfony/options-resolver/zipball/b0fb78576487af19c500aaddb269fd36701d4847",
+ "reference": "b0fb78576487af19c500aaddb269fd36701d4847",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
+ "symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-php73": "~1.0",
"symfony/polyfill-php80": "^1.16"
},
@@ -1211,7 +1263,7 @@
"options"
],
"support": {
- "source": "https://github.com/symfony/options-resolver/tree/v5.3.4"
+ "source": "https://github.com/symfony/options-resolver/tree/v5.4.0"
},
"funding": [
{
@@ -1227,25 +1279,28 @@
"type": "tidelift"
}
],
- "time": "2021-07-23T15:55:36+00:00"
+ "time": "2021-11-23T10:19:22+00:00"
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.23.0",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
+ "reference": "30885182c981ab175d4d034db0f6f469898070ab"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab",
+ "reference": "30885182c981ab175d4d034db0f6f469898070ab",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
+ "provide": {
+ "ext-ctype": "*"
+ },
"suggest": {
"ext-ctype": "For best performance"
},
@@ -1290,7 +1345,7 @@
"portable"
],
"support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.24.0"
},
"funding": [
{
@@ -1306,20 +1361,20 @@
"type": "tidelift"
}
],
- "time": "2021-02-19T12:13:01+00:00"
+ "time": "2021-10-20T20:35:02+00:00"
},
{
"name": "symfony/polyfill-intl-grapheme",
- "version": "v1.23.1",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
- "reference": "16880ba9c5ebe3642d1995ab866db29270b36535"
+ "reference": "81b86b50cf841a64252b439e738e97f4a34e2783"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/16880ba9c5ebe3642d1995ab866db29270b36535",
- "reference": "16880ba9c5ebe3642d1995ab866db29270b36535",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/81b86b50cf841a64252b439e738e97f4a34e2783",
+ "reference": "81b86b50cf841a64252b439e738e97f4a34e2783",
"shasum": ""
},
"require": {
@@ -1371,7 +1426,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.1"
+ "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.24.0"
},
"funding": [
{
@@ -1387,11 +1442,11 @@
"type": "tidelift"
}
],
- "time": "2021-05-27T12:26:48+00:00"
+ "time": "2021-11-23T21:10:46+00:00"
},
{
"name": "symfony/polyfill-intl-normalizer",
- "version": "v1.23.0",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
@@ -1455,7 +1510,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.23.0"
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.24.0"
},
"funding": [
{
@@ -1475,21 +1530,24 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.23.1",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6"
+ "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6",
- "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825",
+ "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
+ "provide": {
+ "ext-mbstring": "*"
+ },
"suggest": {
"ext-mbstring": "For best performance"
},
@@ -1535,7 +1593,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1"
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.24.0"
},
"funding": [
{
@@ -1551,88 +1609,20 @@
"type": "tidelift"
}
],
- "time": "2021-05-27T12:26:48+00:00"
+ "time": "2021-11-30T18:21:41+00:00"
},
{
- "name": "symfony/polyfill-php70",
- "version": "v1.20.0",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/polyfill-php70.git",
- "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/5f03a781d984aae42cebd18e7912fa80f02ee644",
- "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644",
- "shasum": ""
- },
- "require": {
- "php": ">=7.1"
- },
- "type": "metapackage",
- "extra": {
- "branch-alias": {
- "dev-main": "1.20-dev"
- },
- "thanks": {
- "name": "symfony/polyfill",
- "url": "https://github.com/symfony/polyfill"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
- ],
- "support": {
- "source": "https://github.com/symfony/polyfill-php70/tree/v1.20.0"
- },
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
- ],
- "time": "2020-10-23T14:02:19+00:00"
- },
- {
- "name": "symfony/polyfill-php72",
- "version": "v1.23.0",
+ "name": "symfony/polyfill-php73",
+ "version": "v1.24.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-php72.git",
- "reference": "9a142215a36a3888e30d0a9eeea9766764e96976"
+ "url": "https://github.com/symfony/polyfill-php73.git",
+ "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9a142215a36a3888e30d0a9eeea9766764e96976",
- "reference": "9a142215a36a3888e30d0a9eeea9766764e96976",
+ "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/cc5db0e22b3cb4111010e48785a97f670b350ca5",
+ "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5",
"shasum": ""
},
"require": {
@@ -1650,10 +1640,13 @@
},
"autoload": {
"psr-4": {
- "Symfony\\Polyfill\\Php72\\": ""
+ "Symfony\\Polyfill\\Php73\\": ""
},
"files": [
"bootstrap.php"
+ ],
+ "classmap": [
+ "Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -1670,7 +1663,7 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
+ "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
@@ -1679,7 +1672,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php72/tree/v1.23.0"
+ "source": "https://github.com/symfony/polyfill-php73/tree/v1.24.0"
},
"funding": [
{
@@ -1695,20 +1688,20 @@
"type": "tidelift"
}
],
- "time": "2021-05-27T09:17:38+00:00"
+ "time": "2021-06-05T21:20:04+00:00"
},
{
- "name": "symfony/polyfill-php73",
- "version": "v1.23.0",
+ "name": "symfony/polyfill-php80",
+ "version": "v1.24.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-php73.git",
- "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010"
+ "url": "https://github.com/symfony/polyfill-php80.git",
+ "reference": "57b712b08eddb97c762a8caa32c84e037892d2e9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010",
- "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/57b712b08eddb97c762a8caa32c84e037892d2e9",
+ "reference": "57b712b08eddb97c762a8caa32c84e037892d2e9",
"shasum": ""
},
"require": {
@@ -1726,7 +1719,7 @@
},
"autoload": {
"psr-4": {
- "Symfony\\Polyfill\\Php73\\": ""
+ "Symfony\\Polyfill\\Php80\\": ""
},
"files": [
"bootstrap.php"
@@ -1740,6 +1733,10 @@
"MIT"
],
"authors": [
+ {
+ "name": "Ion Bazan",
+ "email": "ion.bazan@gmail.com"
+ },
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
@@ -1749,7 +1746,7 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
+ "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
@@ -1758,7 +1755,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0"
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.24.0"
},
"funding": [
{
@@ -1774,20 +1771,20 @@
"type": "tidelift"
}
],
- "time": "2021-02-19T12:13:01+00:00"
+ "time": "2021-09-13T13:58:33+00:00"
},
{
- "name": "symfony/polyfill-php80",
- "version": "v1.23.1",
+ "name": "symfony/polyfill-php81",
+ "version": "v1.24.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
+ "url": "https://github.com/symfony/polyfill-php81.git",
+ "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
+ "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/5de4ba2d41b15f9bd0e19b2ab9674135813ec98f",
+ "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f",
"shasum": ""
},
"require": {
@@ -1805,7 +1802,7 @@
},
"autoload": {
"psr-4": {
- "Symfony\\Polyfill\\Php80\\": ""
+ "Symfony\\Polyfill\\Php81\\": ""
},
"files": [
"bootstrap.php"
@@ -1819,10 +1816,6 @@
"MIT"
],
"authors": [
- {
- "name": "Ion Bazan",
- "email": "ion.bazan@gmail.com"
- },
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
@@ -1832,7 +1825,7 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
+ "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
@@ -1841,7 +1834,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1"
+ "source": "https://github.com/symfony/polyfill-php81/tree/v1.24.0"
},
"funding": [
{
@@ -1857,20 +1850,20 @@
"type": "tidelift"
}
],
- "time": "2021-07-28T13:41:28+00:00"
+ "time": "2021-09-13T13:58:11+00:00"
},
{
"name": "symfony/process",
- "version": "v5.3.4",
+ "version": "v5.4.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "d16634ee55b895bd85ec714dadc58e4428ecf030"
+ "reference": "2b3ba8722c4aaf3e88011be5e7f48710088fb5e4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/d16634ee55b895bd85ec714dadc58e4428ecf030",
- "reference": "d16634ee55b895bd85ec714dadc58e4428ecf030",
+ "url": "https://api.github.com/repos/symfony/process/zipball/2b3ba8722c4aaf3e88011be5e7f48710088fb5e4",
+ "reference": "2b3ba8722c4aaf3e88011be5e7f48710088fb5e4",
"shasum": ""
},
"require": {
@@ -1903,7 +1896,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/process/tree/v5.3.4"
+ "source": "https://github.com/symfony/process/tree/v5.4.2"
},
"funding": [
{
@@ -1919,25 +1912,29 @@
"type": "tidelift"
}
],
- "time": "2021-07-23T15:54:19+00:00"
+ "time": "2021-12-27T21:01:00+00:00"
},
{
"name": "symfony/service-contracts",
- "version": "v2.4.0",
+ "version": "v2.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
- "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb"
+ "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb",
- "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc",
+ "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "psr/container": "^1.1"
+ "psr/container": "^1.1",
+ "symfony/deprecation-contracts": "^2.1"
+ },
+ "conflict": {
+ "ext-psr": "<1.1|>=2"
},
"suggest": {
"symfony/service-implementation": ""
@@ -1945,7 +1942,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1982,7 +1979,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/service-contracts/tree/v2.4.0"
+ "source": "https://github.com/symfony/service-contracts/tree/v2.5.0"
},
"funding": [
{
@@ -1998,25 +1995,25 @@
"type": "tidelift"
}
],
- "time": "2021-04-01T10:43:52+00:00"
+ "time": "2021-11-04T16:48:04+00:00"
},
{
"name": "symfony/stopwatch",
- "version": "v5.3.4",
+ "version": "v5.4.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/stopwatch.git",
- "reference": "b24c6a92c6db316fee69e38c80591e080e41536c"
+ "reference": "208ef96122bfed82a8f3a61458a07113a08bdcfe"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/b24c6a92c6db316fee69e38c80591e080e41536c",
- "reference": "b24c6a92c6db316fee69e38c80591e080e41536c",
+ "url": "https://api.github.com/repos/symfony/stopwatch/zipball/208ef96122bfed82a8f3a61458a07113a08bdcfe",
+ "reference": "208ef96122bfed82a8f3a61458a07113a08bdcfe",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "symfony/service-contracts": "^1.0|^2"
+ "symfony/service-contracts": "^1|^2|^3"
},
"type": "library",
"autoload": {
@@ -2044,7 +2041,7 @@
"description": "Provides a way to profile code",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/stopwatch/tree/v5.3.4"
+ "source": "https://github.com/symfony/stopwatch/tree/v5.4.0"
},
"funding": [
{
@@ -2060,20 +2057,20 @@
"type": "tidelift"
}
],
- "time": "2021-07-10T08:58:57+00:00"
+ "time": "2021-11-23T10:19:22+00:00"
},
{
"name": "symfony/string",
- "version": "v5.3.3",
+ "version": "v5.4.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1"
+ "reference": "e6a5d5ecf6589c5247d18e0e74e30b11dfd51a3d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1",
- "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1",
+ "url": "https://api.github.com/repos/symfony/string/zipball/e6a5d5ecf6589c5247d18e0e74e30b11dfd51a3d",
+ "reference": "e6a5d5ecf6589c5247d18e0e74e30b11dfd51a3d",
"shasum": ""
},
"require": {
@@ -2084,11 +2081,14 @@
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php80": "~1.15"
},
+ "conflict": {
+ "symfony/translation-contracts": ">=3.0"
+ },
"require-dev": {
- "symfony/error-handler": "^4.4|^5.0",
- "symfony/http-client": "^4.4|^5.0",
+ "symfony/error-handler": "^4.4|^5.0|^6.0",
+ "symfony/http-client": "^4.4|^5.0|^6.0",
"symfony/translation-contracts": "^1.1|^2",
- "symfony/var-exporter": "^4.4|^5.0"
+ "symfony/var-exporter": "^4.4|^5.0|^6.0"
},
"type": "library",
"autoload": {
@@ -2127,7 +2127,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v5.3.3"
+ "source": "https://github.com/symfony/string/tree/v5.4.2"
},
"funding": [
{
@@ -2143,7 +2143,7 @@
"type": "tidelift"
}
],
- "time": "2021-06-27T11:44:38+00:00"
+ "time": "2021-12-16T21:52:00+00:00"
}
],
"packages-dev": [],
@@ -2157,5 +2157,5 @@
"platform-overrides": {
"php": "7.3"
},
- "plugin-api-version": "2.1.0"
+ "plugin-api-version": "2.2.0"
}
diff --git a/vendor-bin/psalm/composer.json b/vendor-bin/psalm/composer.json
index f3494d8ac1831..e03c935cb998f 100644
--- a/vendor-bin/psalm/composer.json
+++ b/vendor-bin/psalm/composer.json
@@ -1,10 +1,13 @@
{
- "config": {
- "platform": {
- "php": "7.3"
- }
- },
"require": {
- "vimeo/psalm": "4.8.1"
+ "vimeo/psalm": "^4.18"
+ },
+ "config": {
+ "platform": {
+ "php": "7.3"
+ },
+ "allow-plugins": {
+ "composer/package-versions-deprecated": true
+ }
}
}
diff --git a/vendor-bin/psalm/composer.lock b/vendor-bin/psalm/composer.lock
index 80b901469bc2d..faa325c5601cf 100644
--- a/vendor-bin/psalm/composer.lock
+++ b/vendor-bin/psalm/composer.lock
@@ -4,20 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "ba2a70c923aa539b8f49b4b9a10686d9",
+ "content-hash": "c3c578c654631288a179470ece96f0ba",
"packages": [
{
"name": "amphp/amp",
- "version": "v2.6.0",
+ "version": "v2.6.1",
"source": {
"type": "git",
"url": "https://github.com/amphp/amp.git",
- "reference": "caa95edeb1ca1bf7532e9118ede4a3c3126408cc"
+ "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/amphp/amp/zipball/caa95edeb1ca1bf7532e9118ede4a3c3126408cc",
- "reference": "caa95edeb1ca1bf7532e9118ede4a3c3126408cc",
+ "url": "https://api.github.com/repos/amphp/amp/zipball/c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae",
+ "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae",
"shasum": ""
},
"require": {
@@ -85,7 +85,7 @@
"support": {
"irc": "irc://irc.freenode.org/amphp",
"issues": "https://github.com/amphp/amp/issues",
- "source": "https://github.com/amphp/amp/tree/v2.6.0"
+ "source": "https://github.com/amphp/amp/tree/v2.6.1"
},
"funding": [
{
@@ -93,7 +93,7 @@
"type": "github"
}
],
- "time": "2021-07-16T20:06:06+00:00"
+ "time": "2021-09-23T18:43:08+00:00"
},
{
"name": "amphp/byte-stream",
@@ -174,16 +174,16 @@
},
{
"name": "composer/package-versions-deprecated",
- "version": "1.11.99.2",
+ "version": "1.11.99.4",
"source": {
"type": "git",
"url": "https://github.com/composer/package-versions-deprecated.git",
- "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c"
+ "reference": "b174585d1fe49ceed21928a945138948cb394600"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/c6522afe5540d5fc46675043d3ed5a45a740b27c",
- "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c",
+ "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b174585d1fe49ceed21928a945138948cb394600",
+ "reference": "b174585d1fe49ceed21928a945138948cb394600",
"shasum": ""
},
"require": {
@@ -227,7 +227,7 @@
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
"support": {
"issues": "https://github.com/composer/package-versions-deprecated/issues",
- "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.2"
+ "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.4"
},
"funding": [
{
@@ -243,20 +243,91 @@
"type": "tidelift"
}
],
- "time": "2021-05-24T07:46:03+00:00"
+ "time": "2021-09-13T08:41:34+00:00"
+ },
+ {
+ "name": "composer/pcre",
+ "version": "1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/pcre.git",
+ "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/pcre/zipball/3d322d715c43a1ac36c7fe215fa59336265500f2",
+ "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.2 || ^7.0 || ^8.0"
+ },
+ "require-dev": {
+ "phpstan/phpstan": "^1",
+ "phpstan/phpstan-strict-rules": "^1.1",
+ "symfony/phpunit-bridge": "^4.2 || ^5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-main": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\Pcre\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "description": "PCRE wrapping library that offers type-safe preg_* replacements.",
+ "keywords": [
+ "PCRE",
+ "preg",
+ "regex",
+ "regular expression"
+ ],
+ "support": {
+ "issues": "https://github.com/composer/pcre/issues",
+ "source": "https://github.com/composer/pcre/tree/1.0.0"
+ },
+ "funding": [
+ {
+ "url": "https://packagist.com",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/composer",
+ "type": "github"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/composer/composer",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2021-12-06T15:17:27+00:00"
},
{
"name": "composer/semver",
- "version": "3.2.5",
+ "version": "3.2.7",
"source": {
"type": "git",
"url": "https://github.com/composer/semver.git",
- "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9"
+ "reference": "deac27056b57e46faf136fae7b449eeaa71661ee"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/semver/zipball/31f3ea725711245195f62e54ffa402d8ef2fdba9",
- "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9",
+ "url": "https://api.github.com/repos/composer/semver/zipball/deac27056b57e46faf136fae7b449eeaa71661ee",
+ "reference": "deac27056b57e46faf136fae7b449eeaa71661ee",
"shasum": ""
},
"require": {
@@ -308,7 +379,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/semver/issues",
- "source": "https://github.com/composer/semver/tree/3.2.5"
+ "source": "https://github.com/composer/semver/tree/3.2.7"
},
"funding": [
{
@@ -324,29 +395,31 @@
"type": "tidelift"
}
],
- "time": "2021-05-24T12:41:47+00:00"
+ "time": "2022-01-04T09:57:54+00:00"
},
{
"name": "composer/xdebug-handler",
- "version": "2.0.2",
+ "version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/composer/xdebug-handler.git",
- "reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339"
+ "reference": "12f1b79476638a5615ed00ea6adbb269cec96fd8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/84674dd3a7575ba617f5a76d7e9e29a7d3891339",
- "reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339",
+ "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/12f1b79476638a5615ed00ea6adbb269cec96fd8",
+ "reference": "12f1b79476638a5615ed00ea6adbb269cec96fd8",
"shasum": ""
},
"require": {
- "php": "^5.3.2 || ^7.0 || ^8.0",
+ "composer/pcre": "^1",
+ "php": "^7.2.5 || ^8.0",
"psr/log": "^1 || ^2 || ^3"
},
"require-dev": {
- "phpstan/phpstan": "^0.12.55",
- "symfony/phpunit-bridge": "^4.2 || ^5"
+ "phpstan/phpstan": "^1.0",
+ "phpstan/phpstan-strict-rules": "^1.1",
+ "symfony/phpunit-bridge": "^6.0"
},
"type": "library",
"autoload": {
@@ -372,7 +445,7 @@
"support": {
"irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/xdebug-handler/issues",
- "source": "https://github.com/composer/xdebug-handler/tree/2.0.2"
+ "source": "https://github.com/composer/xdebug-handler/tree/3.0.1"
},
"funding": [
{
@@ -388,7 +461,7 @@
"type": "tidelift"
}
],
- "time": "2021-07-31T17:03:58+00:00"
+ "time": "2022-01-04T18:29:42+00:00"
},
{
"name": "dnoegel/php-xdg-base-dir",
@@ -581,16 +654,16 @@
},
{
"name": "nikic/php-parser",
- "version": "v4.12.0",
+ "version": "v4.13.2",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "6608f01670c3cc5079e18c1dab1104e002579143"
+ "reference": "210577fe3cf7badcc5814d99455df46564f3c077"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143",
- "reference": "6608f01670c3cc5079e18c1dab1104e002579143",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077",
+ "reference": "210577fe3cf7badcc5814d99455df46564f3c077",
"shasum": ""
},
"require": {
@@ -631,9 +704,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0"
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2"
},
- "time": "2021-07-21T10:44:31+00:00"
+ "time": "2021-11-30T19:35:32+00:00"
},
{
"name": "openlss/lib-array2xml",
@@ -743,16 +816,16 @@
},
{
"name": "phpdocumentor/reflection-docblock",
- "version": "5.2.2",
+ "version": "5.3.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556"
+ "reference": "622548b623e81ca6d78b721c5e029f4ce664f170"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556",
- "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170",
+ "reference": "622548b623e81ca6d78b721c5e029f4ce664f170",
"shasum": ""
},
"require": {
@@ -763,7 +836,8 @@
"webmozart/assert": "^1.9.1"
},
"require-dev": {
- "mockery/mockery": "~1.3.2"
+ "mockery/mockery": "~1.3.2",
+ "psalm/phar": "^4.8"
},
"type": "library",
"extra": {
@@ -793,22 +867,22 @@
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
"support": {
"issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
- "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master"
+ "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0"
},
- "time": "2020-09-03T19:13:55+00:00"
+ "time": "2021-10-19T17:43:47+00:00"
},
{
"name": "phpdocumentor/type-resolver",
- "version": "1.4.0",
+ "version": "1.6.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0"
+ "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
- "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/93ebd0014cab80c4ea9f5e297ea48672f1b87706",
+ "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706",
"shasum": ""
},
"require": {
@@ -816,7 +890,8 @@
"phpdocumentor/reflection-common": "^2.0"
},
"require-dev": {
- "ext-tokenizer": "*"
+ "ext-tokenizer": "*",
+ "psalm/phar": "^4.8"
},
"type": "library",
"extra": {
@@ -842,9 +917,9 @@
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
"support": {
"issues": "https://github.com/phpDocumentor/TypeResolver/issues",
- "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0"
+ "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.0"
},
- "time": "2020-09-17T18:55:26+00:00"
+ "time": "2022-01-04T19:58:01+00:00"
},
{
"name": "psr/container",
@@ -1012,26 +1087,26 @@
},
{
"name": "symfony/console",
- "version": "v5.3.6",
+ "version": "v5.4.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2"
+ "reference": "a2c6b7ced2eb7799a35375fb9022519282b5405e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/51b71afd6d2dc8f5063199357b9880cea8d8bfe2",
- "reference": "51b71afd6d2dc8f5063199357b9880cea8d8bfe2",
+ "url": "https://api.github.com/repos/symfony/console/zipball/a2c6b7ced2eb7799a35375fb9022519282b5405e",
+ "reference": "a2c6b7ced2eb7799a35375fb9022519282b5405e",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "symfony/deprecation-contracts": "^2.1",
+ "symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-mbstring": "~1.0",
- "symfony/polyfill-php73": "^1.8",
+ "symfony/polyfill-php73": "^1.9",
"symfony/polyfill-php80": "^1.16",
- "symfony/service-contracts": "^1.1|^2",
- "symfony/string": "^5.1"
+ "symfony/service-contracts": "^1.1|^2|^3",
+ "symfony/string": "^5.1|^6.0"
},
"conflict": {
"psr/log": ">=3",
@@ -1046,12 +1121,12 @@
},
"require-dev": {
"psr/log": "^1|^2",
- "symfony/config": "^4.4|^5.0",
- "symfony/dependency-injection": "^4.4|^5.0",
- "symfony/event-dispatcher": "^4.4|^5.0",
- "symfony/lock": "^4.4|^5.0",
- "symfony/process": "^4.4|^5.0",
- "symfony/var-dumper": "^4.4|^5.0"
+ "symfony/config": "^4.4|^5.0|^6.0",
+ "symfony/dependency-injection": "^4.4|^5.0|^6.0",
+ "symfony/event-dispatcher": "^4.4|^5.0|^6.0",
+ "symfony/lock": "^4.4|^5.0|^6.0",
+ "symfony/process": "^4.4|^5.0|^6.0",
+ "symfony/var-dumper": "^4.4|^5.0|^6.0"
},
"suggest": {
"psr/log": "For using the console logger",
@@ -1091,7 +1166,7 @@
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v5.3.6"
+ "source": "https://github.com/symfony/console/tree/v5.4.2"
},
"funding": [
{
@@ -1107,20 +1182,20 @@
"type": "tidelift"
}
],
- "time": "2021-07-27T19:10:22+00:00"
+ "time": "2021-12-20T16:11:12+00:00"
},
{
"name": "symfony/deprecation-contracts",
- "version": "v2.4.0",
+ "version": "v2.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627"
+ "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627",
- "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8",
+ "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8",
"shasum": ""
},
"require": {
@@ -1129,7 +1204,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1158,7 +1233,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0"
},
"funding": [
{
@@ -1174,25 +1249,28 @@
"type": "tidelift"
}
],
- "time": "2021-03-23T23:28:01+00:00"
+ "time": "2021-07-12T14:48:14+00:00"
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.23.0",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
+ "reference": "30885182c981ab175d4d034db0f6f469898070ab"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
- "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab",
+ "reference": "30885182c981ab175d4d034db0f6f469898070ab",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
+ "provide": {
+ "ext-ctype": "*"
+ },
"suggest": {
"ext-ctype": "For best performance"
},
@@ -1237,7 +1315,7 @@
"portable"
],
"support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.24.0"
},
"funding": [
{
@@ -1253,20 +1331,20 @@
"type": "tidelift"
}
],
- "time": "2021-02-19T12:13:01+00:00"
+ "time": "2021-10-20T20:35:02+00:00"
},
{
"name": "symfony/polyfill-intl-grapheme",
- "version": "v1.23.1",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
- "reference": "16880ba9c5ebe3642d1995ab866db29270b36535"
+ "reference": "81b86b50cf841a64252b439e738e97f4a34e2783"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/16880ba9c5ebe3642d1995ab866db29270b36535",
- "reference": "16880ba9c5ebe3642d1995ab866db29270b36535",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/81b86b50cf841a64252b439e738e97f4a34e2783",
+ "reference": "81b86b50cf841a64252b439e738e97f4a34e2783",
"shasum": ""
},
"require": {
@@ -1318,7 +1396,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.1"
+ "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.24.0"
},
"funding": [
{
@@ -1334,11 +1412,11 @@
"type": "tidelift"
}
],
- "time": "2021-05-27T12:26:48+00:00"
+ "time": "2021-11-23T21:10:46+00:00"
},
{
"name": "symfony/polyfill-intl-normalizer",
- "version": "v1.23.0",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
@@ -1402,7 +1480,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.23.0"
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.24.0"
},
"funding": [
{
@@ -1422,21 +1500,24 @@
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.23.1",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6"
+ "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6",
- "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825",
+ "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
+ "provide": {
+ "ext-mbstring": "*"
+ },
"suggest": {
"ext-mbstring": "For best performance"
},
@@ -1482,7 +1563,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1"
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.24.0"
},
"funding": [
{
@@ -1498,20 +1579,20 @@
"type": "tidelift"
}
],
- "time": "2021-05-27T12:26:48+00:00"
+ "time": "2021-11-30T18:21:41+00:00"
},
{
"name": "symfony/polyfill-php73",
- "version": "v1.23.0",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php73.git",
- "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010"
+ "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010",
- "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010",
+ "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/cc5db0e22b3cb4111010e48785a97f670b350ca5",
+ "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5",
"shasum": ""
},
"require": {
@@ -1561,7 +1642,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0"
+ "source": "https://github.com/symfony/polyfill-php73/tree/v1.24.0"
},
"funding": [
{
@@ -1577,20 +1658,20 @@
"type": "tidelift"
}
],
- "time": "2021-02-19T12:13:01+00:00"
+ "time": "2021-06-05T21:20:04+00:00"
},
{
"name": "symfony/polyfill-php80",
- "version": "v1.23.1",
+ "version": "v1.24.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
+ "reference": "57b712b08eddb97c762a8caa32c84e037892d2e9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
- "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/57b712b08eddb97c762a8caa32c84e037892d2e9",
+ "reference": "57b712b08eddb97c762a8caa32c84e037892d2e9",
"shasum": ""
},
"require": {
@@ -1644,7 +1725,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1"
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.24.0"
},
"funding": [
{
@@ -1660,25 +1741,29 @@
"type": "tidelift"
}
],
- "time": "2021-07-28T13:41:28+00:00"
+ "time": "2021-09-13T13:58:33+00:00"
},
{
"name": "symfony/service-contracts",
- "version": "v2.4.0",
+ "version": "v2.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
- "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb"
+ "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb",
- "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc",
+ "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
- "psr/container": "^1.1"
+ "psr/container": "^1.1",
+ "symfony/deprecation-contracts": "^2.1"
+ },
+ "conflict": {
+ "ext-psr": "<1.1|>=2"
},
"suggest": {
"symfony/service-implementation": ""
@@ -1686,7 +1771,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "2.4-dev"
+ "dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1723,7 +1808,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/service-contracts/tree/v2.4.0"
+ "source": "https://github.com/symfony/service-contracts/tree/v2.5.0"
},
"funding": [
{
@@ -1739,20 +1824,20 @@
"type": "tidelift"
}
],
- "time": "2021-04-01T10:43:52+00:00"
+ "time": "2021-11-04T16:48:04+00:00"
},
{
"name": "symfony/string",
- "version": "v5.3.3",
+ "version": "v5.4.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1"
+ "reference": "e6a5d5ecf6589c5247d18e0e74e30b11dfd51a3d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1",
- "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1",
+ "url": "https://api.github.com/repos/symfony/string/zipball/e6a5d5ecf6589c5247d18e0e74e30b11dfd51a3d",
+ "reference": "e6a5d5ecf6589c5247d18e0e74e30b11dfd51a3d",
"shasum": ""
},
"require": {
@@ -1763,11 +1848,14 @@
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php80": "~1.15"
},
+ "conflict": {
+ "symfony/translation-contracts": ">=3.0"
+ },
"require-dev": {
- "symfony/error-handler": "^4.4|^5.0",
- "symfony/http-client": "^4.4|^5.0",
+ "symfony/error-handler": "^4.4|^5.0|^6.0",
+ "symfony/http-client": "^4.4|^5.0|^6.0",
"symfony/translation-contracts": "^1.1|^2",
- "symfony/var-exporter": "^4.4|^5.0"
+ "symfony/var-exporter": "^4.4|^5.0|^6.0"
},
"type": "library",
"autoload": {
@@ -1806,7 +1894,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v5.3.3"
+ "source": "https://github.com/symfony/string/tree/v5.4.2"
},
"funding": [
{
@@ -1822,20 +1910,20 @@
"type": "tidelift"
}
],
- "time": "2021-06-27T11:44:38+00:00"
+ "time": "2021-12-16T21:52:00+00:00"
},
{
"name": "vimeo/psalm",
- "version": "4.8.1",
+ "version": "4.18.1",
"source": {
"type": "git",
"url": "https://github.com/vimeo/psalm.git",
- "reference": "f73f2299dbc59a3e6c4d66cff4605176e728ee69"
+ "reference": "dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/vimeo/psalm/zipball/f73f2299dbc59a3e6c4d66cff4605176e728ee69",
- "reference": "f73f2299dbc59a3e6c4d66cff4605176e728ee69",
+ "url": "https://api.github.com/repos/vimeo/psalm/zipball/dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb",
+ "reference": "dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb",
"shasum": ""
},
"require": {
@@ -1843,8 +1931,9 @@
"amphp/byte-stream": "^1.5",
"composer/package-versions-deprecated": "^1.8.0",
"composer/semver": "^1.4 || ^2.0 || ^3.0",
- "composer/xdebug-handler": "^1.1 || ^2.0",
+ "composer/xdebug-handler": "^1.1 || ^2.0 || ^3.0",
"dnoegel/php-xdg-base-dir": "^0.1.1",
+ "ext-ctype": "*",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
@@ -1854,11 +1943,11 @@
"felixfbecker/advanced-json-rpc": "^3.0.3",
"felixfbecker/language-server-protocol": "^1.5",
"netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0",
- "nikic/php-parser": "^4.10.5",
+ "nikic/php-parser": "^4.13",
"openlss/lib-array2xml": "^1.0",
"php": "^7.1|^8",
"sebastian/diff": "^3.0 || ^4.0",
- "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0",
+ "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0",
"webmozart/path-util": "^2.3"
},
"provide": {
@@ -1876,12 +1965,12 @@
"psalm/plugin-phpunit": "^0.16",
"slevomat/coding-standard": "^7.0",
"squizlabs/php_codesniffer": "^3.5",
- "symfony/process": "^4.3 || ^5.0",
- "weirdan/phpunit-appveyor-reporter": "^1.0.0",
+ "symfony/process": "^4.3 || ^5.0 || ^6.0",
"weirdan/prophecy-shim": "^1.0 || ^2.0"
},
"suggest": {
- "ext-igbinary": "^2.0.5"
+ "ext-curl": "In order to send data to shepherd",
+ "ext-igbinary": "^2.0.5 is required, used to serialize caching data"
},
"bin": [
"psalm",
@@ -1925,9 +2014,9 @@
],
"support": {
"issues": "https://github.com/vimeo/psalm/issues",
- "source": "https://github.com/vimeo/psalm/tree/4.8.1"
+ "source": "https://github.com/vimeo/psalm/tree/4.18.1"
},
- "time": "2021-06-20T23:03:20+00:00"
+ "time": "2022-01-08T21:21:26+00:00"
},
{
"name": "webmozart/assert",
@@ -2035,6 +2124,7 @@
"issues": "https://github.com/webmozart/path-util/issues",
"source": "https://github.com/webmozart/path-util/tree/2.3.0"
},
+ "abandoned": "symfony/filesystem",
"time": "2015-12-17T08:42:14+00:00"
}
],
@@ -2049,5 +2139,5 @@
"platform-overrides": {
"php": "7.3"
},
- "plugin-api-version": "2.1.0"
+ "plugin-api-version": "2.2.0"
}