mirror of https://github.com/nextcloud/server
Merge pull request #30508 from nextcloud/fix/psaml-bin
Fix psalm not running
This commit is contained in:
commit
89d109a4d9
|
@ -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')
|
|
@ -237,7 +237,7 @@ class Crypt {
|
|||
$encryptedContent = openssl_encrypt($plainContent,
|
||||
$cipher,
|
||||
$passPhrase,
|
||||
false,
|
||||
0,
|
||||
$iv);
|
||||
|
||||
if (!$encryptedContent) {
|
||||
|
@ -617,7 +617,7 @@ class Crypt {
|
|||
$plainContent = openssl_decrypt($encryptedContent,
|
||||
$cipher,
|
||||
$passPhrase,
|
||||
false,
|
||||
0,
|
||||
$iv);
|
||||
|
||||
if ($plainContent) {
|
||||
|
|
|
@ -159,7 +159,7 @@ class KeyManager {
|
|||
$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;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,8 +62,8 @@ class SetMasterKeyStatus implements IRepairStep {
|
|||
|
||||
// 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');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ class Recovery {
|
|||
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;
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace OCA\Files_External\Lib\Storage;
|
|||
* 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) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1753,7 +1753,7 @@ class Access extends LDAPUtility {
|
|||
}
|
||||
|
||||
$attribute = $this->connection->getFromCache($uuidAttr);
|
||||
if (!$attribute === null) {
|
||||
if ($attribute !== null) {
|
||||
$this->connection->$uuidAttr = $attribute;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -625,7 +625,7 @@ trait WebDav {
|
|||
$body .= $content3."\r\n";
|
||||
$body .= '--'.$boundary."--\r\n";
|
||||
|
||||
$stream = fopen('php://temp','r+');
|
||||
$stream = fopen('php://temp', 'r+');
|
||||
fwrite($stream, $body);
|
||||
rewind($stream);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69">
|
||||
<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb">
|
||||
<file src="lib/private/legacy/OC_Image.php">
|
||||
<ImplementedReturnTypeMismatch occurrences="1">
|
||||
<code>null|string</code>
|
||||
|
@ -220,7 +220,9 @@
|
|||
<InvalidReturnType occurrences="1">
|
||||
<code>float</code>
|
||||
</InvalidReturnType>
|
||||
<UndefinedClass occurrences="12">
|
||||
<UndefinedClass occurrences="14">
|
||||
<code>\OC</code>
|
||||
<code>\OC</code>
|
||||
<code>\OC</code>
|
||||
<code>\OC</code>
|
||||
<code>\OC</code>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69">
|
||||
<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb">
|
||||
<file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
|
||||
<MoreSpecificImplementedParamType occurrences="1">
|
||||
<code>$calendarData</code>
|
||||
|
@ -36,6 +36,11 @@
|
|||
<code>array</code>
|
||||
</LessSpecificImplementedReturnType>
|
||||
</file>
|
||||
<file src="apps/admin_audit/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/cloud_federation_api/lib/Controller/RequestHandlerController.php">
|
||||
<InvalidScalarArgument occurrences="1">
|
||||
<code>$e->getCode()</code>
|
||||
|
@ -44,6 +49,12 @@
|
|||
<code>!is_array($notification)</code>
|
||||
</TypeDoesNotContainType>
|
||||
</file>
|
||||
<file src="apps/comments/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="2">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/comments/lib/Search/Result.php">
|
||||
<InvalidScalarArgument occurrences="1">
|
||||
<code>(int) $comment->getId()</code>
|
||||
|
@ -54,6 +65,11 @@
|
|||
<code>\Sabre\Uri\split($this->principalUri)</code>
|
||||
</UndefinedFunction>
|
||||
</file>
|
||||
<file src="apps/contactsinteraction/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/dav/appinfo/v1/caldav.php">
|
||||
<TooManyArguments occurrences="1">
|
||||
<code>new \Sabre\DAV\Auth\Plugin($authBackend, 'ownCloud')</code>
|
||||
|
@ -112,6 +128,36 @@
|
|||
</MissingFile>
|
||||
</file>
|
||||
<file src="apps/dav/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="28">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
<UndefinedInterfaceMethod occurrences="1">
|
||||
<code>getAppDataDir</code>
|
||||
</UndefinedInterfaceMethod>
|
||||
|
@ -314,6 +360,11 @@
|
|||
<code>@var VEvent $vevent</code>
|
||||
</PossiblyInvalidDocblockTag>
|
||||
</file>
|
||||
<file src="apps/dav/lib/CalDAV/Reminder/NotificationProviderManager.php">
|
||||
<UndefinedConstant occurrences="1">
|
||||
<code>$provider::NOTIFICATION_TYPE</code>
|
||||
</UndefinedConstant>
|
||||
</file>
|
||||
<file src="apps/dav/lib/CalDAV/Reminder/Notifier.php">
|
||||
<FalsableReturnStatement occurrences="4">
|
||||
<code>$this->l10n->l('date', $dt, ['width' => 'medium'])</code>
|
||||
|
@ -1005,6 +1056,9 @@
|
|||
<InvalidReturnType occurrences="1">
|
||||
<code>array</code>
|
||||
</InvalidReturnType>
|
||||
<RedundantFunctionCall occurrences="1">
|
||||
<code>array_values</code>
|
||||
</RedundantFunctionCall>
|
||||
</file>
|
||||
<file src="apps/dav/lib/Upload/UploadHome.php">
|
||||
<UndefinedFunction occurrences="1">
|
||||
|
@ -1022,7 +1076,8 @@
|
|||
</InvalidOperand>
|
||||
</file>
|
||||
<file src="apps/encryption/lib/Crypto/Crypt.php">
|
||||
<RedundantCondition occurrences="1">
|
||||
<RedundantCondition occurrences="2">
|
||||
<code>$userSession</code>
|
||||
<code>$userSession</code>
|
||||
</RedundantCondition>
|
||||
<TypeDoesNotContainType occurrences="2">
|
||||
|
@ -1058,9 +1113,6 @@
|
|||
<InvalidThrow occurrences="1">
|
||||
<code>throw $exception;</code>
|
||||
</InvalidThrow>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>$userSession</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="apps/encryption/lib/Recovery.php">
|
||||
<InvalidScalarArgument occurrences="3">
|
||||
|
@ -1068,9 +1120,6 @@
|
|||
<code>0</code>
|
||||
<code>1</code>
|
||||
</InvalidScalarArgument>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>$userSession</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="apps/encryption/lib/Session.php">
|
||||
<TooManyArguments occurrences="1">
|
||||
|
@ -1078,10 +1127,16 @@
|
|||
</TooManyArguments>
|
||||
</file>
|
||||
<file src="apps/encryption/lib/Util.php">
|
||||
<RedundantCondition occurrences="1">
|
||||
<RedundantCondition occurrences="2">
|
||||
<code>$userSession</code>
|
||||
<code>$userSession</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="apps/federatedfilesharing/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/federatedfilesharing/lib/Controller/RequestHandlerController.php">
|
||||
<InvalidScalarArgument occurrences="7">
|
||||
<code>$id</code>
|
||||
|
@ -1136,6 +1191,11 @@
|
|||
<code>null</code>
|
||||
</NullableReturnStatement>
|
||||
</file>
|
||||
<file src="apps/federation/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/federation/lib/TrustedServers.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>'OCP\Federation\TrustedServerEvent::remove'</code>
|
||||
|
@ -1152,11 +1212,6 @@
|
|||
<code>$files_list</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/files/ajax/list.php">
|
||||
<TypeDoesNotContainType occurrences="1">
|
||||
<code>!$dirInfo->getType() === 'dir'</code>
|
||||
</TypeDoesNotContainType>
|
||||
</file>
|
||||
<file src="apps/files/appinfo/routes.php">
|
||||
<InvalidScope occurrences="2">
|
||||
<code>$this</code>
|
||||
|
@ -1185,6 +1240,12 @@
|
|||
<code>10 * 1024 * 1024</code>
|
||||
</InvalidScalarArgument>
|
||||
</file>
|
||||
<file src="apps/files/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="2">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/files/lib/Command/Scan.php">
|
||||
<NullArgument occurrences="1">
|
||||
<code>null</code>
|
||||
|
@ -1274,6 +1335,12 @@
|
|||
<code>$this</code>
|
||||
</InvalidScope>
|
||||
</file>
|
||||
<file src="apps/files_external/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="2">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/files_external/lib/Command/Delete.php">
|
||||
<NullArgument occurrences="1">
|
||||
<code>null</code>
|
||||
|
@ -1323,6 +1390,12 @@
|
|||
<code>getUniqueStorages</code>
|
||||
</UndefinedMethod>
|
||||
</file>
|
||||
<file src="apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php">
|
||||
<InvalidArgument occurrences="2">
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/files_external/lib/Lib/Backend/Backend.php">
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>self</code>
|
||||
|
@ -1511,6 +1584,16 @@
|
|||
<code>$_</code>
|
||||
</UndefinedVariable>
|
||||
</file>
|
||||
<file src="apps/files_sharing/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="6">
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/files_sharing/lib/Cache.php">
|
||||
<FalsableReturnStatement occurrences="1">
|
||||
<code>false</code>
|
||||
|
@ -1530,11 +1613,17 @@
|
|||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
|
||||
<InvalidOperand occurrences="1">
|
||||
<code>$permissions</code>
|
||||
</InvalidOperand>
|
||||
<InvalidScalarArgument occurrences="3">
|
||||
<code>$code</code>
|
||||
<code>$code</code>
|
||||
<code>Constants::PERMISSION_ALL</code>
|
||||
</InvalidScalarArgument>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>$permissions & Constants::PERMISSION_READ</code>
|
||||
</RedundantCondition>
|
||||
<UndefinedClass occurrences="2">
|
||||
<code>\OCA\Circles\Api\v1\Circles</code>
|
||||
<code>\OCA\Circles\Api\v1\Circles</code>
|
||||
|
@ -1580,9 +1669,6 @@
|
|||
</InvalidDocblock>
|
||||
</file>
|
||||
<file src="apps/files_sharing/lib/External/Scanner.php">
|
||||
<InvalidScalarArgument occurrences="1">
|
||||
<code>$recursive</code>
|
||||
</InvalidScalarArgument>
|
||||
<MoreSpecificImplementedParamType occurrences="1">
|
||||
<code>$cacheData</code>
|
||||
</MoreSpecificImplementedParamType>
|
||||
|
@ -1605,6 +1691,11 @@
|
|||
<code>$exception->getMessage()</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/files_sharing/lib/MountProvider.php">
|
||||
<RedundantFunctionCall occurrences="1">
|
||||
<code>array_values</code>
|
||||
</RedundantFunctionCall>
|
||||
</file>
|
||||
<file src="apps/files_sharing/lib/ShareBackend/File.php">
|
||||
<InvalidScalarArgument occurrences="2">
|
||||
<code>$itemSource</code>
|
||||
|
@ -1717,12 +1808,13 @@
|
|||
</TooManyArguments>
|
||||
</file>
|
||||
<file src="apps/files_trashbin/lib/Trash/LegacyTrashBackend.php">
|
||||
<ParadoxicalCondition occurrences="1">
|
||||
<code>null</code>
|
||||
</ParadoxicalCondition>
|
||||
<RedundantCondition occurrences="1">
|
||||
<RedundantCondition occurrences="2">
|
||||
<code>$trashFiles</code>
|
||||
<code>$trashFiles</code>
|
||||
</RedundantCondition>
|
||||
<TypeDoesNotContainType occurrences="1">
|
||||
<code>null</code>
|
||||
</TypeDoesNotContainType>
|
||||
<UndefinedInterfaceMethod occurrences="2">
|
||||
<code>$file</code>
|
||||
<code>getById</code>
|
||||
|
@ -1746,6 +1838,12 @@
|
|||
<code>$this</code>
|
||||
</InvalidScope>
|
||||
</file>
|
||||
<file src="apps/files_versions/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="2">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/files_versions/lib/Sabre/RestoreFolder.php">
|
||||
<InvalidNullableReturnType occurrences="1">
|
||||
<code>getChild</code>
|
||||
|
@ -1789,6 +1887,11 @@
|
|||
<file src="apps/oauth2/lib/Db/ClientMapper.php">
|
||||
<InvalidCatch occurrences="2"/>
|
||||
</file>
|
||||
<file src="apps/provisioning_api/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/provisioning_api/lib/Controller/UsersController.php">
|
||||
<InvalidScalarArgument occurrences="1">
|
||||
<code>$quota</code>
|
||||
|
@ -1799,6 +1902,11 @@
|
|||
</TypeDoesNotContainNull>
|
||||
</file>
|
||||
<file src="apps/settings/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="3">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
<InvalidScalarArgument occurrences="1">
|
||||
<code>\OC_User::getUser()</code>
|
||||
</InvalidScalarArgument>
|
||||
|
@ -1840,6 +1948,11 @@
|
|||
<code>isReady</code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="apps/settings/lib/Settings/Admin/Server.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>false</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/settings/lib/Settings/Admin/Sharing.php">
|
||||
<InvalidScalarArgument occurrences="1">
|
||||
<code>Constants::PERMISSION_ALL</code>
|
||||
|
@ -1876,6 +1989,11 @@
|
|||
<code>$type</code>
|
||||
</InvalidScalarArgument>
|
||||
</file>
|
||||
<file src="apps/theming/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/theming/lib/Controller/IconController.php">
|
||||
<InvalidReturnStatement occurrences="1">
|
||||
<code>$response</code>
|
||||
|
@ -1916,6 +2034,14 @@
|
|||
<code>$folder !== null</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="apps/twofactor_backupcodes/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="4">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/twofactor_backupcodes/lib/BackgroundJob/RememberBackupCodesJob.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>bool</code>
|
||||
|
@ -1933,6 +2059,9 @@
|
|||
</InvalidScalarArgument>
|
||||
</file>
|
||||
<file src="apps/updatenotification/lib/Notification/BackgroundJob.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>false</code>
|
||||
</InvalidArgument>
|
||||
<InvalidPropertyAssignmentValue occurrences="1">
|
||||
<code>$this->users</code>
|
||||
</InvalidPropertyAssignmentValue>
|
||||
|
@ -1977,9 +2106,6 @@
|
|||
<InvalidArgument occurrences="1">
|
||||
<code>$record</code>
|
||||
</InvalidArgument>
|
||||
<InvalidArrayOffset occurrences="1">
|
||||
<code>[$attr => $result['values']]</code>
|
||||
</InvalidArrayOffset>
|
||||
<InvalidReturnStatement occurrences="2">
|
||||
<code>$uuid</code>
|
||||
<code>$values</code>
|
||||
|
@ -2000,8 +2126,7 @@
|
|||
<code>$limit === 0</code>
|
||||
<code>is_array($result)</code>
|
||||
</RedundantCondition>
|
||||
<TypeDoesNotContainNull occurrences="2">
|
||||
<code>!$attribute === null</code>
|
||||
<TypeDoesNotContainNull occurrences="1">
|
||||
<code>is_null($findings)</code>
|
||||
</TypeDoesNotContainNull>
|
||||
<TypeDoesNotContainType occurrences="2">
|
||||
|
@ -2137,7 +2262,6 @@
|
|||
</InvalidPropertyAssignmentValue>
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>null</code>
|
||||
<code>null</code>
|
||||
</InvalidReturnType>
|
||||
<InvalidScalarArgument occurrences="3">
|
||||
<code>$this->getHomePath($ldapEntry[$attr][0])</code>
|
||||
|
@ -2196,10 +2320,20 @@
|
|||
</TypeDoesNotContainType>
|
||||
</file>
|
||||
<file src="apps/user_status/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="3">
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
<UndefinedInterfaceMethod occurrences="1">
|
||||
<code>registerProvider</code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="apps/workflowengine/lib/AppInfo/Application.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="apps/workflowengine/lib/Check/AbstractStringCheck.php">
|
||||
<NullArgument occurrences="1">
|
||||
<code>null</code>
|
||||
|
@ -2294,6 +2428,19 @@
|
|||
<code>isUserScopeEnabled</code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="core/Application.php">
|
||||
<InvalidArgument occurrences="9">
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php">
|
||||
<ParamNameMismatch occurrences="1">
|
||||
<code>$arguments</code>
|
||||
|
@ -2309,17 +2456,6 @@
|
|||
<code>$arguments</code>
|
||||
</ParamNameMismatch>
|
||||
</file>
|
||||
<file src="core/Command/App/GetPath.php">
|
||||
<ImplementedReturnTypeMismatch occurrences="1">
|
||||
<code>null|int</code>
|
||||
</ImplementedReturnTypeMismatch>
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>null|int</code>
|
||||
</InvalidReturnType>
|
||||
<MismatchingDocblockReturnType occurrences="1">
|
||||
<code>null|int</code>
|
||||
</MismatchingDocblockReturnType>
|
||||
</file>
|
||||
<file src="core/Command/App/Install.php">
|
||||
<TypeDoesNotContainType occurrences="1">
|
||||
<code>$result === false</code>
|
||||
|
@ -2330,17 +2466,6 @@
|
|||
<code>array</code>
|
||||
</LessSpecificImplementedReturnType>
|
||||
</file>
|
||||
<file src="core/Command/Config/App/GetConfig.php">
|
||||
<ImplementedReturnTypeMismatch occurrences="1">
|
||||
<code>null|int</code>
|
||||
</ImplementedReturnTypeMismatch>
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>null|int</code>
|
||||
</InvalidReturnType>
|
||||
<MismatchingDocblockReturnType occurrences="1">
|
||||
<code>null|int</code>
|
||||
</MismatchingDocblockReturnType>
|
||||
</file>
|
||||
<file src="core/Command/Config/Import.php">
|
||||
<InvalidScalarArgument occurrences="2">
|
||||
<code>0</code>
|
||||
|
@ -2355,17 +2480,6 @@
|
|||
<code>getFilteredValues</code>
|
||||
</TooManyArguments>
|
||||
</file>
|
||||
<file src="core/Command/Config/System/GetConfig.php">
|
||||
<ImplementedReturnTypeMismatch occurrences="1">
|
||||
<code>null|int</code>
|
||||
</ImplementedReturnTypeMismatch>
|
||||
<InvalidReturnType occurrences="1">
|
||||
<code>null|int</code>
|
||||
</InvalidReturnType>
|
||||
<MismatchingDocblockReturnType occurrences="1">
|
||||
<code>null|int</code>
|
||||
</MismatchingDocblockReturnType>
|
||||
</file>
|
||||
<file src="core/Command/Db/AddMissingColumns.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>IDBConnection::ADD_MISSING_COLUMNS_EVENT</code>
|
||||
|
@ -2521,13 +2635,19 @@
|
|||
<code>$this</code>
|
||||
</InvalidScope>
|
||||
</file>
|
||||
<file src="core/templates/layout.guest.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>false</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="core/templates/layout.public.php">
|
||||
<UndefinedInterfaceMethod occurrences="1">
|
||||
<code>getIcon</code>
|
||||
</UndefinedInterfaceMethod>
|
||||
</file>
|
||||
<file src="lib/autoloader.php">
|
||||
<RedundantCondition occurrences="1">
|
||||
<RedundantCondition occurrences="2">
|
||||
<code>$this->memoryCache</code>
|
||||
<code>$this->memoryCache</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
|
@ -2536,8 +2656,10 @@
|
|||
<code>getAppsNeedingUpgrade</code>
|
||||
<code>getIncompatibleApps</code>
|
||||
</InternalMethod>
|
||||
<InvalidArgument occurrences="1">
|
||||
<InvalidArgument occurrences="3">
|
||||
<code>$restrictions</code>
|
||||
<code>addServiceListener</code>
|
||||
<code>addServiceListener</code>
|
||||
</InvalidArgument>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>((array)$request->getParam('appid')) !== ''</code>
|
||||
|
@ -2943,14 +3065,6 @@
|
|||
<code>bool|mixed</code>
|
||||
</LessSpecificImplementedReturnType>
|
||||
</file>
|
||||
<file src="lib/private/Collaboration/Resources/Manager.php">
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>$user instanceof IUser</code>
|
||||
</RedundantCondition>
|
||||
<TypeDoesNotContainType occurrences="1">
|
||||
<code>''</code>
|
||||
</TypeDoesNotContainType>
|
||||
</file>
|
||||
<file src="lib/private/Command/CallableJob.php">
|
||||
<ParamNameMismatch occurrences="1">
|
||||
<code>$serializedCallable</code>
|
||||
|
@ -3369,7 +3483,8 @@
|
|||
<NullableReturnStatement occurrences="1">
|
||||
<code>null</code>
|
||||
</NullableReturnStatement>
|
||||
<RedundantCondition occurrences="1">
|
||||
<RedundantCondition occurrences="2">
|
||||
<code>$userObject</code>
|
||||
<code>$userObject</code>
|
||||
</RedundantCondition>
|
||||
<TooManyArguments occurrences="1">
|
||||
|
@ -3555,6 +3670,9 @@
|
|||
</MoreSpecificImplementedParamType>
|
||||
</file>
|
||||
<file src="lib/private/Files/ObjectStore/ObjectStoreStorage.php">
|
||||
<InvalidScalarArgument occurrences="1">
|
||||
<code>$source</code>
|
||||
</InvalidScalarArgument>
|
||||
<ParamNameMismatch occurrences="2">
|
||||
<code>$source</code>
|
||||
<code>$target</code>
|
||||
|
@ -3758,6 +3876,11 @@
|
|||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="lib/private/Files/Storage/Wrapper/Encoding.php">
|
||||
<InvalidScalarArgument occurrences="3">
|
||||
<code>\Normalizer::FORM_C</code>
|
||||
<code>\Normalizer::FORM_C</code>
|
||||
<code>\Normalizer::FORM_D</code>
|
||||
</InvalidScalarArgument>
|
||||
<UndefinedInterfaceMethod occurrences="13">
|
||||
<code>$this->namesCache</code>
|
||||
<code>$this->namesCache</code>
|
||||
|
@ -3848,6 +3971,11 @@
|
|||
<code>stream_flush</code>
|
||||
</InvalidReturnType>
|
||||
</file>
|
||||
<file src="lib/private/Files/Template/TemplateManager.php">
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>!$isDefaultTemplates</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="lib/private/Files/Type/Detection.php">
|
||||
<ParamNameMismatch occurrences="1">
|
||||
<code>$mimetype</code>
|
||||
|
@ -3897,9 +4025,11 @@
|
|||
<code>null</code>
|
||||
<code>null</code>
|
||||
</NullableReturnStatement>
|
||||
<RedundantCondition occurrences="3">
|
||||
<code>$data</code>
|
||||
<RedundantCondition occurrences="5">
|
||||
<code>$result</code>
|
||||
<code>$result && in_array('delete', $hooks) and $result</code>
|
||||
<code>Constants::PERMISSION_READ</code>
|
||||
<code>Constants::PERMISSION_READ</code>
|
||||
<code>is_resource($source)</code>
|
||||
</RedundantCondition>
|
||||
<UndefinedDocblockClass occurrences="2">
|
||||
|
@ -3938,7 +4068,10 @@
|
|||
<MoreSpecificImplementedParamType occurrences="1">
|
||||
<code>$user</code>
|
||||
</MoreSpecificImplementedParamType>
|
||||
<RedundantCondition occurrences="3">
|
||||
<RedundantCondition occurrences="6">
|
||||
<code>$this->emitter</code>
|
||||
<code>$this->emitter</code>
|
||||
<code>$this->emitter</code>
|
||||
<code>$this->emitter</code>
|
||||
<code>$this->emitter</code>
|
||||
<code>$this->emitter</code>
|
||||
|
@ -3981,6 +4114,10 @@
|
|||
<FalsableReturnStatement occurrences="1">
|
||||
<code>false</code>
|
||||
</FalsableReturnStatement>
|
||||
<InvalidArgument occurrences="2">
|
||||
<code>false</code>
|
||||
<code>false</code>
|
||||
</InvalidArgument>
|
||||
<InvalidArrayOffset occurrences="2">
|
||||
<code>$app['path']</code>
|
||||
<code>$app['path']</code>
|
||||
|
@ -3988,9 +4125,6 @@
|
|||
<NullArgument occurrences="1">
|
||||
<code>null</code>
|
||||
</NullArgument>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>$archive</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="lib/private/IntegrityCheck/Checker.php">
|
||||
<InvalidArrayAccess occurrences="3">
|
||||
|
@ -4062,7 +4196,8 @@
|
|||
</InvalidPropertyAssignmentValue>
|
||||
</file>
|
||||
<file src="lib/private/Log.php">
|
||||
<RedundantCondition occurrences="1">
|
||||
<RedundantCondition occurrences="2">
|
||||
<code>$request</code>
|
||||
<code>$request</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
|
@ -4136,10 +4271,6 @@
|
|||
</file>
|
||||
<file src="lib/private/Notification/Manager.php">
|
||||
<InvalidCatch occurrences="3"/>
|
||||
<TypeDoesNotContainType occurrences="2">
|
||||
<code>!($notification instanceof INotification)</code>
|
||||
<code>!($notification instanceof INotification)</code>
|
||||
</TypeDoesNotContainType>
|
||||
</file>
|
||||
<file src="lib/private/Preview/BackgroundCleanupJob.php">
|
||||
<InvalidReturnStatement occurrences="1">
|
||||
|
@ -4239,6 +4370,11 @@
|
|||
<code>dispatch</code>
|
||||
</TooManyArguments>
|
||||
</file>
|
||||
<file src="lib/private/Repair/Owncloud/CleanPreviews.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>false</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php">
|
||||
<ParamNameMismatch occurrences="1">
|
||||
<code>$arguments</code>
|
||||
|
@ -4248,6 +4384,9 @@
|
|||
<ParamNameMismatch occurrences="1">
|
||||
<code>$arguments</code>
|
||||
</ParamNameMismatch>
|
||||
<TypeDoesNotContainType occurrences="1">
|
||||
<code>$counter % 100 === 0</code>
|
||||
</TypeDoesNotContainType>
|
||||
</file>
|
||||
<file src="lib/private/Repair/RemoveLinkShares.php">
|
||||
<ImplicitToStringCast occurrences="2">
|
||||
|
@ -4587,6 +4726,9 @@
|
|||
</NullArgument>
|
||||
</file>
|
||||
<file src="lib/private/Template/JSResourceLocator.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>false</code>
|
||||
</InvalidArgument>
|
||||
<InvalidOperand occurrences="6">
|
||||
<code>$this->appendIfExist($this->serverroot, $script.'.js')</code>
|
||||
<code>$this->appendIfExist($this->serverroot, $theme_dir.$script.'.js')</code>
|
||||
|
@ -4654,6 +4796,9 @@
|
|||
<ImplementedReturnTypeMismatch occurrences="1">
|
||||
<code>array|int</code>
|
||||
</ImplementedReturnTypeMismatch>
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>$callback</code>
|
||||
</InvalidArgument>
|
||||
<InvalidNullableReturnType occurrences="1">
|
||||
<code>bool|IUser</code>
|
||||
</InvalidNullableReturnType>
|
||||
|
@ -4854,9 +4999,6 @@
|
|||
<code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($prevLogging)</code>
|
||||
<code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code>
|
||||
</InternalMethod>
|
||||
<InvalidLiteralArgument occurrences="1">
|
||||
<code>\OCP\Constants::FILENAME_INVALID_CHARS</code>
|
||||
</InvalidLiteralArgument>
|
||||
<InvalidReturnStatement occurrences="1">
|
||||
<code>OC_Helper::computerFileSize($userQuota)</code>
|
||||
</InvalidReturnStatement>
|
||||
|
@ -4867,8 +5009,7 @@
|
|||
<code>$user</code>
|
||||
<code>OC_User::getUser()</code>
|
||||
</InvalidScalarArgument>
|
||||
<RedundantCondition occurrences="2">
|
||||
<code>'off'</code>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>is_string($expected)</code>
|
||||
</RedundantCondition>
|
||||
<TypeDoesNotContainType occurrences="3">
|
||||
|
|
|
@ -0,0 +1,74 @@
|
|||
<?php
|
||||
|
||||
/** @generate-class-entries */
|
||||
|
||||
namespace FTP {
|
||||
|
||||
/**
|
||||
* @strict-properties
|
||||
* @not-serializable
|
||||
*/
|
||||
final class Connection
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
function ftp_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|resource|false {}
|
||||
|
||||
#ifdef HAVE_FTP_SSL
|
||||
function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|resource|false {}
|
||||
#endif
|
||||
|
||||
function ftp_login(FTP\Connection|resource $ftp, string $username, string $password): bool {}
|
||||
function ftp_pwd(FTP\Connection|resource $ftp): string|false {}
|
||||
function ftp_cdup(FTP\Connection|resource $ftp): bool {}
|
||||
function ftp_chdir(FTP\Connection|resource $ftp, string $directory): bool {}
|
||||
function ftp_exec(FTP\Connection|resource $ftp, string $command): bool {}
|
||||
function ftp_raw(FTP\Connection|resource $ftp, string $command): ?array {}
|
||||
function ftp_mkdir(FTP\Connection|resource $ftp, string $directory): string|false {}
|
||||
function ftp_rmdir(FTP\Connection|resource $ftp, string $directory): bool {}
|
||||
function ftp_chmod(FTP\Connection|resource $ftp, int $permissions, string $filename): int|false {}
|
||||
|
||||
/** @param string $response */
|
||||
function ftp_alloc(FTP\Connection|resource $ftp, int $size, &$response = null): bool {}
|
||||
function ftp_nlist(FTP\Connection|resource $ftp, string $directory): array|false {}
|
||||
function ftp_rawlist(FTP\Connection|resource $ftp, string $directory, bool $recursive = false): array|false {}
|
||||
function ftp_mlsd(FTP\Connection|resource $ftp, string $directory): array|false {}
|
||||
function ftp_systype(FTP\Connection|resource $ftp): string|false {}
|
||||
|
||||
/** @param resource $stream */
|
||||
function ftp_fget(FTP\Connection|resource $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): bool {}
|
||||
|
||||
/** @param resource $stream */
|
||||
function ftp_nb_fget(FTP\Connection|resource $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int {}
|
||||
function ftp_pasv(FTP\Connection|resource $ftp, bool $enable): bool {}
|
||||
function ftp_get(FTP\Connection|resource $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): bool {}
|
||||
function ftp_nb_get(FTP\Connection|resource $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int {}
|
||||
function ftp_nb_continue(FTP\Connection|resource $ftp): int {}
|
||||
|
||||
/** @param resource $stream */
|
||||
function ftp_fput(FTP\Connection|resource $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): bool {}
|
||||
|
||||
/** @param resource $stream */
|
||||
function ftp_nb_fput(FTP\Connection|resource $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): int {}
|
||||
function ftp_put(FTP\Connection|resource $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): bool {}
|
||||
function ftp_append(FTP\Connection|resource $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): bool {}
|
||||
function ftp_nb_put(FTP\Connection|resource $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): int|false {}
|
||||
function ftp_size(FTP\Connection|resource $ftp, string $filename): int {}
|
||||
function ftp_mdtm(FTP\Connection|resource $ftp, string $filename): int {}
|
||||
function ftp_rename(FTP\Connection|resource $ftp, string $from, string $to): bool {}
|
||||
function ftp_delete(FTP\Connection|resource $ftp, string $filename): bool {}
|
||||
function ftp_site(FTP\Connection|resource $ftp, string $command): bool {}
|
||||
function ftp_close(FTP\Connection|resource $ftp): bool {}
|
||||
|
||||
/** @alias ftp_close */
|
||||
function ftp_quit(FTP\Connection|resource $ftp): bool {}
|
||||
|
||||
/** @param int|bool $value */
|
||||
function ftp_set_option(FTP\Connection|resource $ftp, int $option, $value): bool {}
|
||||
function ftp_get_option(FTP\Connection|resource $ftp, int $option): int|bool {}
|
||||
|
||||
}
|
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @strict-properties
|
||||
* @not-serializable
|
||||
*/
|
||||
final class GdImage {}
|
||||
|
||||
/**
|
||||
* Retrieve information about the currently installed GD library
|
||||
* @link https://php.net/manual/en/function.gd-info.php
|
||||
|
|
1584
build/stubs/ldap.php
1584
build/stubs/ldap.php
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
// Licensed under Apache-2.0
|
||||
// Copied from https://github.com/JetBrains/phpstorm-stubs/blob/master/pcntl/pcntl.php
|
||||
|
||||
define('WNOHANG', 1);
|
||||
define('WUNTRACED', 2);
|
||||
define('WCONTINUED', 8);
|
||||
define('SIG_IGN', 1);
|
||||
define('SIG_DFL', 0);
|
||||
define('SIG_ERR', -1);
|
||||
define('SIGHUP', 1);
|
||||
define('SIGINT', 2);
|
||||
define('SIGQUIT', 3);
|
||||
define('SIGILL', 4);
|
||||
define('SIGTRAP', 5);
|
||||
define('SIGABRT', 6);
|
||||
define('SIGIOT', 6);
|
||||
define('SIGBUS', 7);
|
||||
define('SIGFPE', 8);
|
||||
define('SIGKILL', 9);
|
||||
define('SIGUSR1', 10);
|
||||
define('SIGSEGV', 11);
|
||||
define('SIGUSR2', 12);
|
||||
define('SIGPIPE', 13);
|
||||
define('SIGALRM', 14);
|
||||
define('SIGTERM', 15);
|
||||
define('SIGSTKFLT', 16);
|
||||
define('SIGCLD', 17);
|
||||
define('SIGCHLD', 17);
|
||||
define('SIGCONT', 18);
|
||||
define('SIGSTOP', 19);
|
||||
define('SIGTSTP', 20);
|
||||
define('SIGTTIN', 21);
|
||||
define('SIGTTOU', 22);
|
||||
define('SIGURG', 23);
|
||||
define('SIGXCPU', 24);
|
||||
define('SIGXFSZ', 25);
|
||||
define('SIGVTALRM', 26);
|
||||
define('SIGPROF', 27);
|
||||
define('SIGWINCH', 28);
|
||||
define('SIGPOLL', 29);
|
||||
define('SIGIO', 29);
|
||||
define('SIGPWR', 30);
|
||||
define('SIGSYS', 31);
|
||||
define('SIGBABY', 31);
|
||||
define('PRIO_PGRP', 1);
|
||||
define('PRIO_USER', 2);
|
||||
define('PRIO_PROCESS', 0);
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
"cs:fix": "php-cs-fixer fix",
|
||||
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
||||
"lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
|
||||
"psalm": "psalm",
|
||||
"psalm:update-baseline": "psalm --update-baseline --set-baseline=build/psalm-baseline.xml"
|
||||
"psalm": "psalm --threads=1",
|
||||
"psalm:update-baseline": "psalm --threads=1 --update-baseline --set-baseline=build/psalm-baseline.xml"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ class GetPath extends Base {
|
|||
*
|
||||
* @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');
|
||||
|
|
|
@ -69,7 +69,7 @@ class GetConfig extends Base {
|
|||
*
|
||||
* @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');
|
||||
|
|
|
@ -65,7 +65,7 @@ class GetConfig extends Base {
|
|||
*
|
||||
* @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');
|
||||
|
|
|
@ -79,7 +79,7 @@ class ExecuteCommand extends Command implements CompletionAwareInterface {
|
|||
$olderVersions = $ms->getMigratedVersions();
|
||||
$olderVersions[] = '0';
|
||||
$olderVersions[] = 'prev';
|
||||
if (in_array($version, $olderVersions, true)) {
|
||||
if (in_array($version, $olderVersions, true)) {
|
||||
$output->writeln('<error>Can not go back to previous migration without debug enabled</error>');
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ class {{classname}} extends SimpleMigrationStep {
|
|||
$appName = $input->getArgument('app');
|
||||
$version = $input->getArgument('version');
|
||||
|
||||
if (!preg_match('/^\d{1,16}$/',$version)) {
|
||||
if (!preg_match('/^\d{1,16}$/', $version)) {
|
||||
$output->writeln('<error>The given version is invalid. Only 0-9 are allowed (max. 16 digits)</error>');
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -247,8 +247,7 @@ class Upgrade extends Command {
|
|||
$output->write('<comment>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.</comment>'
|
||||
, true);
|
||||
. 'config.php and call this script again.</comment>', true);
|
||||
return self::ERROR_MAINTENANCE_MODE;
|
||||
} else {
|
||||
$output->writeln('<info>Nextcloud is already latest version</info>');
|
||||
|
|
|
@ -107,7 +107,7 @@ class Add extends Command {
|
|||
|
||||
$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("<error>Passwords did not match!</error>");
|
||||
|
|
|
@ -178,7 +178,7 @@ class Setting extends Base {
|
|||
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 @@ class Setting extends Base {
|
|||
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') {
|
||||
|
|
|
@ -44,7 +44,7 @@ class Version15000Date20180926101451 extends SimpleMigrationStep {
|
|||
$schema = $schemaClosure();
|
||||
|
||||
$table = $schema->getTable('authtoken');
|
||||
$table->addColumn('password_invalid','boolean', [
|
||||
$table->addColumn('password_invalid', 'boolean', [
|
||||
'default' => 0,
|
||||
'notnull' => false,
|
||||
]);
|
||||
|
|
|
@ -60,7 +60,7 @@ try {
|
|||
* 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()]);
|
||||
|
|
|
@ -149,7 +149,7 @@ class ClassLoader
|
|||
|
||||
/**
|
||||
* @return string[] Array of classname => path
|
||||
* @psalm-var array<string, string>
|
||||
* @psalm-return array<string, string>
|
||||
*/
|
||||
public function getClassMap()
|
||||
{
|
||||
|
|
|
@ -20,12 +20,25 @@ use Composer\Semver\VersionParser;
|
|||
*
|
||||
* 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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
|
||||
*/
|
||||
private static $installed;
|
||||
|
||||
/**
|
||||
* @var bool|null
|
||||
*/
|
||||
private static $canGetVendors;
|
||||
|
||||
/**
|
||||
* @var array[]
|
||||
* @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
||||
*/
|
||||
private static $installedByVendor = array();
|
||||
|
||||
/**
|
||||
|
@ -228,7 +241,7 @@ class InstalledVersions
|
|||
|
||||
/**
|
||||
* @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 @@ class InstalledVersions
|
|||
*
|
||||
* @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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}
|
||||
* @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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
|
||||
*/
|
||||
public static function getRawData()
|
||||
{
|
||||
|
@ -265,7 +278,7 @@ class InstalledVersions
|
|||
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
||||
*
|
||||
* @return array[]
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
||||
*/
|
||||
public static function getAllRawData()
|
||||
{
|
||||
|
@ -288,7 +301,7 @@ class InstalledVersions
|
|||
* @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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $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<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
|
||||
*/
|
||||
public static function reload($data)
|
||||
{
|
||||
|
@ -298,7 +311,7 @@ class InstalledVersions
|
|||
|
||||
/**
|
||||
* @return array[]
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
||||
*/
|
||||
private static function getInstalled()
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
|
|
|
@ -633,7 +633,7 @@ class AccountManager implements IAccountManager {
|
|||
}
|
||||
|
||||
// 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);
|
||||
|
|
|
@ -131,7 +131,7 @@ class Dispatcher {
|
|||
$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 @@ class Dispatcher {
|
|||
}
|
||||
|
||||
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,
|
||||
|
|
|
@ -303,7 +303,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
* @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];
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@ class RateLimitingMiddleware extends Middleware {
|
|||
*/
|
||||
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(
|
||||
|
|
|
@ -356,8 +356,8 @@ class JobList implements IJobList {
|
|||
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();
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ class Manager implements IManager {
|
|||
*/
|
||||
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')
|
||||
|
|
|
@ -136,7 +136,7 @@ class Adapter {
|
|||
/**
|
||||
* @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);
|
||||
|
|
|
@ -43,7 +43,7 @@ class AdapterPgSql extends Adapter {
|
|||
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);
|
||||
}
|
||||
|
|
|
@ -1182,7 +1182,7 @@ class View {
|
|||
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 @@ class View {
|
|||
}
|
||||
$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');
|
||||
|
|
|
@ -308,91 +308,80 @@ class Installer {
|
|||
$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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$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;
|
||||
} else {
|
||||
if (count($folders) > 1) {
|
||||
throw new \Exception(
|
||||
sprintf(
|
||||
'Could not extract app with ID %s to %s',
|
||||
$appId,
|
||||
$extractDir
|
||||
'Extracted app %s has more than 1 folder',
|
||||
$appId
|
||||
)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// Signature does not match
|
||||
throw new \Exception(
|
||||
sprintf(
|
||||
'App with id %s has invalid signature',
|
||||
$appId
|
||||
)
|
||||
);
|
||||
|
||||
// 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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// 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
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -244,7 +244,7 @@ class Mailer implements IMailer {
|
|||
}
|
||||
|
||||
[$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;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ class Memcached extends Cache implements IMemcache {
|
|||
//\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;
|
||||
|
|
|
@ -97,7 +97,7 @@ class BackgroundRepair extends TimedJob {
|
|||
try {
|
||||
$repair->addStep($step);
|
||||
} catch (\Exception $ex) {
|
||||
$this->logger->logException($ex,[
|
||||
$this->logger->logException($ex, [
|
||||
'app' => 'migration'
|
||||
]);
|
||||
|
||||
|
|
|
@ -381,12 +381,12 @@ class Manager implements IManager {
|
|||
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');
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class MarkDown extends TXT {
|
|||
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 @@ class MarkDown extends TXT {
|
|||
// 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));
|
||||
|
|
|
@ -62,7 +62,7 @@ class TXT extends ProviderV2 {
|
|||
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) === '') {
|
||||
|
|
|
@ -98,7 +98,7 @@ class TrustedDomainHelper implements ITrustedDomainHelper {
|
|||
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
|
||||
|
|
|
@ -125,7 +125,7 @@ class MySQL extends AbstractDatabase {
|
|||
$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',
|
||||
]);
|
||||
|
|
|
@ -847,7 +847,7 @@ class Share extends Constants {
|
|||
* @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) {
|
||||
|
|
|
@ -670,7 +670,7 @@ class DefaultShareProvider implements IShareProvider {
|
|||
);
|
||||
}
|
||||
|
||||
$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');
|
||||
|
|
|
@ -187,7 +187,7 @@ class URLGenerator implements IURLGenerator {
|
|||
$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);
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -59,7 +59,7 @@ class OC_DB_StatementWrapper {
|
|||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ interface IDBConnection {
|
|||
* @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
|
||||
|
|
|
@ -34,7 +34,7 @@ $url = $request->getServerProtocol() . '://' . substr($request->getServerHost()
|
|||
|
||||
$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');
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
<directory name="lib/composer/bin"/>
|
||||
</ignoreFiles>
|
||||
</projectFiles>
|
||||
<stubs>
|
||||
<file name="build/stubs/gd.php"/>
|
||||
<file name="build/stubs/ldap.php"/>
|
||||
</stubs>
|
||||
<extraFiles>
|
||||
<directory name="3rdparty"/>
|
||||
</extraFiles>
|
||||
|
|
|
@ -75,14 +75,14 @@
|
|||
<file name="build/stubs/sftp.php"/>
|
||||
<file name="build/stubs/ssh2.php"/>
|
||||
<file name="build/stubs/xsl.php"/>
|
||||
<file name="build/stubs/ftp.php"/>
|
||||
<file name="build/stubs/pcntl.php"/>
|
||||
</stubs>
|
||||
<issueHandlers>
|
||||
<UndefinedClass>
|
||||
<errorLevel type="suppress">
|
||||
<referencedClass name="OCA\GroupFolders\Mount\GroupFolderStorage"/>
|
||||
<referencedClass name="OCA\TwoFactorNextcloudNotification\Controller\APIController"/>
|
||||
<!-- Classes from PHP>=8 (needed to be able to use \GdImage::class) -->
|
||||
<referencedClass name="GdImage" />
|
||||
</errorLevel>
|
||||
</UndefinedClass>
|
||||
<UndefinedFunction>
|
||||
|
@ -126,11 +126,6 @@
|
|||
<!-- Helper classes for sharing API integration from other apps -->
|
||||
<referencedClass name="OCA\Deck\Sharing\ShareAPIHelper" />
|
||||
<referencedClass name="OCA\Talk\Share\Helper\DeletedShareAPIController" />
|
||||
<!-- Classes from PHP>=8 -->
|
||||
<referencedClass name="GdImage" />
|
||||
<referencedClass name="LDAP\Connection" />
|
||||
<referencedClass name="LDAP\Result" />
|
||||
<referencedClass name="LDAP\ResultEntry" />
|
||||
</errorLevel>
|
||||
</UndefinedDocblockClass>
|
||||
</issueHandlers>
|
||||
|
|
|
@ -109,11 +109,11 @@ class QBMapperTest extends \Test\TestCase {
|
|||
->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();
|
||||
|
||||
|
|
|
@ -1062,7 +1062,7 @@ class RequestTest extends \Test\TestCase {
|
|||
$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 @@ class RequestTest extends \Test\TestCase {
|
|||
$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 @@ class RequestTest extends \Test\TestCase {
|
|||
$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 @@ class RequestTest extends \Test\TestCase {
|
|||
$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 @@ class RequestTest extends \Test\TestCase {
|
|||
$this->stream
|
||||
);
|
||||
|
||||
$this->assertSame('my.overwritten.host', $request->getServerHost());
|
||||
$this->assertSame('my.overwritten.host', $request->getServerHost());
|
||||
}
|
||||
|
||||
public function testGetServerHostWithTrustedDomain() {
|
||||
|
@ -1190,7 +1190,7 @@ class RequestTest extends \Test\TestCase {
|
|||
$this->stream
|
||||
);
|
||||
|
||||
$this->assertSame('my.trusted.host', $request->getServerHost());
|
||||
$this->assertSame('my.trusted.host', $request->getServerHost());
|
||||
}
|
||||
|
||||
public function testGetServerHostWithUntrustedDomain() {
|
||||
|
@ -1219,7 +1219,7 @@ class RequestTest extends \Test\TestCase {
|
|||
$this->stream
|
||||
);
|
||||
|
||||
$this->assertSame('my.trusted.host', $request->getServerHost());
|
||||
$this->assertSame('my.trusted.host', $request->getServerHost());
|
||||
}
|
||||
|
||||
public function testGetServerHostWithNoTrustedDomain() {
|
||||
|
@ -1245,7 +1245,7 @@ class RequestTest extends \Test\TestCase {
|
|||
$this->stream
|
||||
);
|
||||
|
||||
$this->assertSame('', $request->getServerHost());
|
||||
$this->assertSame('', $request->getServerHost());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -68,7 +68,7 @@ class CompressionMiddlewareTest extends \Test\TestCase {
|
|||
->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 @@ class CompressionMiddlewareTest extends \Test\TestCase {
|
|||
->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 @@ class CompressionMiddlewareTest extends \Test\TestCase {
|
|||
->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 @@ class CompressionMiddlewareTest extends \Test\TestCase {
|
|||
$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 @@ class CompressionMiddlewareTest extends \Test\TestCase {
|
|||
->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);
|
||||
|
|
|
@ -135,7 +135,7 @@ class BruteForceMiddlewareTest extends TestCase {
|
|||
|
||||
/** @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 @@ class BruteForceMiddlewareTest extends TestCase {
|
|||
|
||||
/** @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 @@ class BruteForceMiddlewareTest extends TestCase {
|
|||
$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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -446,7 +446,7 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
* @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 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
* @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 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
* @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 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
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 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
);
|
||||
|
||||
$expected = new RedirectResponse(\OC::$WEBROOT . '/');
|
||||
$this->assertEquals($expected , $response);
|
||||
$this->assertEquals($expected, $response);
|
||||
}
|
||||
|
||||
|
||||
|
@ -594,7 +594,7 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
);
|
||||
$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 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
*/
|
||||
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 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
*/
|
||||
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 @@ class SecurityMiddlewareTest extends \Test\TestCase {
|
|||
*/
|
||||
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')
|
||||
|
|
|
@ -258,8 +258,8 @@ class UserAvatarTest extends \Test\TestCase {
|
|||
}
|
||||
|
||||
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 @@ class UserAvatarTest extends \Test\TestCase {
|
|||
$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');
|
||||
|
|
|
@ -63,7 +63,7 @@ class FileCacheTest extends TestCache {
|
|||
$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');
|
||||
|
|
|
@ -122,8 +122,7 @@ class ExpressionBuilderDBTest extends TestCase {
|
|||
$query->createFunction(
|
||||
'(' . $query->expr()->castColumn('configvalue', IQueryBuilder::PARAM_INT)
|
||||
. ' + 1)'
|
||||
)
|
||||
, IQueryBuilder::PARAM_STR
|
||||
), IQueryBuilder::PARAM_STR
|
||||
)
|
||||
)
|
||||
->where($query->expr()->eq('appid', $query->createNamedParameter($appId)))
|
||||
|
|
|
@ -100,7 +100,7 @@ class DateTimeFormatterTest extends TestCase {
|
|||
['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)],
|
||||
|
|
|
@ -452,7 +452,7 @@ class StorageTest extends TestCase {
|
|||
/**
|
||||
* @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);
|
||||
|
|
|
@ -399,23 +399,17 @@ class CacheTest extends \Test\TestCase {
|
|||
$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() {
|
||||
|
|
|
@ -89,7 +89,7 @@ class ObjectStoreStorageTest extends Storage {
|
|||
*/
|
||||
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 @@ class ObjectStoreStorageTest extends Storage {
|
|||
$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');
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class L10nTest extends TestCase {
|
|||
|
||||
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));
|
||||
|
|
|
@ -113,7 +113,7 @@ class MessageTest extends TestCase {
|
|||
/**
|
||||
* @dataProvider getMailAddressProvider
|
||||
*/
|
||||
public function testGetTo($swiftresult,$return) {
|
||||
public function testGetTo($swiftresult, $return) {
|
||||
$this->swiftMessage
|
||||
->expects($this->once())
|
||||
->method('getTo')
|
||||
|
@ -133,7 +133,7 @@ class MessageTest extends TestCase {
|
|||
/**
|
||||
* @dataProvider getMailAddressProvider
|
||||
*/
|
||||
public function testGetCc($swiftresult,$return) {
|
||||
public function testGetCc($swiftresult, $return) {
|
||||
$this->swiftMessage
|
||||
->expects($this->once())
|
||||
->method('getCc')
|
||||
|
@ -153,7 +153,7 @@ class MessageTest extends TestCase {
|
|||
/**
|
||||
* @dataProvider getMailAddressProvider
|
||||
*/
|
||||
public function testGetBcc($swiftresult,$return) {
|
||||
public function testGetBcc($swiftresult, $return) {
|
||||
$this->swiftMessage
|
||||
->expects($this->once())
|
||||
->method('getBcc')
|
||||
|
|
|
@ -197,7 +197,7 @@ class HasherTest extends \Test\TestCase {
|
|||
}
|
||||
|
||||
|
||||
$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]);
|
||||
|
|
|
@ -951,7 +951,7 @@ class DefaultShareProviderTest extends \Test\TestCase {
|
|||
$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 @@ class DefaultShareProviderTest extends \Test\TestCase {
|
|||
$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 @@ class DefaultShareProviderTest extends \Test\TestCase {
|
|||
]);
|
||||
$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);
|
||||
}
|
||||
|
||||
|
|
|
@ -481,7 +481,7 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
}
|
||||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
}
|
||||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
]);
|
||||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
]);
|
||||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
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 @@ class ManagerTest extends \Test\TestCase {
|
|||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
}
|
||||
|
||||
$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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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 @@ class ManagerTest extends \Test\TestCase {
|
|||
->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);
|
||||
|
|
|
@ -117,7 +117,7 @@ class UserTest extends TestCase {
|
|||
});
|
||||
|
||||
$user = new User('foo', $backend, $this->dispatcher);
|
||||
$this->assertTrue($user->setPassword('bar',''));
|
||||
$this->assertTrue($user->setPassword('bar', ''));
|
||||
}
|
||||
|
||||
public function testSetPasswordNotSupported() {
|
||||
|
@ -133,7 +133,7 @@ class UserTest extends TestCase {
|
|||
->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 @@ class UserTest extends TestCase {
|
|||
|
||||
$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 @@ class UserTest extends TestCase {
|
|||
|
||||
$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 @@ class UserTest extends TestCase {
|
|||
|
||||
$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 @@ class UserTest extends TestCase {
|
|||
|
||||
$user = new User('foo', $backend, $this->dispatcher, $emitter);
|
||||
|
||||
$user->setPassword('bar','');
|
||||
$user->setPassword('bar', '');
|
||||
$this->assertEquals(2, $hooksCalled);
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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/semver",
|
||||
"version": "3.2.5",
|
||||
"name": "composer/pcre",
|
||||
"version": "1.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/composer/semver.git",
|
||||
"reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9"
|
||||
"url": "https://github.com/composer/pcre.git",
|
||||
"reference": "3d322d715c43a1ac36c7fe215fa59336265500f2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/composer/semver/zipball/31f3ea725711245195f62e54ffa402d8ef2fdba9",
|
||||
"reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9",
|
||||
"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.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/composer/semver.git",
|
||||
"reference": "deac27056b57e46faf136fae7b449eeaa71661ee"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue