diff options
author | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-06-10 07:14:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 07:14:09 +0300 |
commit | c9fde7b2f98b23ebe1618ed6ef4f77f0f11850a2 (patch) | |
tree | 5f9cb3917fcf030cd91b768e33e1506524d73be7 /build | |
parent | b2ff127937d612e71871273c4839f7994595d0dc (diff) |
Update psalm baseline
Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/psalm-baseline.xml | 169 |
1 files changed, 8 insertions, 161 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 13d46ec08bd..ffdb385aa2a 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1707,11 +1707,6 @@ <code>dispatch</code> </TooManyArguments> </file> - <file src="apps/files_trashbin/lib/Hooks.php"> - <InvalidScalarArgument occurrences="1"> - <code>$user</code> - </InvalidScalarArgument> - </file> <file src="apps/files_trashbin/lib/Sabre/AbstractTrash.php"> <InvalidNullableReturnType occurrences="1"> <code>int</code> @@ -1782,12 +1777,9 @@ <FalsableReturnStatement occurrences="1"> <code>false</code> </FalsableReturnStatement> - <InvalidScalarArgument occurrences="5"> + <InvalidScalarArgument occurrences="2"> <code>$timestamp</code> <code>$timestamp</code> - <code>$uid</code> - <code>$user</code> - <code>$user</code> </InvalidScalarArgument> </file> <file src="apps/files_versions/appinfo/routes.php"> @@ -1818,9 +1810,8 @@ </UndefinedFunction> </file> <file src="apps/files_versions/lib/Storage.php"> - <InvalidScalarArgument occurrences="2"> + <InvalidScalarArgument occurrences="1"> <code>$timestamp</code> - <code>$uid</code> </InvalidScalarArgument> </file> <file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php"> @@ -1852,9 +1843,6 @@ <InvalidArgument occurrences="1"> <code>AppPasswordCreatedActivityListener::class</code> </InvalidArgument> - <InvalidScalarArgument occurrences="1"> - <code>\OC_User::getUser()</code> - </InvalidScalarArgument> <UndefinedInterfaceMethod occurrences="1"> <code>getSettingsManager</code> </UndefinedInterfaceMethod> @@ -1906,11 +1894,6 @@ <code>null</code> </NullArgument> </file> - <file src="apps/settings/lib/Settings/Personal/PersonalInfo.php"> - <InvalidScalarArgument occurrences="1"> - <code>$uid</code> - </InvalidScalarArgument> - </file> <file src="apps/settings/lib/SetupChecks/CheckUserCertificates.php"> <InvalidArgument occurrences="1"> <code>false</code> @@ -2038,9 +2021,6 @@ <FalsableReturnStatement occurrences="1"> <code>$this->countUsers($filter)</code> </FalsableReturnStatement> - <InvalidArgument occurrences="1"> - <code>$record</code> - </InvalidArgument> <InvalidReturnStatement occurrences="2"> <code>$uuid</code> <code>$values</code> @@ -2048,8 +2028,7 @@ <InvalidReturnType occurrences="1"> <code>string[]</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="3"> - <code>$e->getCode()</code> + <InvalidScalarArgument occurrences="2"> <code>$key</code> <code>$key</code> </InvalidScalarArgument> @@ -2077,16 +2056,7 @@ <code>dispatch</code> </TooManyArguments> </file> - <file src="apps/user_ldap/lib/Configuration.php"> - <InvalidScalarArgument occurrences="1"> - <code>time()</code> - </InvalidScalarArgument> - </file> <file src="apps/user_ldap/lib/Connection.php"> - <InvalidScalarArgument occurrences="2"> - <code>LDAP_OPT_PROTOCOL_VERSION</code> - <code>LDAP_OPT_REFERRALS</code> - </InvalidScalarArgument> <ParadoxicalCondition occurrences="1"/> </file> <file src="apps/user_ldap/lib/Group_LDAP.php"> @@ -2130,13 +2100,6 @@ <code>Resource</code> </UndefinedDocblockClass> </file> - <file src="apps/user_ldap/lib/Jobs/CleanUp.php"> - <InvalidScalarArgument occurrences="3"> - <code>$newOffset</code> - <code>0</code> - <code>50</code> - </InvalidScalarArgument> - </file> <file src="apps/user_ldap/lib/Jobs/Sync.php"> <InvalidOperand occurrences="2"> <code>$i</code> @@ -2166,68 +2129,12 @@ <code>3600</code> </InvalidScalarArgument> </file> - <file src="apps/user_ldap/lib/LDAP.php"> - <ImplementedParamTypeMismatch occurrences="22"> - <code>$baseDN</code> - <code>$baseDN</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$link</code> - <code>$resource</code> - <code>$result</code> - <code>$result</code> - <code>$result</code> - <code>$result</code> - <code>$result</code> - </ImplementedParamTypeMismatch> - <InvalidArgument occurrences="1"> - <code>$baseDN</code> - </InvalidArgument> - <LessSpecificImplementedReturnType occurrences="13"> - <code>array|mixed</code> - <code>array|mixed</code> - <code>bool|mixed</code> - <code>bool|mixed</code> - <code>bool|mixed</code> - <code>mixed</code> - <code>mixed</code> - <code>mixed</code> - <code>mixed</code> - <code>mixed</code> - <code>mixed|string</code> - <code>mixed|true</code> - <code>mixed|true</code> - </LessSpecificImplementedReturnType> - <UndefinedDocblockClass occurrences="1"> - <code>Resource</code> - </UndefinedDocblockClass> - </file> <file src="apps/user_ldap/lib/LogWrapper.php"> <InvalidReturnType occurrences="1"> <code>bool</code> </InvalidReturnType> </file> <file src="apps/user_ldap/lib/Mapping/AbstractMapping.php"> - <InvalidOperand occurrences="1"> - <code>$isUnmapped</code> - </InvalidOperand> - <InvalidReturnStatement occurrences="1"> - <code>$result</code> - </InvalidReturnStatement> - <InvalidReturnType occurrences="1"> - <code>bool</code> - </InvalidReturnType> <RedundantCondition occurrences="1"> <code>isset($qb)</code> </RedundantCondition> @@ -2256,8 +2163,7 @@ <code>null</code> <code>null</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="3"> - <code>$this->getHomePath($ldapEntry[$attr][0])</code> + <InvalidScalarArgument occurrences="2"> <code>1</code> <code>true</code> </InvalidScalarArgument> @@ -2266,9 +2172,6 @@ <ImplementedReturnTypeMismatch occurrences="1"> <code>string|false</code> </ImplementedReturnTypeMismatch> - <InvalidScalarArgument occurrences="1"> - <code>$path</code> - </InvalidScalarArgument> <MoreSpecificImplementedParamType occurrences="2"> <code>$limit</code> <code>$offset</code> @@ -2301,15 +2204,9 @@ <code>private function detectGroupMemberAssoc() {</code> <code>private function getAttributeValuesFromEntry($result, $attribute, &$known) {</code> </InvalidDocblock> - <InvalidScalarArgument occurrences="8"> + <InvalidScalarArgument occurrences="2"> <code>$port</code> <code>$port</code> - <code>LDAP_OPT_NETWORK_TIMEOUT</code> - <code>LDAP_OPT_NETWORK_TIMEOUT</code> - <code>LDAP_OPT_PROTOCOL_VERSION</code> - <code>LDAP_OPT_PROTOCOL_VERSION</code> - <code>LDAP_OPT_REFERRALS</code> - <code>LDAP_OPT_REFERRALS</code> </InvalidScalarArgument> <RedundantCondition occurrences="1"> <code>!isset($item['cn']) && !is_array($item['cn'])</code> @@ -3052,23 +2949,12 @@ <code>$userId</code> </ParamNameMismatch> </file> - <file src="lib/private/Avatar/GuestAvatar.php"> - <ImplementedReturnTypeMismatch occurrences="1"> - <code>InMemoryFile</code> - </ImplementedReturnTypeMismatch> - </file> <file src="lib/private/Avatar/PlaceholderAvatar.php"> - <ImplementedReturnTypeMismatch occurrences="1"> - <code>ISimpleFile</code> - </ImplementedReturnTypeMismatch> <InvalidScalarArgument occurrences="1"> <code>$data</code> </InvalidScalarArgument> </file> <file src="lib/private/Avatar/UserAvatar.php"> - <ImplementedReturnTypeMismatch occurrences="1"> - <code>ISimpleFile</code> - </ImplementedReturnTypeMismatch> <InvalidScalarArgument occurrences="3"> <code>$data</code> <code>$data</code> @@ -3512,11 +3398,6 @@ <InvalidReturnType occurrences="1"> <code>string</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="3"> - <code>$user</code> - <code>$user</code> - <code>\OC_User::getUser()</code> - </InvalidScalarArgument> <NullableReturnStatement occurrences="1"> <code>null</code> </NullableReturnStatement> @@ -3758,9 +3639,6 @@ <ImplementedReturnTypeMismatch occurrences="1"> <code>string|false</code> </ImplementedReturnTypeMismatch> - <InvalidNullableReturnType occurrences="1"> - <code>array</code> - </InvalidNullableReturnType> <InvalidOperand occurrences="2"> <code>!$permissions</code> <code>$this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file)</code> @@ -3775,9 +3653,6 @@ <code>$storage->updater</code> <code>$storage->updater</code> </NoInterfaceProperties> - <NullableReturnStatement occurrences="1"> - <code>$this->getStorageCache()->getAvailability()</code> - </NullableReturnStatement> </file> <file src="lib/private/Files/Storage/DAV.php"> <InvalidClass occurrences="2"> @@ -4059,10 +3934,9 @@ <InvalidReturnType occurrences="1"> <code>\OC\Files\Mount\MountPoint</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="3"> + <InvalidScalarArgument occurrences="2"> <code>$fileId</code> <code>$mtime</code> - <code>$user</code> </InvalidScalarArgument> <NullableReturnStatement occurrences="6"> <code>$mount</code> @@ -4072,13 +3946,9 @@ <code>null</code> <code>null</code> </NullableReturnStatement> - <RedundantCondition occurrences="7"> + <RedundantCondition occurrences="3"> <code>$data</code> <code>$data</code> - <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"> @@ -4301,11 +4171,6 @@ <code>mixed</code> </LessSpecificImplementedReturnType> </file> - <file src="lib/private/Memcache/Memcached.php"> - <TypeDoesNotContainType occurrences="1"> - <code>\Memcached::HAVE_IGBINARY</code> - </TypeDoesNotContainType> - </file> <file src="lib/private/Memcache/Redis.php"> <InvalidMethodCall occurrences="2"> <code>exec</code> @@ -4338,10 +4203,6 @@ <InvalidNullableReturnType occurrences="1"> <code>ISimpleFile</code> </InvalidNullableReturnType> - <InvalidScalarArgument occurrences="2"> - <code>$file->getId()</code> - <code>$file->getId()</code> - </InvalidScalarArgument> <MismatchingDocblockParamType occurrences="1"> <code>ISimpleFile</code> </MismatchingDocblockParamType> @@ -4596,10 +4457,6 @@ <InvalidOperand occurrences="1"> <code>!self::isResharingAllowed()</code> </InvalidOperand> - <InvalidScalarArgument occurrences="2"> - <code>\OC_User::getUser()</code> - <code>\OC_User::getUser()</code> - </InvalidScalarArgument> <UndefinedInterfaceMethod occurrences="2"> <code>getParents</code> <code>getParents</code> @@ -4800,10 +4657,9 @@ <code>string</code> <code>string</code> </InvalidParamDefault> - <InvalidScalarArgument occurrences="3"> + <InvalidScalarArgument occurrences="2"> <code>$appName</code> <code>$appName</code> - <code>\OC_User::getUser()</code> </InvalidScalarArgument> <TooManyArguments occurrences="1"> <code>Util::addScript('dist/unified-search', null, true)</code> @@ -5040,11 +4896,6 @@ <code>$isWritable</code> </RedundantCondition> </file> - <file src="lib/private/legacy/OC_JSON.php"> - <InvalidScalarArgument occurrences="1"> - <code>OC_User::getUser()</code> - </InvalidScalarArgument> - </file> <file src="lib/private/legacy/OC_User.php"> <UndefinedClass occurrences="1"> <code>\Test\Util\User\Dummy</code> @@ -5061,10 +4912,6 @@ <InvalidReturnType occurrences="1"> <code>float</code> </InvalidReturnType> - <InvalidScalarArgument occurrences="2"> - <code>$user</code> - <code>OC_User::getUser()</code> - </InvalidScalarArgument> <RedundantCondition occurrences="1"> <code>is_string($expected)</code> </RedundantCondition> |