summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndrey Borysenko <andrey18106x@gmail.com>2023-08-10 17:21:35 +0300
committerGitHub <noreply@github.com>2023-08-10 17:21:35 +0300
commitf7b2dc8cccb6671f2119e92c00eb182608062136 (patch)
tree7785b26d0b26c84938722c63de794eb59d0103d5 /build
parentd3583d3f309dc68c984d22ff4edd8e436776b475 (diff)
parent5408dbfd62f3d43f5bf474b67825f1e904aeb25d (diff)
downloadnextcloud-server-f7b2dc8cccb6671f2119e92c00eb182608062136.tar.gz
nextcloud-server-f7b2dc8cccb6671f2119e92c00eb182608062136.zip
Merge branch 'master' into appecosystem-auth
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/provisioning-v1.feature1
-rw-r--r--build/psalm-baseline.xml330
2 files changed, 44 insertions, 287 deletions
diff --git a/build/integration/features/provisioning-v1.feature b/build/integration/features/provisioning-v1.feature
index 5ba6b7f63dd..0d1d5b1a345 100644
--- a/build/integration/features/provisioning-v1.feature
+++ b/build/integration/features/provisioning-v1.feature
@@ -588,6 +588,7 @@ Feature: provisioning
| federatedfilesharing |
| federation |
| files |
+ | files_reminders |
| files_sharing |
| files_trashbin |
| files_versions |
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index eddbeed05d5..3d56f710237 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -43,11 +43,6 @@
<code>IEventListener</code>
</MissingTemplateParam>
</file>
- <file src="apps/cloud_federation_api/lib/Controller/RequestHandlerController.php">
- <TypeDoesNotContainType>
- <code>!is_array($notification)</code>
- </TypeDoesNotContainType>
- </file>
<file src="apps/comments/lib/Listener/CommentsEntityEventListener.php">
<MissingTemplateParam>
<code>IEventListener</code>
@@ -96,12 +91,6 @@
</UndefinedGlobalVariable>
</file>
<file src="apps/dav/appinfo/v1/webdav.php">
- <InvalidArgument>
- <code><![CDATA['OCA\DAV\Connector\Sabre::addPlugin']]></code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
<UndefinedGlobalVariable>
<code>$baseuri</code>
</UndefinedGlobalVariable>
@@ -353,7 +342,7 @@
</RedundantCast>
<RedundantCondition>
<code><![CDATA[!empty($modified['old']) && is_array($modified['old'])]]></code>
- <code><![CDATA[is_array($modified['old'])]]></code>
+ <code>is_array($modified['old'])</code>
</RedundantCondition>
</file>
<file src="apps/dav/lib/CalDAV/Schedule/IMipService.php">
@@ -364,8 +353,8 @@
</file>
<file src="apps/dav/lib/CalDAV/Schedule/Plugin.php">
<InvalidArgument>
- <code><![CDATA[[$aclPlugin, 'propFind']]]></code>
- <code><![CDATA[[$aclPlugin, 'propFind']]]></code>
+ <code>[$aclPlugin, 'propFind']</code>
+ <code>[$aclPlugin, 'propFind']</code>
</InvalidArgument>
<LessSpecificReturnStatement>
<code><![CDATA[$vevent->DTEND]]></code>
@@ -400,12 +389,12 @@
</file>
<file src="apps/dav/lib/CalDAV/Search/Xml/Request/CalendarSearchReport.php">
<TypeDoesNotContainType>
- <code><![CDATA[!is_array($newProps['filters']['comps'])]]></code>
- <code><![CDATA[!is_array($newProps['filters']['params'])]]></code>
- <code><![CDATA[!is_array($newProps['filters']['props'])]]></code>
- <code><![CDATA[!isset($newProps['filters']['comps']) || !is_array($newProps['filters']['comps'])]]></code>
- <code><![CDATA[!isset($newProps['filters']['params']) || !is_array($newProps['filters']['params'])]]></code>
- <code><![CDATA[!isset($newProps['filters']['props']) || !is_array($newProps['filters']['props'])]]></code>
+ <code>!is_array($newProps['filters']['comps'])</code>
+ <code>!is_array($newProps['filters']['params'])</code>
+ <code>!is_array($newProps['filters']['props'])</code>
+ <code>!isset($newProps['filters']['comps']) || !is_array($newProps['filters']['comps'])</code>
+ <code>!isset($newProps['filters']['params']) || !is_array($newProps['filters']['params'])</code>
+ <code>!isset($newProps['filters']['props']) || !is_array($newProps['filters']['props'])</code>
</TypeDoesNotContainType>
</file>
<file src="apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php">
@@ -441,7 +430,7 @@
<code>VCard</code>
</MoreSpecificReturnType>
<TypeDoesNotContainType>
- <code><![CDATA[$addressBooks[$row['id']][$readOnlyPropertyName] === 0]]></code>
+ <code>$addressBooks[$row['id']][$readOnlyPropertyName] === 0</code>
</TypeDoesNotContainType>
</file>
<file src="apps/dav/lib/CardDAV/MultiGetExportPlugin.php">
@@ -495,14 +484,6 @@
<code>\Sabre\HTTP\toDate($value)</code>
</UndefinedFunction>
</file>
- <file src="apps/dav/lib/Comments/RootCollection.php">
- <InvalidArgument>
- <code>CommentsEntityEvent::EVENT_ENTITY</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php">
<InvalidNullableReturnType>
<code>bool</code>
@@ -566,7 +547,7 @@
<code>bool</code>
</InvalidNullableReturnType>
<TooManyArguments>
- <code><![CDATA[new PreconditionFailed('Cannot filter by non-existing tag', 0, $e)]]></code>
+ <code>new PreconditionFailed('Cannot filter by non-existing tag', 0, $e)</code>
</TooManyArguments>
<UndefinedClass>
<code>\OCA\Circles\Api\v1\Circles</code>
@@ -835,16 +816,6 @@
<code>hasTime</code>
</UndefinedMethod>
</file>
- <file src="apps/dav/lib/Server.php">
- <InvalidArgument>
- <code><![CDATA['OCA\DAV\Connector\Sabre::addPlugin']]></code>
- <code><![CDATA['OCA\DAV\Connector\Sabre::authInit']]></code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="apps/dav/lib/SystemTag/SystemTagsObjectMappingCollection.php">
<ParamNameMismatch>
<code>$tagId</code>
@@ -856,14 +827,6 @@
<code>$objectName</code>
</ParamNameMismatch>
</file>
- <file src="apps/dav/lib/SystemTag/SystemTagsRelationsCollection.php">
- <InvalidArgument>
- <code>SystemTagsEntityEvent::EVENT_ENTITY</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="apps/dav/lib/Traits/PrincipalProxyTrait.php">
<MoreSpecificImplementedParamType>
<code>$members</code>
@@ -919,7 +882,7 @@
<code>$userSession</code>
</RedundantCondition>
<TypeDoesNotContainType>
- <code><![CDATA[get_class($res) === 'OpenSSLAsymmetricKey']]></code>
+ <code>get_class($res) === 'OpenSSLAsymmetricKey'</code>
</TypeDoesNotContainType>
</file>
<file src="apps/encryption/lib/Crypto/Encryption.php">
@@ -939,7 +902,7 @@
</file>
<file src="apps/encryption/lib/Session.php">
<TooManyArguments>
- <code><![CDATA[new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0)]]></code>
+ <code>new Exceptions\PrivateKeyMissingException('please try to log-out and log-in again', 0)</code>
</TooManyArguments>
</file>
<file src="apps/encryption/lib/Util.php">
@@ -970,7 +933,7 @@
<code>$shareId</code>
<code>$shareId</code>
<code>$shareId</code>
- <code><![CDATA[(int)$data['id']]]></code>
+ <code>(int)$data['id']</code>
</InvalidArgument>
<LessSpecificReturnStatement>
<code>$nodes[0]</code>
@@ -1005,7 +968,7 @@
<code>string</code>
</InvalidReturnType>
<InvalidScalarArgument>
- <code><![CDATA[(int)$share['id']]]></code>
+ <code>(int)$share['id']</code>
</InvalidScalarArgument>
</file>
<file src="apps/federation/lib/DbHandler.php">
@@ -1063,12 +1026,6 @@
</TypeDoesNotContainType>
</file>
<file src="apps/files/lib/Command/ScanAppData.php">
- <LessSpecificReturnStatement>
- <code><![CDATA[$this->root->get('appdata_'.$instanceId)]]></code>
- </LessSpecificReturnStatement>
- <MoreSpecificReturnType>
- <code>\OCP\Files\Folder</code>
- </MoreSpecificReturnType>
<NullArgument>
<code>null</code>
<code>null</code>
@@ -1138,7 +1095,7 @@
</file>
<file src="apps/files/lib/Service/TagService.php">
<InvalidArgument>
- <code><![CDATA[self::class . '::' . $eventName]]></code>
+ <code>self::class . '::' . $eventName</code>
</InvalidArgument>
<TooManyArguments>
<code>dispatch</code>
@@ -1155,11 +1112,6 @@
<code>(int)$status</code>
</RedundantCast>
</file>
- <file src="apps/files_external/lib/Controller/UserGlobalStoragesController.php">
- <UndefinedMethod>
- <code>getUniqueStorages</code>
- </UndefinedMethod>
- </file>
<file src="apps/files_external/lib/Lib/Backend/Backend.php">
<LessSpecificReturnStatement>
<code><![CDATA[$this->storageClass]]></code>
@@ -1226,7 +1178,7 @@
</file>
<file src="apps/files_external/lib/Service/BackendService.php">
<InvalidArgument>
- <code><![CDATA['OCA\\Files_External::loadAdditionalBackends']]></code>
+ <code>'OCA\\Files_External::loadAdditionalBackends'</code>
</InvalidArgument>
<TooManyArguments>
<code>dispatch</code>
@@ -1349,7 +1301,7 @@
</file>
<file src="apps/files_sharing/templates/public.php">
<RedundantCondition>
- <code><![CDATA[$_['hideFileList'] !== true]]></code>
+ <code>$_['hideFileList'] !== true</code>
<code><![CDATA[isset($_['hideFileList']) && $_['hideFileList'] !== true]]></code>
</RedundantCondition>
</file>
@@ -1396,15 +1348,9 @@
</InvalidReturnType>
</file>
<file src="apps/files_trashbin/lib/Storage.php">
- <InvalidArgument>
- <code><![CDATA['OCA\Files_Trashbin::moveToTrash']]></code>
- </InvalidArgument>
<InvalidOperand>
<code><![CDATA[$this->mountPoint]]></code>
</InvalidOperand>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
</file>
<file src="apps/files_trashbin/lib/Trash/LegacyTrashBackend.php">
<RedundantCondition>
@@ -1507,18 +1453,6 @@
<code>ignoreNextcloudRequirementForApp</code>
</UndefinedInterfaceMethod>
</file>
- <file src="apps/settings/lib/Controller/CheckSetupController.php">
- <InvalidArgument>
- <code>IDBConnection::CHECK_MISSING_COLUMNS_EVENT</code>
- <code>IDBConnection::CHECK_MISSING_INDEXES_EVENT</code>
- <code>IDBConnection::CHECK_MISSING_PRIMARY_KEYS_EVENT</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="apps/settings/lib/Hooks.php">
<InvalidArrayOffset>
<code><![CDATA[[$user->getEMailAddress() => $user->getDisplayName()]]]></code>
@@ -1552,7 +1486,7 @@
<file src="apps/sharebymail/lib/ShareByMailProvider.php">
<InvalidArgument>
<code><![CDATA[$share->getId()]]></code>
- <code><![CDATA[(int)$data['id']]]></code>
+ <code>(int)$data['id']</code>
</InvalidArgument>
<LessSpecificReturnStatement>
<code>$nodes[0]</code>
@@ -1650,14 +1584,6 @@
<code><![CDATA[(int)$e->getCode()]]></code>
</RedundantCast>
</file>
- <file src="apps/user_ldap/lib/AppInfo/Application.php">
- <InvalidArgument>
- <code><![CDATA['OCA\\User_LDAP\\User\\User::postLDAPBackendAdded']]></code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="apps/user_ldap/lib/Connection.php">
<NoValue>
<code>$subj</code>
@@ -1823,9 +1749,6 @@
<file src="apps/workflowengine/lib/Manager.php">
<InvalidArgument>
<code>$missingCheck</code>
- <code>IManager::EVENT_NAME_REG_CHECK</code>
- <code>IManager::EVENT_NAME_REG_ENTITY</code>
- <code>IManager::EVENT_NAME_REG_OPERATION</code>
</InvalidArgument>
<InvalidOperand>
<code>$result</code>
@@ -1836,11 +1759,6 @@
<InvalidReturnType>
<code>bool</code>
</InvalidReturnType>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
</file>
<file src="apps/workflowengine/lib/Service/RuleMatcher.php">
<UndefinedInterfaceMethod>
@@ -1895,30 +1813,6 @@
<code>getFilteredValues</code>
</TooManyArguments>
</file>
- <file src="core/Command/Db/AddMissingColumns.php">
- <InvalidArgument>
- <code>IDBConnection::ADD_MISSING_COLUMNS_EVENT</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
- <file src="core/Command/Db/AddMissingIndices.php">
- <InvalidArgument>
- <code>IDBConnection::ADD_MISSING_INDEXES_EVENT</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
- <file src="core/Command/Db/AddMissingPrimaryKeys.php">
- <InvalidArgument>
- <code>IDBConnection::ADD_MISSING_PRIMARY_KEYS_EVENT</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="core/Command/Db/ConvertType.php">
<InvalidScalarArgument>
<code>0</code>
@@ -2034,7 +1928,7 @@
</file>
<file src="lib/private/Accounts/AccountManager.php">
<InvalidArgument>
- <code><![CDATA['OC\AccountManager::userUpdated']]></code>
+ <code>'OC\AccountManager::userUpdated'</code>
</InvalidArgument>
<TooManyArguments>
<code>dispatch</code>
@@ -2070,20 +1964,10 @@
</TypeDoesNotContainType>
</file>
<file src="lib/private/App/AppManager.php">
- <InvalidArgument>
- <code>ManagerEvent::EVENT_APP_DISABLE</code>
- <code>ManagerEvent::EVENT_APP_ENABLE</code>
- <code>ManagerEvent::EVENT_APP_ENABLE_FOR_GROUPS</code>
- </InvalidArgument>
<LessSpecificImplementedReturnType>
<code>array</code>
<code>array</code>
</LessSpecificImplementedReturnType>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
</file>
<file src="lib/private/App/AppStore/Fetcher/Fetcher.php">
<TooManyArguments>
@@ -2187,16 +2071,6 @@
<code>log</code>
</InvalidReturnType>
</file>
- <file src="lib/private/AppFramework/Middleware/AdditionalScriptsMiddleware.php">
- <InvalidArgument>
- <code>TemplateResponse::EVENT_LOAD_ADDITIONAL_SCRIPTS</code>
- <code>TemplateResponse::EVENT_LOAD_ADDITIONAL_SCRIPTS_LOGGEDIN</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="lib/private/AppFramework/Middleware/OCSMiddleware.php">
<InternalMethod>
<code>setOCSVersion</code>
@@ -2218,7 +2092,7 @@
</file>
<file src="lib/private/AppFramework/Routing/RouteConfig.php">
<InvalidArrayOffset>
- <code><![CDATA[$action['url-postfix']]]></code>
+ <code>$action['url-postfix']</code>
</InvalidArrayOffset>
</file>
<file src="lib/private/AppFramework/Services/AppConfig.php">
@@ -2336,16 +2210,6 @@
<code><![CDATA[list<array{provider_id: string, uid: string, enabled: bool}>]]></code>
</MoreSpecificReturnType>
</file>
- <file src="lib/private/Authentication/TwoFactorAuth/Manager.php">
- <InvalidArgument>
- <code>IProvider::EVENT_FAILED</code>
- <code>IProvider::EVENT_SUCCESS</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="lib/private/Authentication/TwoFactorAuth/ProviderSet.php">
<InvalidArgument>
<code><![CDATA[$this->providers]]></code>
@@ -2452,15 +2316,9 @@
</UndefinedVariable>
</file>
<file src="lib/private/Console/Application.php">
- <InvalidArgument>
- <code>ConsoleEvent::EVENT_RUN</code>
- </InvalidArgument>
<NoInterfaceProperties>
<code><![CDATA[$this->request->server]]></code>
</NoInterfaceProperties>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
</file>
<file src="lib/private/ContactsManager.php">
<InvalidArgument>
@@ -2496,7 +2354,7 @@
<code>getParams</code>
</InternalMethod>
<InvalidArrayOffset>
- <code><![CDATA[$params['collation']]]></code>
+ <code>$params['collation']</code>
</InvalidArrayOffset>
</file>
<file src="lib/private/DB/Connection.php">
@@ -2507,8 +2365,8 @@
<code>$params</code>
</InvalidArgument>
<InvalidArrayOffset>
- <code><![CDATA[$params['adapter']]]></code>
- <code><![CDATA[$params['tablePrefix']]]></code>
+ <code>$params['adapter']</code>
+ <code>$params['tablePrefix']</code>
</InvalidArrayOffset>
<InvalidReturnStatement>
<code><![CDATA[$this->adapter->lastInsertId($seqName)]]></code>
@@ -2560,7 +2418,7 @@
<code>getParams</code>
</InternalMethod>
<InvalidArrayOffset>
- <code><![CDATA[$params['collation']]]></code>
+ <code>$params['collation']</code>
</InvalidArrayOffset>
</file>
<file src="lib/private/DB/QueryBuilder/QueryBuilder.php">
@@ -2784,10 +2642,10 @@
<code>$user</code>
</InvalidOperand>
<RedundantCondition>
- <code><![CDATA[get_class($provider) !== 'OCA\Files_Sharing\MountProvider']]></code>
+ <code>get_class($provider) !== 'OCA\Files_Sharing\MountProvider'</code>
</RedundantCondition>
<TypeDoesNotContainType>
- <code><![CDATA[get_class($provider) === 'OCA\Files_Sharing\MountProvider']]></code>
+ <code>get_class($provider) === 'OCA\Files_Sharing\MountProvider'</code>
</TypeDoesNotContainType>
</file>
<file src="lib/private/Files/Config/UserMountCache.php">
@@ -2864,36 +2722,6 @@
</MoreSpecificReturnType>
</file>
<file src="lib/private/Files/Node/HookConnector.php">
- <InvalidArgument>
- <code><![CDATA['\OCP\Files::postCopy']]></code>
- <code><![CDATA['\OCP\Files::postCreate']]></code>
- <code><![CDATA['\OCP\Files::postDelete']]></code>
- <code><![CDATA['\OCP\Files::postRename']]></code>
- <code><![CDATA['\OCP\Files::postTouch']]></code>
- <code><![CDATA['\OCP\Files::postWrite']]></code>
- <code><![CDATA['\OCP\Files::preCopy']]></code>
- <code><![CDATA['\OCP\Files::preCreate']]></code>
- <code><![CDATA['\OCP\Files::preDelete']]></code>
- <code><![CDATA['\OCP\Files::preRename']]></code>
- <code><![CDATA['\OCP\Files::preTouch']]></code>
- <code><![CDATA['\OCP\Files::preWrite']]></code>
- <code><![CDATA['\OCP\Files::read']]></code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
<UndefinedInterfaceMethod>
<code>emit</code>
<code>emit</code>
@@ -2925,7 +2753,7 @@
</file>
<file src="lib/private/Files/Node/Node.php">
<InvalidArgument>
- <code><![CDATA['\OCP\Files::' . $hook]]></code>
+ <code>'\OCP\Files::' . $hook</code>
</InvalidArgument>
<InvalidNullableReturnType>
<code>FileInfo</code>
@@ -2998,7 +2826,7 @@
<code>Promise\promise_for(
new Credentials($key, $secret)
)</code>
- <code><![CDATA[\Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider())]]></code>
+ <code>\Aws\or_chain([self::class, 'legacySignatureProvider'], ClientResolver::_default_signature_provider())</code>
</UndefinedFunction>
</file>
<file src="lib/private/Files/ObjectStore/S3ObjectTrait.php">
@@ -3067,15 +2895,6 @@
<ImplicitToStringCast>
<code>$file</code>
</ImplicitToStringCast>
- <InvalidOperand>
- <code>$result</code>
- </InvalidOperand>
- <InvalidReturnStatement>
- <code>$result</code>
- </InvalidReturnStatement>
- <InvalidReturnType>
- <code>rename</code>
- </InvalidReturnType>
<TypeDoesNotContainNull>
<code>$space === false || is_null($space)</code>
<code>is_null($space)</code>
@@ -3215,12 +3034,6 @@
</file>
<file src="lib/private/Group/Group.php">
<InvalidArgument>
- <code><![CDATA[IGroup::class . '::postAddUser']]></code>
- <code><![CDATA[IGroup::class . '::postDelete']]></code>
- <code><![CDATA[IGroup::class . '::postRemoveUser']]></code>
- <code><![CDATA[IGroup::class . '::preAddUser']]></code>
- <code><![CDATA[IGroup::class . '::preDelete']]></code>
- <code><![CDATA[IGroup::class . '::preRemoveUser']]></code>
<code>bool</code>
</InvalidArgument>
<InvalidOperand>
@@ -3240,14 +3053,6 @@
<code><![CDATA[$this->emitter]]></code>
<code><![CDATA[$this->emitter]]></code>
</RedundantCondition>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
<UndefinedMethod>
<code>addToGroup</code>
<code>countUsersInGroup</code>
@@ -3290,8 +3095,8 @@
<code>false</code>
</InvalidArgument>
<InvalidArrayOffset>
- <code><![CDATA[$app['path']]]></code>
- <code><![CDATA[$app['path']]]></code>
+ <code>$app['path']</code>
+ <code>$app['path']</code>
</InvalidArrayOffset>
<NullArgument>
<code>null</code>
@@ -3452,7 +3257,6 @@
<InvalidArgument>
<code>$maxPreviewImage</code>
<code>$semId</code>
- <code>IPreview::EVENT</code>
</InvalidArgument>
<InvalidReturnStatement>
<code>$sem</code>
@@ -3466,9 +3270,6 @@
<MismatchingDocblockParamType>
<code>ISimpleFile</code>
</MismatchingDocblockParamType>
- <TooManyArguments>
- <code>dispatch</code>
- </TooManyArguments>
<UndefinedInterfaceMethod>
<code>height</code>
<code>height</code>
@@ -3611,9 +3412,6 @@
<code>\OCP\Calendar\Room\IManager</code>
<code>\OCP\Files\Folder|null</code>
</ImplementedReturnTypeMismatch>
- <InvalidArgument>
- <code>new GenericEvent($user)</code>
- </InvalidArgument>
<LessSpecificReturnStatement>
<code><![CDATA[$this->get(IFile::class)]]></code>
<code><![CDATA[$this->get(IGroupManager::class)]]></code>
@@ -3664,8 +3462,8 @@
</file>
<file src="lib/private/Setup.php">
<RedundantCondition>
- <code><![CDATA[$content !== '']]></code>
- <code><![CDATA[$type === 'pdo']]></code>
+ <code>$content !== ''</code>
+ <code>$type === 'pdo'</code>
</RedundantCondition>
<UndefinedVariable>
<code>$vendor</code>
@@ -3695,7 +3493,7 @@
<InvalidArgument>
<code><![CDATA[$share->getId()]]></code>
<code><![CDATA[$share->getId()]]></code>
- <code><![CDATA[(int)$data['id']]]></code>
+ <code>(int)$data['id']</code>
</InvalidArgument>
<TooManyArguments>
<code>set</code>
@@ -3707,12 +3505,12 @@
<file src="lib/private/Share20/Manager.php">
<InvalidArgument>
<code>$id</code>
- <code><![CDATA['OCP\Share::postAcceptShare']]></code>
- <code><![CDATA['OCP\Share::postShare']]></code>
- <code><![CDATA['OCP\Share::postUnshare']]></code>
- <code><![CDATA['OCP\Share::postUnshareFromSelf']]></code>
- <code><![CDATA['OCP\Share::preShare']]></code>
- <code><![CDATA['OCP\Share::preUnshare']]></code>
+ <code>'OCP\Share::postAcceptShare'</code>
+ <code>'OCP\Share::postShare'</code>
+ <code>'OCP\Share::postUnshare'</code>
+ <code>'OCP\Share::postUnshareFromSelf'</code>
+ <code>'OCP\Share::preShare'</code>
+ <code>'OCP\Share::preUnshare'</code>
</InvalidArgument>
<TooManyArguments>
<code>dispatch</code>
@@ -3798,28 +3596,6 @@
<code>getSupportedApps</code>
</UndefinedInterfaceMethod>
</file>
- <file src="lib/private/SystemTag/SystemTagManager.php">
- <InvalidArgument>
- <code>ManagerEvent::EVENT_CREATE</code>
- <code>ManagerEvent::EVENT_DELETE</code>
- <code>ManagerEvent::EVENT_UPDATE</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
- <file src="lib/private/SystemTag/SystemTagObjectMapper.php">
- <InvalidArgument>
- <code>MapperEvent::EVENT_ASSIGN</code>
- <code>MapperEvent::EVENT_UNASSIGN</code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
- </file>
<file src="lib/private/TagManager.php">
<InvalidNullableReturnType>
<code>\OCP\ITags</code>
@@ -3909,7 +3685,7 @@
<code>boolean|null</code>
</ImplementedReturnTypeMismatch>
<InvalidArgument>
- <code><![CDATA[IUser::class . '::firstLogin']]></code>
+ <code>IUser::class . '::firstLogin'</code>
</InvalidArgument>
<NoInterfaceProperties>
<code><![CDATA[$request->server]]></code>
@@ -3920,20 +3696,6 @@
</TooManyArguments>
</file>
<file src="lib/private/User/User.php">
- <InvalidArgument>
- <code><![CDATA[IUser::class . '::changeUser']]></code>
- <code><![CDATA[IUser::class . '::postDelete']]></code>
- <code><![CDATA[IUser::class . '::postSetPassword']]></code>
- <code><![CDATA[IUser::class . '::preDelete']]></code>
- <code><![CDATA[IUser::class . '::preSetPassword']]></code>
- </InvalidArgument>
- <TooManyArguments>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- <code>dispatch</code>
- </TooManyArguments>
<UndefinedInterfaceMethod>
<code>emit</code>
<code>emit</code>
@@ -3956,8 +3718,8 @@
<code>ManagerEvent::EVENT_APP_UPDATE</code>
</InvalidArgument>
<InvalidArrayOffset>
- <code><![CDATA[$dir['path']]]></code>
- <code><![CDATA[$dir['url']]]></code>
+ <code>$dir['path']</code>
+ <code>$dir['url']</code>
</InvalidArrayOffset>
<NullArgument>
<code>null</code>
@@ -4041,12 +3803,6 @@
<code>array{X-Request-Id: string, Cache-Control: string, Content-Security-Policy: string, Feature-Policy: string, X-Robots-Tag: string, Last-Modified?: string, ETag?: string, ...H}</code>
</MoreSpecificReturnType>
</file>
- <file src="lib/public/Authentication/TwoFactorAuth/IProvider.php">
- <AmbiguousConstantInheritance>
- <code>EVENT_FAILED</code>
- <code>EVENT_SUCCESS</code>
- </AmbiguousConstantInheritance>
- </file>
<file src="lib/public/Cache/CappedMemoryCache.php">
<MissingTemplateParam>
<code>\ArrayAccess</code>